/* ============================================================
   Project : Compro Doodle
   File    : components/support-nav.css
   Version : 1.0.0
   Submenu topik Support & Education (templates/components/support-nav.html).
   Desktop: tab pill berikon. HP (<= 768px): tombol + bottom sheet.
   ============================================================ */
.sn { margin: 0 0 6px; }
.sn-i {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.sn-eyebrow {
    display: inline-block;
    color: #ff2d7a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
}
a.sn-eyebrow:hover { text-decoration: underline; }
.sn-title {
    margin: 4px 0 0;
    color: #3d3d3d;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
}

/* ---------- Desktop: tab pill ---------- */
.sn-tabs {
    display: flex;
    justify-content: space-between;
    gap: 2px;
    margin: 22px 0 4px;
    padding: 6px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(255, 45, 122, .10);
    overflow-x: auto;
    scrollbar-width: none;
}
.sn-tabs::-webkit-scrollbar { display: none; }
.sn-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 14px;
    border-radius: 999px;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.sn-tab:hover { background: #fff0f6; color: #ff2d7a; }
.sn-tab.is-active {
    background: linear-gradient(135deg, #ff5c9d, #ff2d7a);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 45, 122, .35);
}
.sn-tab:focus-visible,
.sn-trigger:focus-visible,
.sn-item:focus-visible,
.sn-close:focus-visible { outline: 2px solid #ff2d7a; outline-offset: 2px; }

/* ---------- HP: tombol + bottom sheet ---------- */
.sn-trigger { display: none; }
.sn-overlay[hidden] { display: none; }

@media (max-width: 768px) {
    .sn-head { display: none; }
    .sn-tabs { display: none; }
    .sn-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        padding: 14px 22px;
        border: 0;
        border-radius: 999px;
        background: linear-gradient(135deg, #ff5c9d, #ff2d7a);
        color: #fff;
        font: 600 16px Quicksand, sans-serif;
        box-shadow: 0 8px 22px rgba(255, 45, 122, .32);
        cursor: pointer;
    }
    .sn-trigger-label { display: flex; align-items: center; gap: 10px; }
    .sn-chev { transition: transform .3s ease; }
    .sn-trigger[aria-expanded="true"] .sn-chev { transform: rotate(180deg); }
}

.sn-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    background: rgba(40, 20, 30, .42);
    opacity: 0;
    transition: opacity .28s ease;
}
.sn-overlay.is-open { opacity: 1; }
.sn-sheet {
    width: 100%;
    max-height: 85vh;
    padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-radius: 26px 26px 0 0;
    background: #fff;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .15);
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.2, .8, .2, 1);
    overscroll-behavior: contain;
}
.sn-overlay.is-open .sn-sheet { transform: translateY(0); }
.sn-grab { width: 44px; height: 5px; margin: 2px auto 10px; border-radius: 9px; background: #e3e3e3; }
.sn-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 4px 6px;
}
.sn-sheet-head h2 { margin: 0; color: #333; font-size: 16px; font-weight: 700; }
.sn-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #999;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.sn-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 16px;
    color: #444;
    text-decoration: none;
}
.sn-item:hover { background: #fff6fa; }
.sn-item.is-active { background: #fff0f6; outline: 1.5px solid #ffb3cf; }
.sn-ico {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 13px;
    background: #ffe6f0;
    color: #ff2d7a;
}
.sn-item-text b { display: block; color: #333; font-size: 15px; }
.sn-item-text small { display: block; margin-top: 2px; color: #888; font-size: 12.5px; line-height: 1.45; }
body.sn-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .sn-overlay, .sn-sheet, .sn-tab, .sn-chev { transition: none; }
}
