/* ================================================================
   MOBILE NAV — modern drawer v2 (2026-10-29)
   Replaces previous mobile-nav.css
   ================================================================ */

/* ---------- TRIGGER BUTTON (hamburger in header) ---------- */
.mobile-nav-toggle {
    display: none;                 /* desktop: hidden */
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #f5f5f5;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible {
    background: rgba(255,255,255,0.06);
    border-color: rgba(245,200,66,0.4);
    outline: none;
}

@media (max-width: 1023px) {
    .mobile-nav-toggle { display: inline-flex; }
}

/* ---------- DRAWER SHELL ---------- */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(360px, 88vw);
    max-width: 100vw;
    background: #0f0f14;
    color: #f5f5f5;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 8px 0 40px rgba(0,0,0,0.6);
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
    will-change: transform;
    overscroll-behavior: contain;
}
.mobile-nav.is-open {
    transform: translateX(0);
}

/* ---------- HEADER (logo + close) ---------- */
.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.mobile-nav__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.mobile-nav__logo img {
    height: 40px;
    width: auto;
    display: block;
}

.mobile-nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: transparent;
    color: #f5f5f5;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav__close:hover,
.mobile-nav__close:focus-visible {
    background: rgba(255,255,255,0.06);
    border-color: rgba(245,200,66,0.4);
    outline: none;
}

/* ---------- SEARCH ---------- */
.mobile-nav__search {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.mobile-nav__search-form {
    position: relative;
    display: flex;
    align-items: center;
}
.mobile-nav__search-form > i {
    position: absolute;
    left: 14px;
    color: #b0b0b0;
    font-size: 0.9rem;
    pointer-events: none;
}
.mobile-nav__search-form input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 38px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #f5f5f5;
    font-size: 0.92rem;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.mobile-nav__search-form input::placeholder { color: #888; }
.mobile-nav__search-form input:focus {
    outline: none;
    border-color: #f5c842;
    background: rgba(255,255,255,0.06);
}

/* ---------- SCROLLABLE BODY ---------- */
.mobile-nav__content {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 24px;
}

/* ---------- SECTION / HEADING ---------- */
.mobile-nav__section {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav__section:last-of-type { border-bottom: none; }
.mobile-nav__section--social { padding-bottom: 24px; }

.mobile-nav__heading {
    padding: 14px 20px 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8a8a95;
}

/* ---------- ACCOUNT ---------- */
.mobile-nav__account {
    padding: 12px 16px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav__account-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: linear-gradient(135deg, rgba(245,200,66,0.12), rgba(245,200,66,0.04));
    border: 1px solid rgba(245,200,66,0.3);
    border-radius: 14px;
    text-decoration: none;
    color: #f5f5f5;
    transition: border-color 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav__account-cta:hover,
.mobile-nav__account-cta:focus-visible {
    border-color: #f5c842;
    background: linear-gradient(135deg, rgba(245,200,66,0.2), rgba(245,200,66,0.08));
    outline: none;
}

.mobile-nav__account-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(245,200,66,0.15);
    color: #f5c842;
    font-size: 1rem;
    flex-shrink: 0;
}

.mobile-nav__account-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.mobile-nav__account-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f5f5f5;
}
.mobile-nav__account-sub {
    font-size: 0.75rem;
    color: #a0a0aa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-nav__account-arrow {
    color: #f5c842;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Logged-in 4-tile grid */
.mobile-nav__account-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.mobile-nav__account-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #f5f5f5;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav__account-tile:hover,
.mobile-nav__account-tile:focus-visible {
    background: rgba(255,255,255,0.07);
    border-color: rgba(245,200,66,0.35);
    outline: none;
}
.mobile-nav__account-tile i {
    color: #f5c842;
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ---------- ACCORDION (categories) ---------- */
.mobile-nav__accordion {
    display: flex;
    flex-direction: column;
}

.mobile-nav__group {
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.mobile-nav__group:last-child { border-bottom: none; }

.mobile-nav__accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    border: 0;
    color: #f5f5f5;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    min-height: 52px;
}
.mobile-nav__accordion-toggle:hover,
.mobile-nav__accordion-toggle:focus-visible {
    background: rgba(255,255,255,0.04);
    color: #f5c842;
    outline: none;
}
.mobile-nav__accordion-toggle i {
    font-size: 0.75rem;
    color: #a0a0aa;
    transition: transform 0.25s cubic-bezier(0.32, 0.72, 0, 1), color 0.2s ease;
    flex-shrink: 0;
}
.mobile-nav__accordion-toggle[aria-expanded="true"] {
    color: #f5c842;
}
.mobile-nav__accordion-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
    color: #f5c842;
}

/* Solo category (no children) — clickable row, uses chevron-right */
.mobile-nav__accordion-toggle--solo {
    text-decoration: none;
}
.mobile-nav__accordion-toggle--solo i {
    transform: none !important;
    color: #8a8a95;
}

/* ---------- ACCORDION PANEL ---------- */
.mobile-nav__accordion-panel {
    padding: 0 20px 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-nav__child-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.88rem;
    color: #c8c8d0;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav__child-link:hover,
.mobile-nav__child-link:focus-visible {
    background: rgba(255,255,255,0.05);
    color: #f5c842;
    outline: none;
}
.mobile-nav__child-link:first-child {
    color: #f5c842;
    font-weight: 600;
}

/* ---------- LINK ROWS (info pages) ---------- */
.mobile-nav__link {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    padding: 14px 20px;
    color: #f5f5f5;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav__link:hover,
.mobile-nav__link:focus-visible {
    background: rgba(255,255,255,0.04);
    color: #f5c842;
    outline: none;
}
.mobile-nav__link > i:first-child {
    width: 20px;
    text-align: center;
    color: #a0a0aa;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.mobile-nav__link:hover > i:first-child,
.mobile-nav__link:focus-visible > i:first-child {
    color: #f5c842;
}
.mobile-nav__link > span {
    flex: 1;
    min-width: 0;
}
.mobile-nav__link-arrow {
    font-size: 0.7rem;
    color: #555;
    flex-shrink: 0;
}

/* ---------- QUICK CONTACT TRIO ---------- */
.mobile-nav__quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 6px 16px 14px;
}
.mobile-nav__quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #f5f5f5;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav__quick-action:hover,
.mobile-nav__quick-action:focus-visible {
    background: rgba(245,200,66,0.1);
    border-color: rgba(245,200,66,0.4);
    color: #f5c842;
    outline: none;
}
.mobile-nav__quick-action:active {
    transform: scale(0.97);
}
.mobile-nav__quick-action i {
    font-size: 1.2rem;
    color: #f5c842;
}

/* ---------- SOCIALS ---------- */
.mobile-nav__social {
    display: flex;
    gap: 10px;
    padding: 0 20px 8px;
}
.mobile-nav__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #f5f5f5;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.mobile-nav__social a:hover,
.mobile-nav__social a:focus-visible {
    background: rgba(245,200,66,0.15);
    border-color: #f5c842;
    color: #f5c842;
    outline: none;
}

/* ---------- BACKDROP ---------- */
.mobile-nav__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}
.mobile-nav__backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}

/* ---------- BODY LOCK ---------- */
body.mobile-nav-locked {
    overflow: hidden;
    touch-action: none;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    .mobile-nav,
    .mobile-nav__backdrop,
    .mobile-nav__accordion-toggle i,
    .mobile-nav__account-cta,
    .mobile-nav__quick-action {
        transition: none !important;
    }
}