/*
 * mobile-nav.css — Session 11
 * Mobile navigation drawer (right-to-left), sub-category panels, overlay.
 * All colours via --silure- custom properties. border-radius: 0 throughout.
 */

/* ── Overlay ────────────────────────────────────────────────────────────── */

#silure-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1099;
    background: rgba(5, 5, 5, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#silure-nav-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── Drawer ─────────────────────────────────────────────────────────────── */

#silure-mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1100;
    width: 320px;
    max-width: 90vw;
    background: rgba(5, 5, 5, 0.62);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    will-change: transform;
    backface-visibility: hidden;
}

#silure-mobile-nav.is-open {
    transform: translateX(0);
}

/* Drawer header row */
.silure-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
    flex-shrink: 0;
}
.silure-drawer-header a {
    color: #FBF9F6 !important;
}

.silure-drawer-logo {
    height: 18px;
    width: auto;
    display: block;
}

/* Drawer close button — 2-bar design, slides in from right on open */
#silure-nav-close.silure-drawer-close-x {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 11px;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    outline: none;
    cursor: pointer;
    color: #FBF9F6 !important;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(16px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s;
}
.silure-drawer-close-x span {
    display: block;
    height: 1.5px;
    width: 24px;
    background: currentColor;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
#silure-mobile-nav.is-open .silure-drawer-close-x {
    opacity: 1;
    transform: translateX(0);
}
#silure-mobile-nav.is-open .silure-drawer-close-x span:nth-child(1) {
    transform: translateY(6.25px) rotate(45deg);
}
#silure-mobile-nav.is-open .silure-drawer-close-x span:nth-child(2) {
    transform: translateY(-6.25px) rotate(-45deg);
}

/* Drawer scroll container */
.silure-drawer-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* ── Primary panel ──────────────────────────────────────────────────────── */

.silure-drawer-primary {
    position: absolute;
    inset: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.silure-drawer-primary.is-pushed {
    transform: translateX(-100%);
}

/* Mobile nav list */
.silure-mobile-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0 24px;
}

.silure-mobile-menu > li {
    border-bottom: none;
}

.silure-mobile-menu > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    font-family: 'Mulish', sans-serif;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #FBF9F6;
    text-decoration: none;
}

.silure-mobile-menu > li > a:active { background: rgba(251, 249, 246, 0.08); }

/* Expand arrow button for items with children */
.silure-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: -8px -8px -8px 0;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(251, 249, 246, 0.6);
    font-size: 16px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.silure-expand-btn:hover { color: #FBF9F6; }

/* ── Sub-category panel ─────────────────────────────────────────────────── */

.silure-sub-panel {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.95);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.silure-sub-panel.is-open {
    transform: translateX(0);
}

/* Sub-panel back button */
.silure-sub-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    height: 52px;
    border-bottom: 1px solid var(--silure-border, #E8E4DF);
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid rgba(251, 249, 246, 0.15);
    position: sticky;
    top: 0;
    z-index: 1;
}

.silure-sub-back {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Mulish', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(251, 249, 246, 0.6);
    padding: 0;
    transition: color 0.2s;
}

.silure-sub-back:hover { color: #FBF9F6; }

.silure-sub-panel-title {
    font-family: 'Mulish', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FBF9F6;
}

/* Sub-menu links */
.silure-sub-menu-list {
    list-style: none;
    margin: 0;
    padding: 8px 0 24px;
}

.silure-sub-menu-list li {
    border-bottom: 1px solid rgba(251, 249, 246, 0.1);
}

.silure-sub-menu-list a {
    display: block;
    padding: 14px 20px;
    font-family: 'Mulish', sans-serif;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.3px;
    color: rgba(251, 249, 246, 0.85);
    text-decoration: none;
    transition: background 0.15s;
}

.silure-sub-menu-list a:active { background: rgba(251, 249, 246, 0.08); }

/* ── Drawer footer icons ─────────────────────────────────────────────────── */

.silure-drawer-footer {
    padding: 20px 32px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.silure-drawer-footer-icons {
    display: flex;
    gap: 24px;
    align-items: center;
}

.silure-drawer-quick-btn {
    display: flex;
    align-items: center;
    min-height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Mulish', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(251, 249, 246, 0.75) !important;
    padding: 0;
    transition: color 0.2s;
}

.silure-drawer-quick-btn:hover { color: #FBF9F6 !important; }

/* ── Desktop: hide drawer chrome ────────────────────────────────────────── */

@media (min-width: 1025px) {
    #silure-mobile-nav,
    #silure-nav-overlay { display: none !important; }
}
