/**
 * Site header — copied from templates/index.html (home) so all pages match.
 * Load BEFORE css/nav-brand.css (same order as home).
 */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0a0e1a;
    border-bottom: 1px solid rgba(0, 255, 157, 0.1);
    padding: 15px 0;
    z-index: 1000;
    overflow: visible;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(270px, 1.15fr) auto auto auto;
    align-items: center;
    column-gap: 16px;
    row-gap: 8px;
    min-width: 0;
    padding: 0 40px;
}

@media (max-width: 480px) {
    .nav-container {
        grid-template-columns: minmax(0, 1fr) auto auto auto;
    }
}

.logo {
    text-decoration: none;
}

nav .nav-container > a.logo--home {
    min-width: 0;
}

.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-links img.league-logo-nfl {
    height: 52px !important;
    width: auto;
}

.nav-links img.league-logo-mlb {
    height: 32px;
    width: auto;
}

.nav-links .cfb-text-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    font-size: 17.5px;
    letter-spacing: 0.35px;
}

.nav-links a:hover .cfb-text-badge {
    color: #FFD700;
}

.nav-links .fantasy-text-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    font-size: 17.5px;
    letter-spacing: 0.35px;
}

.nav-links a:hover .fantasy-text-badge {
    color: #00ff9d;
}

.nav-links .tennis-text-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    font-size: 17.5px;
    letter-spacing: 0.35px;
}

.nav-links a:hover .tennis-text-badge {
    color: #c2ff66;
}

.nav-links .pricing-text-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    font-size: 17.5px;
}

.nav-links a:hover .pricing-text-badge {
    color: #ffcc00;
}

.nav-links .nba-text-badge,
.nav-links .nfl-text-badge,
.nav-links .mlb-text-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    font-size: 17.5px;
    letter-spacing: 0.35px;
}

.nav-links a:hover .nba-text-badge { color: #E03A3E; }
.nav-links a:hover .nfl-text-badge { color: #a5acaf; }
.nav-links a:hover .mlb-text-badge { color: #4394ff; }

/* Monochrome sport glyphs — pick up accent color via currentColor on hover/active */
.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    transition: color 0.2s ease, transform 0.2s ease;
}
.nav-links a:hover .nav-icon,
.nav-links a.active .nav-icon {
    transform: translateY(-1px);
}

.nav-links a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 700;
    font-size: 17.5px;
    transition: all 0.3s ease;
    padding: 12px 18px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a.home-link {
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 800;
    padding: 12px 18px;
    box-shadow: none;
    position: relative;
}

.nav-links a.home-link i {
    font-size: 15px;
    color: #00ff9d;
    opacity: 0.9;
}

.nav-links a.home-link::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.75), transparent);
    opacity: 0;
    transform: scaleX(0.5);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a.home-link:hover,
.nav-links a.home-link.active {
    background: rgba(0, 255, 157, 0.07);
    color: #fff;
    transform: none;
    box-shadow: none;
}

.nav-links a.home-link:hover::after,
.nav-links a.home-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-links a:hover {
    color: #00ff9d;
    background: rgba(0, 255, 157, 0.1);
}

.nav-links a.active {
    background: rgba(0, 255, 157, 0.15);
    color: #00ff9d;
}

.nav-links img.league-logo {
    height: 28px;
    width: auto;
    filter: brightness(1.1) contrast(1.1);
}

.nav-links img.league-logo-ufc {
    height: 18px;
    filter: brightness(2) invert(1);
}

.nav-links a:hover img.league-logo {
    filter: brightness(1.2) contrast(1.15);
}

/* Home nav shell — match index after nav-brand */
nav {
    padding: 18px 0 !important;
    overflow: visible !important;
}

/* Logo wordmark — same as index #sureda-home-logo-final */
#sureda-home-logo-link {
    display: block !important;
    position: relative !important;
    z-index: 3 !important;
    isolation: isolate !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: min(480px, 100%) !important;
    min-width: 0 !important;
    padding: 6px 10px 14px 6px !important;
    overflow: visible !important;
    text-decoration: none !important;
    background: #0a0e1a !important;
}

#sureda-home-nav-logo {
    display: block !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: 60px !important;
    object-fit: contain !important;
    object-position: left center !important;
    background-color: #0a0e1a !important;
    filter: none !important;
    -webkit-filter: none !important;
}

nav .nav-container .nav-links {
    position: relative !important;
    z-index: 1 !important;
}

/* ===== ACCOUNT MENU (top-right) ===== */
.nav-account {
    position: relative;
    z-index: 1001;
    flex-shrink: 0;
}

.nav-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 220px;
    padding: 6px 12px 6px 6px;
    background:
        linear-gradient(180deg, rgba(16, 24, 40, 0.95), rgba(10, 14, 26, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.94);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 8px 22px rgba(0, 0, 0, 0.28);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nav-account-btn:hover,
.nav-account.open .nav-account-btn {
    border-color: rgba(139, 92, 246, 0.45);
    color: #fff;
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.08) inset,
        0 0 20px rgba(139, 92, 246, 0.14),
        0 10px 26px rgba(0, 0, 0, 0.32);
    transform: translateY(-1px);
}

.nav-account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #8b5cf6 0%, #00d4ff 100%);
    color: #0a0e1a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 0 0 2px rgba(10, 14, 26, 0.9), 0 0 12px rgba(139, 92, 246, 0.3);
}

.nav-account-avatar i {
    font-size: 12px;
    color: #0a0e1a;
}

.nav-account-avatar--lg {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.nav-account-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
    line-height: 1.15;
}

.nav-account-label {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}

.nav-account-sub {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-weight: 500;
}

.nav-account-caret {
    font-size: 10px;
    opacity: 0.7;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease;
    margin-left: 2px;
}

.nav-account.open .nav-account-caret {
    transform: rotate(180deg);
}

.nav-account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 268px;
    padding: 0;
    background:
        radial-gradient(ellipse 90% 70% at 0% 0%, rgba(139, 92, 246, 0.1), transparent 55%),
        radial-gradient(ellipse 70% 60% at 100% 100%, rgba(0, 212, 255, 0.08), transparent 55%),
        rgba(8, 12, 24, 0.98);
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    z-index: 1002;
    overflow: hidden;
    animation: navAccountIn 0.16s ease-out;
}

@keyframes navAccountIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.nav-account-menu[hidden] {
    display: none !important;
    animation: none;
}

.nav-account-menu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-account-menu-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nav-account-menu-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(167, 139, 250, 0.9);
}

.nav-account-email {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
    word-break: break-all;
}

.nav-account-menu-body {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Sign Out is a <button> inside a POST form, not a link: logout revokes every
   session for the account, so as a GET a single cross-site link could sign a
   visitor out everywhere. It still has to look identical to the links beside it,
   hence the shared rule and the user-agent button reset below. */
.nav-account-menu a,
.nav-account-menu button.nav-account-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.nav-account-logout-form {
    margin: 0;
}

.nav-account-menu button.nav-account-logout {
    width: 100%;
    background: none;
    border: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.nav-account-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    flex-shrink: 0;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.22);
    color: #a78bfa;
    font-size: 13px;
}

.nav-account-item-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nav-account-item-label {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.nav-account-item-hint {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.2;
}

.nav-account-menu a:hover {
    background: rgba(139, 92, 246, 0.12);
    color: #fff;
}

.nav-account-menu a:hover .nav-account-item-icon {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.nav-account-menu a.nav-account-primary {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(0, 212, 255, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.nav-account-menu a.nav-account-primary:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(0, 212, 255, 0.14));
}

.nav-account-menu .nav-account-logout {
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 12px 12px;
    color: rgba(255, 170, 178, 0.95);
}

.nav-account-menu .nav-account-logout .nav-account-item-icon {
    background: rgba(255, 92, 106, 0.1);
    border-color: rgba(255, 92, 106, 0.22);
    color: #ff5c6a;
}

.nav-account-menu .nav-account-logout:hover {
    background: rgba(255, 92, 106, 0.12);
    color: #ff5c6a;
}

@media (max-width: 480px) {
    .nav-account-text {
        display: none;
    }

    .nav-account-btn {
        padding: 5px;
        gap: 0;
        max-width: none;
    }

    .nav-account-caret {
        display: none;
    }

    .nav-account-menu {
        right: -4px;
        min-width: 250px;
    }
}

/* ===== MOBILE HAMBURGER (same as index) ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.hamburger:hover {
    background: rgba(0, 255, 157, 0.1);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(8, 12, 24, 0.97);
        border-bottom: 1px solid rgba(0, 255, 157, 0.15);
        padding: 10px 24px 16px;
        gap: 2px;
        z-index: 999;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    .nav-links.open {
        display: flex !important;
    }

    .nav-links a {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 14px;
        border-radius: 10px;
        font-size: 17px;
    }

    .nav-links a.home-link {
        margin-bottom: 6px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   GLOBAL BACK BUTTON  —  single canonical style, all sports pages.
   Usage: <a href="..." class="back-btn" onclick="if(window.history.length>1){event.preventDefault();window.history.back();}">
              <i class="fas fa-arrow-left"></i> Back to [Page]
          </a>
   ══════════════════════════════════════════════════════════════════ */
.back-btn {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: rgba(0, 255, 157, 0.06);
    border: 1px solid rgba(0, 255, 157, 0.28);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: visible;
    flex-shrink: 0;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    margin-top: 0;
    margin-bottom: 20px;
    box-shadow: 0 0 0 1px rgba(0, 255, 157, 0.08) inset;
}
.back-btn i,
.back-btn .fa-arrow-left {
    font-size: 11px;
    color: #00ff9d;
    opacity: 0.9;
    flex-shrink: 0;
}
.back-btn:hover {
    background: rgba(0, 255, 157, 0.14);
    border-color: rgba(0, 255, 157, 0.55);
    color: #00ff9d;
    box-shadow: 0 0 12px rgba(0, 255, 157, 0.15), 0 0 0 1px rgba(0, 255, 157, 0.12) inset;
}
.back-btn:hover i,
.back-btn:hover .fa-arrow-left {
    opacity: 1;
}
