/* ─── Shared Centered Navbar Styles (ReadMe Inspired) ─────────────────────── */
.pregame-site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99990;
    background: rgba(9, 10, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 32px;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    transition: background 0.3s;
}

.nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    width: 100%;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: flex-start;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-end;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.chevron-icon {
    opacity: 0.6;
    transition: transform 0.2s;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .chevron-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #0f101d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 8px;
    min-width: 240px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 99995;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(2px);
    pointer-events: auto;
}

.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.menu-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.menu-item-sub {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}

/* Center Logo */
.nav-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--accent, #ff6b35);
    letter-spacing: -0.6px;
    transition: opacity 0.2s;
}

.nav-logo:hover {
    opacity: 0.9;
}

/* Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-login-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-get-started-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 9999px;
    background: var(--green, #34d399);
    color: #04180e;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(52, 211, 153, 0.3);
    transition: all 0.2s;
}

.nav-get-started-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(52, 211, 153, 0.4);
    background: #22c55e;
}

/* Mobile Hamburger & Overlay */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 99999;
    position: relative;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

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

/* Right-side slide-in drawer backdrop */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.open {
    display: block;
    opacity: 1;
}

/* The actual shelf panel */
.nav-overlay::before {
    content: none;
}

.overlay-content {
    position: absolute;
    top: 0;
    right: -340px;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #0b0c17;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 80px 28px 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow-y: auto;
    transform: translateX(0);
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
}

.nav-overlay.open .overlay-content {
    right: 0;
}

.overlay-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.overlay-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-overlay a {
    color: #ffffff;
}

.overlay-group a {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.overlay-group a:last-child {
    border-bottom: none;
}

.overlay-group a:hover {
    color: #ff6b35;
}

.overlay-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.overlay-login-btn {
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.overlay-login-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.overlay-cta-btn {
    text-align: center;
    padding: 13px;
    border-radius: 10px;
    background: var(--green, #34d399);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.overlay-cta-btn:hover {
    background: #22c55e;
}

@media (max-width: 992px) {
    .nav-inner {
        display: flex;
        justify-content: space-between;
    }
    .nav-left, .nav-right {
        display: none;
    }
    .nav-hamburger {
        display: flex;
    }
    .pregame-site-nav {
        padding: 14px 20px;
    }
}
