/* ======================================================
   GLOBAL BRAND SKIN (Billin Dollar Look)
  Theme: Sleek, Modern, Executive Blue-Grey
====================================================== */

:root {
    /* --- 🎨 THE PALETTE --- */
    --bg-deep: #0f172a;       
    --bg-surface: #1e293b;    
    --bg-gradient: radial-gradient(circle at 50% 0%, #334155 0%, #020617 100%); 
    
    --primary: #2563eb;       /* Locked to your Executive Blue */
    --primary-glow: rgba(37, 99, 235, 0.4);
    
    --text-main: #f8fafc;     
    --text-muted: #0a0e13;    
    
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-surface: rgba(30, 41, 59, 0.7);
    
    --transition-fast: all 0.2s ease;
}

/* --- 🌍 GLOBAL RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    background-color: var(--bg-deep);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* --- UTILITIE --- */
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }

/* --- 🔘 GLOBAL BUTTONS --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid transparent;
}
.btn-primary {
    background: var(--primary); color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    white-space: nowrap;
}
.btn-primary:hover {
    transform: translateY(-2px);
    background: #1d4ed8;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}
.btn-glass {
    background: rgba(255,255,255,0.05); border-color: var(--glass-border);
    backdrop-filter: blur(10px); color: var(--text-main);
}
.btn-glass:hover {
    background: rgba(255,255,255,0.1); border-color: var(--text-main);
}

/* ======================================================
   🚪 UNBREAKABLE HEADER SYSTEM (Applies to ALL pages)
====================================================== */
header {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    gap: 30px !important;
    align-items: center !important;
    padding: 0 5% !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    height: 70px !important;
    box-sizing: border-box !important;
}

/* Header Columns */
.header-left { display: flex; justify-content: flex-start; align-items: center; white-space: nowrap; }
.header-center { display: flex; justify-content: center; align-items: center; }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }

/* The Back Arrow Button */
.header-back-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px;
    background: #ffffff; border: 1px solid #e2e8f0; color: #0f172a;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 14px; box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    flex-shrink: 0;
}
.header-back-btn i { font-size: 1.1rem; transition: transform 0.2s ease; }
.header-back-btn:hover { background: #f8fafc; border-color: #cbd5e1; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.header-back-btn:hover i { transform: translateX(-4px); }

/* Logo Stack */
.logo-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-brand i { font-size: 1.6rem; color: var(--primary); }
.logo-text-stack { display: flex; flex-direction: column; }
/* 🚨 Dialed back font-weight from 900 to 700 */
.logo-title { font-weight: 700; font-size: 1.25rem; color: var(--primary); line-height: 1.0; letter-spacing: -0.5px; }
/* 🚨 Dialed back font-weight from 700 to 500 */
.logo-subtitle { font-size: 0.85rem; color: var(--primary); font-weight: 500; font-style: italic; font-family: Georgia, 'Times New Roman', serif; margin-top: 2px; }

/* Main Navigation */
.main-nav { display: flex; align-items: center; gap: 24px; }
.nav-item { 
    color: #475569; font-weight: 600; font-size: 0.95rem; 
    transition: color 0.2s ease; display: inline-flex; align-items: center; white-space: nowrap; 
}
.nav-item:hover, .nav-item.active { color: var(--primary); }

/* Dropdown Engine */
.nav-dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); min-width: 200px; margin-top: 10px;
}
.dropdown-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    color: #0f172a; font-weight: 600; font-size: 0.9rem; border-radius: 8px; transition: 0.2s;
}
.dropdown-item i { width: 16px; text-align: center; }
.dropdown-item:hover { background: #f8fafc; color: var(--primary); }
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu::before {
    content: ''; position: absolute; top: -15px; left: 0; right: 0; height: 15px; background: transparent;
}

/* Social Icons */
.nav-socials { display: flex; align-items: center; gap: 12px; border-left: 1px solid #cbd5e1; padding-left: 20px; }
.social-icon { color: #64748b; font-size: 1rem; transition: 0.2s; }
.social-icon:hover { color: var(--primary); }

/* Header Auth Buttons (Strict Sizing) */
header .btn-primary {
    padding: 0 18px !important; font-size: 0.88rem !important; border-radius: 8px !important;
    height: 38px !important; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2) !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    white-space: nowrap !important;
}
header .auth-icon-btn-logout {
    background: transparent; color: var(--primary); border: 1px solid var(--primary);
    padding: 0 14px; height: 38px; border-radius: 8px; font-weight: bold; font-size: 0.88rem;
    display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
    white-space: nowrap; cursor: pointer; transition: 0.2s;
}
header .auth-icon-btn-logout:hover { background: var(--primary); color: #ffffff; }

/* --- 🚀 HERO SECTION --- */
.hero-section { padding: 180px 20px 100px; text-align: center; max-width: 1000px; margin: 0 auto; }
.badge {
    background: rgba(59, 130, 246, 0.1); color: var(--primary); padding: 6px 16px; 
    border-radius: 100px; font-size: 0.85rem; font-weight: 800; text-transform: uppercase; 
    letter-spacing: 1px; margin-bottom: 20px; display: inline-block; border: 1px solid rgba(59, 130, 246, 0.2);
}
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; font-weight: 900; margin-bottom: 25px;
    background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.subtitle { font-size: 1.25rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 50px; line-height: 1.7; }

/* --- 🍱 GRID SYSTEM --- */
.grid-container { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

.sport-card {
    background: rgba(30, 41, 59, 0.4); border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px); border-radius: 24px; padding: 40px; position: relative; overflow: hidden;
    transition: var(--transition-fast); display: block;
}
.sport-card:hover { transform: translateY(-5px); border-color: var(--primary); background: rgba(30, 41, 59, 0.6); }
.sport-card h3 { font-size: 1.8rem; margin: 15px 0 10px; font-weight: 800; }
.sport-card p { color: var(--text-muted); font-size: 1rem; margin-bottom: 25px; line-height: 1.5; }
.sport-icon { font-size: 3rem; margin-bottom: 15px; display: block; }

.status-badge {
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    padding: 6px 12px; border-radius: 100px; display: inline-block; letter-spacing: 0.5px;
}
.status-live { background: rgba(16, 185, 129, 0.15); color: #2563eb; border: 1px solid rgba(16, 185, 129, 0.2); }
.status-soon { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid var(--glass-border); }

/* --- 🦶 FOOTER --- */
footer { text-align: center; padding: 80px 20px; border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 0.9rem; margin-top: 50px; }

/* --- 🎯 PLAYER PULSE --- */
@keyframes sniper-pulse {
    0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.8); transform: translate(-50%, -50%) scale(1); }
    50% { box-shadow: 0 0 0 15px rgba(251, 191, 36, 0); transform: translate(-50%, -50%) scale(1.2); }
    100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); transform: translate(-50%, -50%) scale(1); }
}
.player-pulsing { animation: sniper-pulse 1.5s infinite cubic-bezier(0.66, 0, 0, 1); border: 2px solid #fbbf24 !important; z-index: 9999 !important; }

/* ======================================================
  📱 SURGICAL RESPONSIVE DROPOUTS (The Fix)
====================================================== */

/* 1. At 1150px: Kill the social icons FIRST to protect the main navigation */
@media (max-width: 1150px) {
    .nav-socials { display: none !important; }
}

/* 2. At 950px: Compress the main navigation so it physically fits (DO NOT HIDE IT) */
@media (max-width: 950px) {
    header { gap: 15px !important; padding: 0 3% !important; }
    .main-nav { gap: 14px !important; }
    .nav-item { font-size: 0.85rem !important; }
    header .btn-primary, header .auth-icon-btn-logout { padding: 0 14px !important; }
    .logo-title { font-size: 1.1rem !important; }
}

/* 3. True Mobile Layout (< 768px) */
@media (max-width: 768px) {
    header { padding: 10px 15px !important; height: 60px !important; }
    .logo-subtitle { font-size: 0.65rem !important; }
    
    /* Hide the text nav and labels strictly for phone screens to prevent crashing */
    .header-center { display: none !important; } 
    .hide-text-mobile { display: none !important; }
    
    header .btn-primary, header .auth-icon-btn-logout { 
        padding: 0 12px !important; height: 34px !important; width: auto !important; font-size: 0.8rem !important;
    }
    
    .hero-section { padding-top: 120px; padding-bottom: 50px; }
    h1 { font-size: 2.2rem; }
    .subtitle { font-size: 1.1rem; }
}
/* ======================================================
  🚨 SURGICAL IPAD OVERFLOW FIX (Locks the Right Header)
====================================================== */
@media (max-width: 1150px) {
    /* 1. Kills the text spans no matter which class name the page uses */
    .hide-text-mobile, 
    .launch-hide-mobile { 
        display: none !important; 
    }
    
    /* 2. Forces ALL auth buttons into perfect 38px icon squares */
    header .btn-primary, 
    header .auth-icon-btn-logout,
    header .launch-auth-btn { 
        padding: 0 !important; 
        width: 38px !important; 
        height: 38px !important; 
        min-width: 38px !important; /* Prevents text from forcing it wider */
        justify-content: center !important; 
    }
    
    /* 3. Shatters the rigid 160px wrapper so the grid pulls back to the left */
    .header-right > div { 
        min-width: 0 !important; 
    }
}