/* ==========================================================================
   LAYER 205: FUTURISTIC UI OVERHAUL (2040 LIGHT EDITION)
   Theme: Solar Punk / Clean Future / High Vibrancy
   ========================================================================== */

/* 1. ROOT VARIABLES & COLOR PALETTE */
:root {
    /* Backgrounds: Clean, Bright, Airy */
    --tech-bg: #ffffff;
    --tech-bg-soft: #f8fafc;
    --tech-bg-glass: rgba(255, 255, 255, 0.85);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Vibrant Gradients (The "Wow" Factor) */
    --grad-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    /* Electric Blue -> Purple */
    --grad-fire: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    /* Solar Orange -> Red */
    --grad-neon: linear-gradient(135deg, #06b6d4 0%, #22c55e 100%);
    /* Cyan -> Lime */
    --grad-glow: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);

    /* Shadows & Glows */
    --glow-primary: 0 10px 30px -10px rgba(37, 99, 235, 0.5);
    --glow-card: 0 20px 40px -10px rgba(148, 163, 184, 0.2);
    --shadow-float: 0 15px 35px rgba(0, 0, 0, 0.05), 0 5px 15px rgba(0, 0, 0, 0.03);

    /* Text Colors */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-on-dark: #ffffff;
}

/* 2. GLOBAL RESETS & TYPOGRAPHY */
body {
    background-color: var(--tech-bg-soft);
    color: var(--text-main);
    font-family: var(--font-body);
    font-feature-settings: "ss01", "ss02";
    /* Modern font alternates */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.025em;
    font-weight: 700;
}

/* 3. GLASSMORPHIC HEADER */
.header {
    background: var(--tech-bg-glass) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 600;
    position: relative;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb !important;
}

/* 4. FUTURISTIC CARDS (Used for Articles, Leagues, Features) */
.league-section,
.topic-section,
.league-deep-dive {
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px !important;
    box-shadow: var(--shadow-float) !important;
    padding: 40px;
    margin-bottom: 40px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    overflow: hidden;
    position: relative;
}

.league-section:hover,
.topic-section:hover {
    transform: translateY(-5px) scale(1.005);
    box-shadow: 0 25px 50px -12px rgba(148, 163, 184, 0.3) !important;
}

/* 5. VIBRANT BADGES & TAGS */
.badge {
    background: var(--grad-primary) !important;
    box-shadow: var(--glow-primary);
    border: none !important;
    padding: 6px 14px !important;
    letter-spacing: 1px;
    font-weight: 700;
}

/* 6. BUTTONS: NEOMORPHIC & GLOWING */
.btn-primary,
button.trending-refresh-btn {
    background: var(--grad-primary);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 12px 28px;
    font-weight: 600;
    box-shadow: var(--glow-primary);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover,
button.trending-refresh-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.6);
}

/* 7. SECTION HEADERS: BIG & BOLD */
.section-header h2 {
    font-size: 2.5rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

/* 8. AD SLOTS: CLEAN & INTEGRATED */
.article-ad-slot,
.ad-slot,
.partner-link-item div {
    border: 1px dashed #cbd5e1 !important;
    background: #f8fafc !important;
    border-radius: 16px !important;
    transition: all 0.3s ease;
}

.article-ad-slot:hover,
.partner-link-item div:hover {
    border-color: #2563eb !important;
    background: #eff6ff !important;
}

/* 9. PARTNER WALL GRID */
#ad-wall-grid {
    gap: 20px !important;
}

.partner-link-item div {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-muted) !important;
}

/* 10. SCROLLBARS */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 11. "HIGH DEMAND" TOPICS SPECIAL STYLING */
#trending-topics-wrapper .topic-section {
    border-left: 4px solid #f59e0b;
    /* Solar Orange Accent */
}

/* 12. DROPDOWNS: FROSTED GLASS */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 10px;
}

.dropdown-menu a {

    /* 13. GLOBAL NEWS TICKER (LAYER 210) */
    #global-news-ticker {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 40px;
        background: #0f172a;
        /* Deep Navy to contrast with white header */
        color: white;
        z-index: 2000;
        /* Higher than header */
        display: flex;
        align-items: center;
        padding: 0;
        font-family: var(--font-heading);
        font-size: 0.85rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .ticker-label {
        background: var(--grad-fire);
        height: 100%;
        display: flex;
        align-items: center;
        padding: 0 20px;
        font-weight: 800;
        letter-spacing: 1px;
        font-size: 0.8rem;
    }

    .ticker-content {
        flex: 1;
        padding: 0 20px;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #ticker-text {
        transition: all 0.3s ease;
        display: inline-block;
    }

    .ticker-controls {
        padding: 0 20px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.75rem;
        font-weight: 700;
        color: #94a3b8;
    }

    .live-dot {
        width: 8px;
        height: 8px;
        background: #ef4444;
        border-radius: 50%;
        animation: pulse-red 2s infinite;
    }

    @keyframes pulse-red {
        0% {
            transform: scale(0.95);
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
        }

        70% {
            transform: scale(1);
            box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
        }

        100% {
            transform: scale(0.95);
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        }
    }