/**
 * SwingTap Global Navigation — v3.2.1
 * Rich nav for logged-in, conversion-focused for logged-out.
 * Hamburger menu on ALL screen sizes.
 */

/* ========== NAV BAR ========== */

.st-nav {
    position: sticky;
    top: 0;
    z-index: 99998;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 16px;
    font-family: 'Raleway', sans-serif;
}
.st-nav-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
}

/* ========== LOGO ========== */

.st-nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}
.st-nav-logo img {
    height: 26px;
    opacity: 0.9;
    transition: opacity 0.2s;
}
.st-nav-logo:hover img { opacity: 1; }
.st-nav-logo-text {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #d92b63;
    text-decoration: none;
}

/* Desktop inline links removed — hamburger menu handles all navigation */
.st-nav-desktop-links {
    display: none !important;
}

/* ========== HAMBURGER (always visible) ========== */

.st-nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
    position: relative;
    flex-shrink: 0;
}
.st-nav-hamburger:hover { background: rgba(255, 255, 255, 0.06); }
.st-nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ccc;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.st-nav-hamburger.st-nav-hamburger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.st-nav-hamburger.st-nav-hamburger--open span:nth-child(2) { opacity: 0; }
.st-nav-hamburger.st-nav-hamburger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Notification badge — positioned to the LEFT of the hamburger so it doesn't overlap the icon */
.st-nav-hamburger-badge {
    position: absolute;
    top: 50%;
    right: calc(100% + 4px);
    transform: translateY(-50%);
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    background: #d92b63;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 9px;
    box-sizing: border-box;
    pointer-events: none;
}

/* ========== MENU CONTAINER (hamburger slide-out, all sizes) ========== */

.st-nav-menu {
    display: none;
    position: fixed;
    top: 54px;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(10, 10, 10, 0.99);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 0 20px 32px;
    gap: 0;
    z-index: 99999;
    overflow-y: auto;
    animation: st-nav-slide-down 0.2s ease;
}
.st-nav-menu.st-nav-menu--open {
    display: flex;
}
@keyframes st-nav-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* On desktop, make menu a dropdown panel instead of full-screen */
@media (min-width: 641px) {
    .st-nav-menu {
        left: auto;
        bottom: auto;
        width: 280px;
        max-height: calc(100vh - 70px);
        border-radius: 0 0 12px 12px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-top: none;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
        padding: 8px 12px 16px;
    }
}

/* ========== MENU ITEMS ========== */

.st-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    position: relative;
    margin: 1px 0;
}
.st-nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
}
.st-nav-item--active {
    color: #d92b63;
    background: rgba(217, 43, 99, 0.08);
}
.st-nav-item--active:hover {
    color: #ff3d7f;
    background: rgba(217, 43, 99, 0.12);
}
.st-nav-item svg { flex-shrink: 0; opacity: 0.6; }
.st-nav-item--active svg { opacity: 1; stroke: #d92b63; }
.st-nav-item--muted { color: #555; }
.st-nav-item--muted:hover { color: #aaa; }


/* ========== BADGES & COUNTS ========== */

.st-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #d92b63;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 9px;
    box-sizing: border-box;
    margin-left: 2px;
}
.st-nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: rgba(255, 255, 255, 0.08);
    color: #888;
    font-size: 0.6rem;
    font-weight: 600;
    border-radius: 9px;
    box-sizing: border-box;
    margin-left: 2px;
}

/* ========== DIVIDER ========== */

.st-nav-divider {
    display: none;
}
.st-nav-menu .st-nav-divider {
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 8px 0;
}

/* ========== GREETING (menu only) ========== */

.st-nav-greeting {
    display: none;
}
.st-nav-menu .st-nav-greeting {
    display: block;
    padding: 16px 16px 8px;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

@media (min-width: 641px) {
    .st-nav-menu .st-nav-greeting {
        padding: 10px 12px 6px;
        font-size: 0.9rem;
    }
}

/* ========== LOGGED-OUT CTA (menu only) ========== */

.st-nav-cta-block {
    display: none;
}
.st-nav-menu .st-nav-cta-block {
    display: block;
    padding: 16px 16px 12px;
    text-align: center;
}
.st-nav-cta-text {
    color: #999;
    font-size: 0.82rem;
    margin: 0 0 12px;
}
.st-nav-cta-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #d92b63, #f2663d);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}
.st-nav-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(217, 43, 99, 0.3);
}

@media (min-width: 641px) {
    .st-nav-menu .st-nav-cta-block {
        padding: 12px 12px 8px;
    }
    .st-nav-cta-btn {
        padding: 10px 24px;
        font-size: 0.82rem;
    }
}

/* ========== MOBILE-SPECIFIC ========== */

@media (max-width: 640px) {
    .st-nav-item svg {
        width: 18px;
        height: 18px;
    }

    /* Badges larger on mobile */
    .st-nav-badge {
        min-width: 22px;
        height: 22px;
        font-size: 0.65rem;
        border-radius: 11px;
    }
    .st-nav-count {
        min-width: 22px;
        height: 22px;
        font-size: 0.65rem;
        border-radius: 11px;
    }
}
