/**
 * MTG Collection Manager - Base Styles
 * Reset and fundamental page styles
 */

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base Body */
body {
    font-family: var(--font-body);
    font-size: 18px;
    background: var(--color-bg-dark);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.6;
}

/* Background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(124, 92, 231, 0.03) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* Main content */
.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl);
}

@media (max-width: 768px) {
    .main {
        padding: var(--spacing-md);
    }
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 1px;
}

h1 {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.8rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.3rem;
    color: var(--color-text);
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
}

/* Links */
a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-gold-dark);
}

/* Selection */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: var(--color-text);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}
