/* ===== CSS Variables ===== */
:root {
    /* Color Palette - Gaming Theme */
    --primary: #6C63FF;
    --primary-dark: #5349E8;
    --primary-light: #8580FF;
    --secondary: #FF6584;
    --accent: #4ECDC4;
    --success: #00D9A5;
    --warning: #FFB800;

    /* Neutrals */
    --bg-dark: #0F0F23;
    --bg-card: #1A1A3E;
    --bg-card-hover: #252552;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8D4;
    --text-muted: #6B6B8F;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6C63FF 0%, #5349E8 100%);
    --gradient-secondary: linear-gradient(135deg, #FF6584 0%, #FF4757 100%);
    --gradient-success: linear-gradient(135deg, #4ECDC4 0%, #00D9A5 100%);
    --gradient-hero: linear-gradient(135deg, #0F0F23 0%, #1A1A3E 50%, #2D2D5F 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(108, 99, 255, 0.3);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== Header ===== */
.header {
    background: rgba(26, 26, 62, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(108, 99, 255, 0.2);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease-in-out;
}

.header.hidden {
    transform: translateY(-100%);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-icon {
    width: 50px;
    height: 50px;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(108, 99, 255, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.nav {
    display: flex;
    gap: var(--spacing-md);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(108, 99, 255, 0.1);
}

.nav-link.active {
    color: var(--primary);
    background: rgba(108, 99, 255, 0.15);
}

/* ===== Hero Section ===== */
.hero {
    background: var(--gradient-hero);
    padding: var(--spacing-xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    margin-bottom: var(--spacing-xl);
}

/* ===== Hero Statistics Badges ===== */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat-badge {
    background: rgba(26, 26, 62, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(108, 99, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    text-align: center;
    transition: all var(--transition-normal);
}

.stat-badge:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-light);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Most Popular Games Section ===== */
.popular-games-section {
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.05) 0%, rgba(255, 140, 0, 0.05) 100%);
    padding: var(--spacing-xl) 0;
    border-top: 2px solid rgba(255, 82, 82, 0.3);
    border-bottom: 2px solid rgba(255, 82, 82, 0.3);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.popular-games-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.popular-game-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid rgba(255, 82, 82, 0.3);
    transition: all var(--transition-normal);
    position: relative;
    width: 100%;
    max-width: 320px;
    flex: 0 0 auto;
}

.popular-game-card:hover {
    transform: translateY(-8px);
    border-color: #FF5252;
    box-shadow: var(--shadow-xl), 0 0 30px rgba(255, 82, 82, 0.4);
}

.popular-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FF5252 0%, #FF8C00 100%);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.5);
    animation: pulse-popular 2s infinite;
}

@keyframes pulse-popular {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(255, 82, 82, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 82, 82, 0.8);
        transform: scale(1.05);
    }
}

.popular-game-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, #1A1A3E 0%, #2D2D5F 100%);
}

.popular-game-content {
    padding: var(--spacing-md);
}

.popular-game-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
    color: var(--text-primary);
}

.popular-game-store {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.popular-game-pricing {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.popular-game-discount {
    background: linear-gradient(135deg, #FF5252 0%, #FF8C00 100%);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
}

.popular-game-prices {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.popular-game-original {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.85rem;
}

.popular-game-current {
    color: #FF5252;
    font-weight: 700;
    font-size: 1.2rem;
}

/* ===== Shared Section Styles ===== */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.title-icon {
    font-size: 2rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(10deg); }
    50% { transform: scale(1) rotate(0deg); }
    75% { transform: scale(1.2) rotate(-10deg); }
}

/* Responsive for Sections */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Filters Section ===== */
.filters-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-dark);
}

.search-bar {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.search-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

#searchInput {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) 3.5rem;
    background: var(--bg-card);
    border: 2px solid rgba(108, 99, 255, 0.2);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all var(--transition-normal);
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

#searchInput::placeholder {
    color: var(--text-muted);
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-icon {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.filter-group select {
    padding: var(--spacing-sm);
    background: var(--bg-card);
    border: 2px solid rgba(108, 99, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-group select:hover {
    border-color: var(--primary-light);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-tag button {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1;
    transition: transform var(--transition-fast);
}

.filter-tag button:hover {
    transform: scale(1.2);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--spacing-md);
}

.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--gradient-secondary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.clear-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.clear-filters-btn:active {
    transform: translateY(0);
}

.clear-filters-btn svg {
    width: 16px;
    height: 16px;
}

/* ===== Loading Spinner ===== */
.loading {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    gap: var(--spacing-md);
}

.loading.active {
    display: flex;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(108, 99, 255, 0.2);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== Games Section ===== */
.games-section {
    padding: var(--spacing-lg) 0 var(--spacing-xl);
    min-height: 500px;
}

.games-header {
    margin-bottom: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.games-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
}

.result-count {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

/* ===== Game Card ===== */
.game-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid rgba(108, 99, 255, 0.1);
    animation: fadeInUp 0.5s ease;
    position: relative;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.game-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #1A1A3E 0%, #2D2D5F 100%);
}

.game-content {
    padding: var(--spacing-md);
}

.game-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.game-store {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(78, 205, 196, 0.2);
    color: var(--accent);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-pricing {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.game-discount {
    background: var(--gradient-secondary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
}

.game-price-box {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.game-price-original {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.game-price-current {
    color: var(--success);
    font-weight: 700;
    font-size: 1.4rem;
}

.game-savings {
    margin-top: var(--spacing-xs);
    padding: var(--spacing-xs);
    background: rgba(0, 217, 165, 0.1);
    border-radius: var(--radius-sm);
    color: var(--success);
    font-size: 0.85rem;
    text-align: center;
    font-weight: 600;
}

.game-deal-rating {
    margin-top: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.deal-stars {
    color: var(--warning);
    font-size: 1rem;
}

/* ===== Alternative Stores ===== */
.alternative-stores {
    border-top: 1px solid rgba(108, 99, 255, 0.2);
    margin-top: var(--spacing-md);
    background: rgba(108, 99, 255, 0.05);
}

.alt-stores-header {
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all var(--transition-fast);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.alt-stores-header:hover {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-light);
}

.toggle-icon {
    font-size: 0.75rem;
    color: var(--primary-light);
    transition: transform var(--transition-fast);
}

.alt-stores-list {
    padding: 0 var(--spacing-md) var(--spacing-sm) var(--spacing-md);
}

.alt-store-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.alt-store-item:hover {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.1);
    transform: translateX(4px);
}

.alt-store-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.alt-store-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.alt-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-light);
}

.alt-discount {
    font-size: 0.85rem;
    color: var(--success);
    background: rgba(76, 175, 80, 0.1);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.price-diff {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== Update Notification ===== */
.update-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(135deg, #6C63FF 0%, #4ECDC4 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-xl), 0 0 30px rgba(108, 99, 255, 0.4);
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease-out;
}

.update-notification.show {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .update-notification {
        top: 70px;
        right: 10px;
        left: 10px;
        text-align: center;
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
}

/* ===== No Results ===== */
.no-results {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-secondary);
}

.no-results svg {
    width: 100px;
    height: 100px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

/* ===== Load More Button ===== */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-icon {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.load-more-btn:disabled,
.load-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.load-more-btn.loading .load-more-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== About Section ===== */
.about-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-card);
}

.about-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

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

.about-card {
    background: var(--bg-dark);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(108, 99, 255, 0.1);
    transition: all var(--transition-normal);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-light);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-card);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 1px solid rgba(108, 99, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-light);
    margin-bottom: var(--spacing-sm);
}

.footer-section h4 {
    color: var(--primary-light);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    color: var(--text-secondary);
    padding: 0.25rem 0;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(108, 99, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-email {
    display: inline-block;
    margin-top: var(--spacing-xs);
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.footer-email:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    transform: translateX(2px);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .nav {
        gap: var(--spacing-sm);
    }

    .nav-link {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.9rem;
    }

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

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--spacing-md);
    }

    .games-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .header .container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

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

    .logo {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        width: 45px;
        height: 45px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ===== Selection ===== */
::selection {
    background: var(--primary);
    color: white;
}
