:root {

    /* Backgrounds */
    --bg-main: #0f172a;
    --bg-nav: #111827;
    --bg-card: #1e293b;
    --bg-subtle: #0b1220;

    /* Borders */
    --border: #334155;

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    /* Accent */
    --accent: #38bdf8;

    /* Misc */
    --divider: #475569;
}

.light-theme {

    /* Backgrounds */
    --bg-main: #f8fafc;
    --bg-nav: #ffffff;
    --bg-card: #ffffff;
    --bg-subtle: #f1f5f9;

    /* Borders */
    --border: #e2e8f0;

    /* Text */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    /* Accent */
    --accent: #0284c7;

    /* Misc */
    --divider: #94a3b8;
}

body {
    margin: 0;
    background: var(--bg-main);
    color: var(--text-primary);
    font-family: Inter, Arial, sans-serif;
}

.top-nav {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}


.nav-left {
    flex: 1;
}

.site-logo {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.nav-center {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 60px;
}

.nav-item a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.2s ease;
}

.nav-item a:hover {
    color: var(--text-primary);
}

.insights-link a {
    color: var(--accent);
    font-weight: 600;
}
.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.theme-toggle,
.search-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    color: white;
    transition: 0.2s ease;
}

.theme-toggle:hover,
.search-btn:hover {
    background: rgba(255,255,255,0.08);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
    box-shadow:
        0 10px 25px rgba(0,0,0,.15);
}
.dropdown-menu a {
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: 0.2s ease;
}
.dropdown-menu a:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}
.dropdown-arrow {
    font-size: 0.75rem;
    margin-left: 4px;
    opacity: .7;
}

.league-status {
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}
.status-divider {
    color: var(--divider);
}
.status-item {
    font-weight: 500;
    white-space: nowrap;
}
.page-container {
    width: 100%; 
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px clamp(16px, 3vw, 32px);
}