/*
 * betmatch Gaming Vault - Premium Design System
 * Color Palette: Deep jewel tones, warm amber accents, sophisticated dark interface
 */

/* ==================== ROOT & TOKENS ==================== */

:root {
    /* Foreground - Text Hierarchy */
    --text-primary: #f5f5f5;
    --text-secondary: #b8b8b8;
    --text-tertiary: #8a8a8a;
    --text-muted: #5a5a5a;
    
    /* Background - Surface Elevation */
    --surface-base: #0f0f0f;
    --surface-1: #1a1a1a;
    --surface-2: #242424;
    --surface-3: #2d2d2d;
    --surface-4: #363636;
    --surface-5: #404040;
    
    /* Accent Colors - From Gaming World */
    --accent-primary: #c9a961;      /* Warm amber/gold */
    --accent-primary-hover: #dbb66f; /* Lighter gold */
    --accent-primary-dark: #b39456;  /* Darker gold */
    
    --accent-secondary: #6b7aa8;     /* Sapphire */
    --accent-secondary-light: #8a9bc4;
    
    --accent-tertiary: #8b5a8f;      /* Amethyst */
    --accent-tertiary-light: #a573a1;
    
    /* Semantic Colors */
    --success: #6ba868;
    --warning: #d99d5c;
    --error: #c85a54;
    
    /* Borders */
    --border-standard: rgba(255, 255, 255, 0.08);
    --border-soft: rgba(255, 255, 255, 0.04);
    --border-emphasis: rgba(201, 169, 97, 0.2);
    
    /* Spacing Scale */
    --space-micro: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    
    /* Typography */
    --font-display: 'Georgia', serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Menlo', 'Monaco', monospace;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Transitions */
    --transition-fast: 150ms ease-out;
    --transition-base: 200ms ease-out;
    --transition-slow: 300ms ease-out;
}

/* ==================== GLOBAL STYLES ==================== */

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--surface-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== HEADER ==================== */

.header {
    background: linear-gradient(180deg, var(--surface-1) 0%, rgba(26, 26, 26, 0.95) 100%);
    border-bottom: 1px solid var(--border-standard);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logo-icon {
    color: var(--accent-primary);
    font-size: 28px;
    line-height: 1;
}

.logo-text {
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* ==================== HERO SECTION ==================== */

.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    letter-spacing: 0.5px;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    max-width: 520px;
}

.cta-button {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-dark));
    color: #000;
    border: none;
    padding: var(--space-md) var(--space-xl);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.15);
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--accent-primary-hover), var(--accent-primary));
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(201, 169, 97, 0.25);
}

.cta-button:active {
    transform: translateY(0);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-emphasis);
    overflow: hidden;
    position: relative;
}

.gaming-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(201, 169, 97, 0.1), transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(107, 122, 168, 0.08), transparent 50%);
    animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ==================== SECTION HEADERS ==================== */

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ==================== FEATURED COLLECTIONS ==================== */

.featured-collections {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-lg);
}

.collections-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--space-xl);
}

.collection-card {
    background: var(--surface-2);
    border: 1px solid var(--border-standard);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.collection-card:hover {
    border-color: var(--border-emphasis);
    box-shadow: 0 16px 48px rgba(201, 169, 97, 0.1);
}

.collection-card.featured {
    grid-row: span 1;
}

.collection-image-slot {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--surface-3), var(--surface-4));
    border-bottom: 1px solid var(--border-soft);
    position: relative;
}

.collection-image-slot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(201, 169, 97, 0.08), transparent);
}

.collection-info {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.collection-badge {
    display: inline-block;
    width: fit-content;
    background: rgba(201, 169, 97, 0.15);
    color: var(--accent-primary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.collection-info h3 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    font-weight: 600;
}

.collection-info p {
    color: var(--text-tertiary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: auto;
}

.collection-meta {
    display: flex;
    gap: var(--space-lg);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-soft);
}

.meta-item {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==================== GENRE SHELVES ==================== */

.genre-shelves {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-lg);
}

.shelves-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.genre-shelf {
    background: linear-gradient(90deg, var(--surface-2) 0%, transparent 100%);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
}

.genre-shelf:hover {
    background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 100%);
    border-color: var(--border-emphasis);
}

.shelf-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-soft);
}

.shelf-label h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.shelf-count {
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(201, 169, 97, 0.08);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

.shelf-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
}

.shelf-item {
    background: var(--surface-3);
    border: 1px solid var(--border-soft);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
}

.shelf-item:hover {
    background: var(--surface-4);
    border-color: var(--accent-secondary-light);
    color: var(--accent-secondary-light);
}

/* ==================== HIDDEN GEMS ==================== */

.hidden-gems {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-lg);
}

.gems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.gem-card {
    background: var(--surface-2);
    border: 1px solid var(--border-standard);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.gem-card:hover {
    border-color: var(--accent-tertiary-light);
    box-shadow: 0 12px 36px rgba(139, 90, 143, 0.1);
}

.gem-image-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--surface-3), var(--surface-4));
    border-bottom: 1px solid var(--border-soft);
    position: relative;
}

.gem-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 40% 40%, rgba(139, 90, 143, 0.1), transparent);
}

.gem-content {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gem-content h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.gem-category {
    font-size: 12px;
    color: var(--accent-tertiary);
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gem-description {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.7;
    margin-bottom: auto;
    margin-top: var(--space-sm);
}

.gem-rating {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-soft);
}

.stars {
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 600;
}

.rating-count {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ==================== COMPARISON SECTION ==================== */

.comparison-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-lg);
}

.comparison-table-wrapper {
    overflow-x: auto;
    background: var(--surface-1);
    border: 1px solid var(--border-standard);
    border-radius: var(--radius-lg);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.comparison-table th {
    background: var(--surface-2);
    padding: var(--space-md);
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-standard);
    position: sticky;
    top: 0;
}

.comparison-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-secondary);
}

.comparison-table tbody tr:hover {
    background: var(--surface-2);
}

.feature-name {
    font-weight: 600;
    color: var(--text-primary);
    width: 30%;
}

.comparison-table td:not(.feature-name) {
    text-align: center;
}

/* ==================== USER FAVORITES ==================== */

.user-favorites {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-lg);
}

.favorites-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-4xl);
}

.favorite-stat {
    background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface-3) 100%);
    border: 1px solid var(--border-standard);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.favorite-stat:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.1);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.stat-description {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.trending-now {
    background: var(--surface-2);
    border: 1px solid var(--border-standard);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.trending-now h3 {
    font-family: var(--font-display);
    font-size: 20px;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.trending-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md);
    background: var(--surface-3);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.trending-item:hover {
    background: var(--surface-4);
}

.trend-rank {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--accent-primary);
    font-size: 16px;
    min-width: 32px;
}

.trend-title {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.trend-surge {
    color: var(--success);
    font-weight: 600;
    font-size: 13px;
}

/* ==================== FOOTER ==================== */

.footer {
    background: var(--surface-1);
    border-top: 1px solid var(--border-standard);
    margin-top: var(--space-4xl);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-4xl) var(--space-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3xl);
}

.footer-section h4 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.footer-section p {
    font-size: 14px;
    color: var(--text-tertiary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.footer-secondary {
    font-weight: 600;
    color: var(--accent-primary);
    font-style: italic;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.social-link {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background: var(--surface-2);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-base);
    border: 1px solid var(--border-soft);
}

.social-link:hover {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
    border-top: 1px solid var(--border-soft);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer-minor {
    margin-top: var(--space-sm);
    color: var(--accent-primary);
    font-weight: 600;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: var(--space-3xl) var(--space-lg);
    }

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-image {
        height: 400px;
    }

    .collections-grid {
        grid-template-columns: 1fr 1fr;
    }

    .collection-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .header-nav {
        flex-direction: column;
        gap: var(--space-md);
        width: 100%;
    }

    .nav-link {
        padding: var(--space-sm) 0;
    }

    .hero {
        padding: var(--space-2xl) var(--space-lg);
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-image {
        height: 300px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .collections-grid {
        grid-template-columns: 1fr;
    }

    .collection-card.featured {
        grid-column: span 1;
    }

    .gems-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table-wrapper {
        font-size: 12px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--space-sm);
    }

    .feature-name {
        width: 40%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    .logo {
        font-size: 20px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .hero {
        padding: var(--space-lg) var(--space-lg);
    }

    .collection-info h3 {
        font-size: 18px;
    }

    .gem-content h4 {
        font-size: 16px;
    }
}