/* ==========================================
   GameLib — Ultra-Premium Cinema Edition
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Sophisticated Color Palette */
    --bg-body: #080808;
    --bg-navbar: rgba(10, 10, 10, 0.7);
    --bg-card: #121212;
    --primary: #E50914; /* Netflix Red */
    --accent: #E1B382; /* Premium Gold */
    --text-main: #FFFFFF;
    --text-secondary: #B3B3B3;
    --text-muted: #737373;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --font-heading: 'Outfit', 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow: 0 10px 40px rgba(0,0,0,0.6);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo, .nav-link {
    font-family: var(--font-heading);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-heading); cursor: pointer; border: none; outline: none; }

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #080808; }
::-webkit-scrollbar-thumb { background: #222; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

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

/* ---- Layout ---- */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- Glass Navbar ---- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1000;
    padding: 0 5%;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
    transition: var(--transition);
}

.top-nav.scrolled {
    height: 70px;
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1px;
    background: linear-gradient(45deg, var(--primary), #FF5F6D);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 50px;
}

.logo svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    margin-right: auto;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

.search-box {
    position: relative;
    width: 280px;
}

.search-box input {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 10px 15px 10px 45px;
    border-radius: 50px;
    font-size: 14px;
    transition: var(--transition);
}

.search-box input:focus {
    background: rgba(255,255,255,0.1);
    border-color: var(--primary);
    width: 320px;
}

.search-box svg {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

/* ---- Hero Billboard ---- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-body) 5%, transparent 40%, transparent 60%, rgba(0,0,0,0.6) 100%),
                linear-gradient(to right, var(--bg-body) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s;
}

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

.hero-tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 25px;
    letter-spacing: -3px;
    text-transform: uppercase;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 550px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn-premium {
    padding: 15px 35px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-premium.primary {
    background: var(--text-main);
    color: var(--bg-body);
}

.btn-premium.primary:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.05);
}

.btn-premium.secondary {
    background: rgba(109, 109, 110, 0.7);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn-premium.secondary:hover {
    background: rgba(109, 109, 110, 0.4);
    transform: scale(1.05);
}

/* ---- Categories Rows ---- */
.main-view {
    margin-top: -20vh;
    padding: 0 5% 100px;
    position: relative;
    z-index: 5;
}

.category-row {
    margin-bottom: 60px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.row-explore {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.games-slider {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 20px 0;
}

.games-slider::-webkit-scrollbar { display: none; }

/* ---- Ultra-Premium Game Card ---- */
.game-card {
    flex: 0 0 280px;
    aspect-ratio: 16/9;
    background-color: var(--bg-card);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    opacity: 0.6;
}

.game-card:hover {
    transform: scale(1.15);
    z-index: 20;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}

.game-card:hover img { transform: scale(1.1); }

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    transform: translateY(10px);
    transition: var(--transition);
}

.game-card:hover .card-content { transform: translateY(0); }

.card-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .card-stats { opacity: 1; }

.star-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #FFD700;
}

/* ---- Modal System (Cinema Experience) ---- */
.game-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

.game-modal.active { display: flex; }

.modal-content {
    background: #111;
    width: 100%;
    max-width: 1100px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 100px rgba(0,0,0,1);
    border: 1px solid var(--glass-border);
}

.modal-hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.modal-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #111 5%, transparent 40%);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover { background: var(--primary); transform: rotate(90deg); }

.modal-body {
    padding: 60px;
}

.modal-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    font-weight: 700;
    color: var(--accent);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 60px;
}

.modal-description {
    color: var(--text-main);
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* ---- Reviews Section ---- */
.reviews-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--glass-border);
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.review-form {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-bottom: 40px;
    border: 1px solid var(--glass-border);
}

.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--text-secondary); }

.input-premium {
    width: 100%;
    background: #181818;
    border: 1px solid var(--glass-border);
    padding: 15px;
    border-radius: 4px;
    color: white;
    font-family: inherit;
    outline: none;
}

.input-premium:focus { border-color: var(--primary); }

.rating-input {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-star {
    font-size: 24px;
    cursor: pointer;
    color: #333;
    transition: color 0.2s;
}

.rating-star.active { color: #FFD700; }

.review-item {
    padding: 25px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.02);
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
}

.review-user { font-weight: 800; font-size: 1.1rem; margin-bottom: 5px; }
.review-comment { color: var(--text-secondary); font-style: italic; }

/* ---- Utilities ---- */
.loading-view {
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-loader {
    width: 60px;
    height: 60px;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    border-radius: 50%;
    animation: premiumSpin 1s linear infinite;
}

@keyframes premiumSpin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .modal-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .top-nav { padding: 0 20px; }
    .hero { text-align: center; justify-content: center; }
    .hero-actions { justify-content: center; }
    .main-view { margin-top: -10vh; }
}

/* ==========================================
   Pricing & Promotions
   ========================================== */

/* Card Image Wrapper */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Price Overlay on Cards */
.card-price-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 3;
    display: flex;
    gap: 4px;
    align-items: center;
}

/* Price Badges */
.price-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.price-badge.free {
    background: rgba(0, 200, 83, 0.9);
    color: white;
}

.price-badge.paid {
    background: rgba(229, 9, 20, 0.9);
    color: white;
}

.price-badge.has-promo {
    background: rgba(229, 9, 20, 0.9);
    color: white;
    gap: 6px;
}

.price-old {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 10px;
}

.price-new {
    font-size: 13px;
    font-weight: 900;
}

/* Promo Ribbon on Cards */
.card-promo-ribbon {
    position: absolute;
    top: 10px;
    left: -5px;
    background: linear-gradient(135deg, #FF6B35, #E50914);
    color: white;
    padding: 3px 14px 3px 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 0 4px 4px 0;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.5);
    animation: promoShine 3s infinite;
}

.card-promo-ribbon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    border-style: solid;
    border-width: 0 5px 5px 0;
    border-color: transparent #9c0510 transparent transparent;
}

@keyframes promoShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

/* Promo Badge */
.promo-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    background: linear-gradient(135deg, #FF6B35, #FF2D2D);
    color: white;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Modal Price Zone */
.modal-price-zone {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}

.modal-promo-label {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #FF6B35, #E50914);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    animation: promoShine 3s infinite;
}

.modal-price-display {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.modal-price-old {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.modal-price-current {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    font-family: var(--font-heading);
}

.modal-price-free {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00C853;
    font-family: var(--font-heading);
}

/* ==========================================
   Premium Game Detail Page Layout (2 Columns)
   ========================================== */

.game-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.game-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.game-short-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Right Column: Meta & Download Card */
.premium-meta-card {
    background: transparent;
    border-radius: var(--radius-md);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.meta-row {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.meta-row span {
    color: white;
    font-weight: 600;
}

/* Premium Price Box (e.g. "Gratuit") */
.premium-price-box {
    background: #111;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.premium-price-text {
    color: #00DB5F; /* Vibrant Green */
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* Premium White Download Button */
.premium-download-btn {
    background: white;
    color: black;
    width: 100%;
    padding: 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.premium-download-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.premium-access-btn {
    background: var(--primary);
    color: white;
    width: 100%;
    padding: 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.premium-access-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .game-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Stripe Buy Button */
.btn-premium.stripe-buy {
    background: linear-gradient(135deg, #635BFF, #7B73FF);
    color: white;
    border: none;
    font-weight: 800;
    transition: var(--transition);
}

.btn-premium.stripe-buy:hover {
    background: linear-gradient(135deg, #7B73FF, #635BFF);
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(99, 91, 255, 0.4);
}

/* Game Detail Page — Price Section */
.game-price-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    flex-wrap: wrap;
}

.detail-promo-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #FF6B35, #E50914);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.detail-price-old {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.detail-price-current {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    font-family: var(--font-heading);
}

.detail-price-free {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00C853;
    font-family: var(--font-heading);
}

/* Game Actions (Download + Buy) */
.game-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #635BFF, #7B73FF);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.buy-btn:hover {
    background: linear-gradient(135deg, #7B73FF, #635BFF);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(99, 91, 255, 0.4);
}

/* Search price text */
.search-result-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Modal info styles */
.modal-info p {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ==========================================
   Logo Badge
   ========================================== */

.logo-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #E50914, #FF5F6D);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    transition: var(--transition);
}

.logo-icon-badge svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

.logo:hover .logo-icon-badge {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

/* ==========================================
   Hero Scroll Indicator
   ========================================== */

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 13px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

.hero-scroll-indicator span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 600;
}

/* ==========================================
   Quick Stats Bar
   ========================================== */

.quick-stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 5%;
    background: linear-gradient(180deg, var(--bg-body) 0%, rgba(229, 9, 20, 0.03) 50%, var(--bg-body) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 5;
    flex-wrap: wrap;
}

.quick-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 100px;
}

.qs-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qs-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* ==========================================
   Enhanced Search Results
   ========================================== */

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    z-index: 100;
}

.search-results.active { display: block; }

.search-result-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.search-result-item:last-child { border-bottom: none; }

.search-result-item:hover {
    background: rgba(229, 9, 20, 0.1);
}

.search-result-img {
    width: 48px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ==========================================
   Premium Footer
   ========================================== */

.site-footer {
    position: relative;
    padding: 80px 5% 0;
    margin-top: 40px;
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), #635BFF, transparent);
    filter: blur(1px);
}

.footer-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 80px;
    background: linear-gradient(180deg, rgba(229, 9, 20, 0.08), transparent);
    filter: blur(20px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo svg {
    stroke: var(--primary);
    flex-shrink: 0;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 10px;
}

.footer-tech {
    opacity: 0.5;
}

/* ==========================================
   Enhanced Animations
   ========================================== */

/* Card entrance animation */
.game-card {
    animation: cardEntrance 0.6s ease-out both;
}

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

/* Category row entrance */
.category-row {
    animation: rowSlide 0.8s ease-out both;
}

@keyframes rowSlide {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Enhanced loader */
.premium-loader {
    position: relative;
}

.premium-loader::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 4px solid transparent;
    border-top-color: #635BFF;
    border-radius: 50%;
    animation: premiumSpin 1.5s linear infinite reverse;
}

/* Modal entrance */
.game-modal.active .modal-content {
    animation: modalEnter 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalEnter {
    from { opacity: 0; transform: scale(0.9) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content { flex-direction: column; gap: 40px; }
    .footer-links { flex-direction: column; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .quick-stats-bar { gap: 20px; }
    .quick-stat { min-width: 80px; }
    .qs-num { font-size: 1.5rem; }
    .hero-scroll-indicator { display: none; }
}
