/* ============================================================
   PUBLIC NAV — Mobile hamburger + menu
   Applies to all public (unauthenticated) pages.
   ============================================================ */

/* ---------- HAMBURGER ---------- */
.pub-hamburger {
    background: transparent;
    border: none;
    display: none;           /* shown via media query */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    gap: 0.35rem;
    flex-shrink: 0;
    cursor: none;
}
.pub-hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #00FF41;
    transition: all 0.25s ease;
}
.pub-hamburger.active span:nth-child(1) { transform: translateY(8.1px) rotate(45deg); }
.pub-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.pub-hamburger.active span:nth-child(3) { transform: translateY(-8.1px) rotate(-45deg); }

/* ---------- MOBILE MENU PANEL ---------- */
.pub-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 255, 65, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #00FF41 #0a0a0a;
}
.pub-mobile-menu::-webkit-scrollbar { width: 8px; }
.pub-mobile-menu::-webkit-scrollbar-track { background: #0a0a0a; }
.pub-mobile-menu::-webkit-scrollbar-thumb { background: #00FF41; }

.pub-mobile-menu.active {
    display: flex;
}

/* ---------- MENU ITEMS ---------- */
.pub-mobile-item {
    border-bottom: 1px solid rgba(0, 255, 65, 0.07);
    width: 100%;
}

.pub-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(229, 226, 225, 0.6);
    text-decoration: none;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    cursor: none;
    transition: color 0.15s, background 0.15s;
}
.pub-mobile-link:hover {
    color: #00FF41;
    background: rgba(0, 255, 65, 0.03);
}

.pub-mobile-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
    color: rgba(0, 255, 65, 0.5);
    font-size: 1rem;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 20;
}
.pub-mobile-item.active .pub-mobile-arrow {
    transform: rotate(180deg);
}

/* ---------- SUB-LINKS (accordion) ---------- */
.pub-mobile-sub {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    transition: max-height 0.3s ease;
}
.pub-mobile-item.active .pub-mobile-sub {
    max-height: 400px;
}

.pub-mobile-sub-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem 0.7rem 3rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(229, 226, 225, 0.45);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 255, 65, 0.04);
    cursor: none;
    transition: color 0.15s, background 0.15s;
}
.pub-mobile-sub-link:hover {
    color: #00FF41;
    background: rgba(0, 255, 65, 0.04);
}

/* ---------- SHOW HAMBURGER ON MOBILE ---------- */
@media (max-width: 768px) {
    .pub-hamburger {
        display: flex;
    }
}

/* ---------- TOUCH DEVICES: restore native cursor ---------- */
@media (hover: none) and (pointer: coarse) {
    .pub-hamburger,
    .pub-mobile-link,
    .pub-mobile-sub-link {
        cursor: auto !important;
    }
}
