/* nav.css — mobile hamburger, slide-in drawer, desktop Submissions link
   Loaded by every page. Desktop hides hamburger/drawer; mobile hides top-nav user button. */

/* ── Hamburger button ──────────────────────────────────────────────── */
#hamburger-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.15s;
    flex-shrink: 0;
    margin-right: 2px;
}
#hamburger-btn:hover { background: rgba(255, 255, 255, 0.1); }

/* ── Dim overlay (behind drawer) ───────────────────────────────────── */
#mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
}
#mobile-nav-overlay.open { display: block; }

/* ── Slide-in drawer ───────────────────────────────────────────── */
#mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100dvh;
    background: #1a252f;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
}
#mobile-nav-drawer.open { transform: translateX(0); }

.drawer-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 0 8px;
}
.drawer-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 22px;
    transition: background 0.15s, color 0.15s;
}
.drawer-link:hover  { background: rgba(255, 255, 255, 0.07); color: #fff; }
.drawer-link.active { background: #3498db; color: #fff; }

/* ── Drawer user footer ────────────────────────────────────────────── */
.drawer-user-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.drawer-user-email {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.drawer-logout-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    padding: 4px 0;
    transition: color 0.15s;
}
.drawer-logout-btn:hover { color: #e74c3c; }

/* ── Desktop: hide hamburger and drawer ────────────────────────────── */
@media (min-width: 701px) {
    #hamburger-btn      { display: none; }
    #mobile-nav-drawer  { display: none !important; }
    #mobile-nav-overlay { display: none !important; }
}

/* ── Mobile: hide top-nav user button (moves to drawer footer) ─────── */
@media (max-width: 700px) {
    .top-nav-user { display: none; }
    .top-nav      { left: 0; padding: 0 8px; gap: 4px; }
    .nav-emoji    { display: none; }
}
