/* ==========================================================================
   SIMWAR — Halaman FAQ
   Gaya untuk hero pencarian, filter kategori, dan daftar pertanyaan.
   Token, tombol, panel, dan accordion dasar tetap memakai style.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Hero FAQ dan pencarian
   -------------------------------------------------------------------------- */
.faq-hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(26px, 3.4vw, 42px) clamp(52px, 6.4vw, 76px);
    background:
        radial-gradient(circle at 86% 10%, rgba(37, 99, 235, 0.28), transparent 46%),
        radial-gradient(circle at 8% 98%, rgba(34, 211, 238, 0.1), transparent 42%),
        linear-gradient(158deg, #060b1f 0%, #081231 54%, #060b1f 100%);
    color: var(--white);
}

.faq-hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.faq-hero__bg .hero__grid {
    mask-image: radial-gradient(ellipse at 62% 30%, #000 4%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 62% 30%, #000 4%, transparent 70%);
}

.faq-hero__bg .glow--blue {
    top: -280px;
    right: -6%;
    opacity: 0.46;
}

.faq-hero__bg .glow--cyan {
    right: auto;
    bottom: -280px;
    left: 12%;
    opacity: 0.32;
}

.faq-hero__ring {
    position: absolute;
    top: 44%;
    right: -210px;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    transform: translateY(-50%);
}

.faq-hero__ring::before,
.faq-hero__ring::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.faq-hero__ring::before {
    inset: 82px;
}

.faq-hero__ring::after {
    inset: 170px;
}

.faq-hero__beam {
    position: absolute;
    top: 10%;
    left: 6%;
    width: 1px;
    height: 58%;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.4), transparent);
}

.faq-hero .breadcrumb {
    position: relative;
    z-index: 1;
    margin-bottom: clamp(26px, 3.4vw, 38px);
}

.faq-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(34px, 4.5vw, 64px);
}

.faq-hero__copy {
    max-width: 620px;
}

.faq-hero__title {
    margin-bottom: 18px;
    color: var(--white);
    font-size: clamp(2.15rem, 4.5vw, 3.55rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.03;
}

.faq-hero__lead {
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.98rem, 1.3vw, 1.08rem);
    line-height: 1.75;
}

/* Kolom pencarian */
.faq-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 560px;
    margin-top: 28px;
}

.faq-search__icon {
    position: absolute;
    left: 17px;
    display: grid;
    place-items: center;
    color: var(--blue-600);
    pointer-events: none;
}

.faq-search input {
    width: 100%;
    height: 56px;
    padding: 0 52px 0 49px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.97);
    color: var(--ink);
    font-family: inherit;
    font-size: 0.94rem;
    line-height: 1.4;
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.75);
    transition:
        border-color 0.2s var(--ease),
        box-shadow 0.2s var(--ease);
}

.faq-search input::placeholder {
    color: var(--muted-light);
    opacity: 1;
}

.faq-search input:hover {
    border-color: rgba(255, 255, 255, 0.34);
}

.faq-search input:focus {
    border-color: var(--cyan-400);
    outline: none;
    box-shadow:
        0 0 0 4px rgba(34, 211, 238, 0.18),
        0 18px 40px -24px rgba(0, 0, 0, 0.75);
}

.faq-search input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.faq-search__clear {
    position: absolute;
    right: 9px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--paper-2);
    color: var(--muted);
    cursor: pointer;
    transition:
        background-color 0.2s var(--ease),
        color 0.2s var(--ease);
}

.faq-search__clear:hover {
    background: var(--blue-50);
    color: var(--blue-700);
}

.faq-search__clear[hidden] {
    display: none;
}

.faq-search__hint {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.72rem;
    line-height: 1.6;
}

.faq-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.faq-hero__meta span,
.faq-hero__meta a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    line-height: 1.4;
    transition:
        background-color 0.2s var(--ease),
        color 0.2s var(--ease);
}

.faq-hero__meta a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.faq-hero__meta .icon {
    color: var(--cyan-400);
}

/* Panel topik populer */
.faq-hero__panel {
    position: relative;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
    box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.faq-hero__panel-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.faq-hero__panel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan-400);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
}

.faq-topics {
    display: grid;
    gap: 6px;
    margin-top: 14px;
}

.faq-topic {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        background-color 0.2s var(--ease),
        border-color 0.2s var(--ease);
}

.faq-topic:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.faq-topic:focus-visible {
    outline: 2px solid var(--cyan-400);
    outline-offset: 1px;
}

.faq-topic__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--cyan-300);
}

.faq-topic__copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.faq-topic__copy strong {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
}

.faq-topic__copy small {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
    line-height: 1.4;
}

.faq-topic__arrow {
    margin-left: auto;
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.32);
    transition:
        color 0.2s var(--ease),
        transform 0.2s var(--ease);
}

.faq-topic:hover .faq-topic__arrow {
    color: var(--cyan-300);
    transform: translateX(2px);
}

.faq-hero__panel-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.68rem;
    line-height: 1.6;
}

.faq-hero__panel-note .icon {
    margin-top: 2px;
    flex: 0 0 auto;
    color: var(--cyan-300);
}

/* --------------------------------------------------------------------------
   2. Filter kategori
   -------------------------------------------------------------------------- */
.faq-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.faq-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--white);
    color: var(--ink-soft);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    transition:
        background-color 0.2s var(--ease),
        border-color 0.2s var(--ease),
        color 0.2s var(--ease),
        box-shadow 0.2s var(--ease);
}

.faq-tab small {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: var(--paper-2);
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1;
    transition:
        background-color 0.2s var(--ease),
        color 0.2s var(--ease);
}

.faq-tab:hover {
    border-color: rgba(37, 99, 235, 0.32);
    color: var(--blue-700);
    box-shadow: var(--shadow-sm);
}

.faq-tab.is-active {
    border-color: var(--blue-600);
    background: var(--blue-600);
    color: var(--white);
    box-shadow: 0 12px 26px -18px rgba(37, 99, 235, 0.9);
}

.faq-tab.is-active small {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.faq-tab:focus-visible {
    outline: 2px solid var(--blue-500);
    outline-offset: 2px;
}

.faq-noscript {
    margin-bottom: 18px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--warning);
    border-radius: 10px;
    background: var(--warning-soft);
    color: var(--ink-soft);
    font-size: 0.8rem;
    line-height: 1.65;
}

/* --------------------------------------------------------------------------
   3. Daftar pertanyaan
   -------------------------------------------------------------------------- */
#daftar-faq {
    scroll-margin-top: calc(var(--header-height) + 20px);
}

.faq-browser {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: clamp(30px, 4vw, 52px);
}

.faq-browser__main {
    min-width: 0;
}

.faq-results {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.faq-results__count {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

.faq-reset {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--blue-600);
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.3);
    text-underline-offset: 3px;
    transition: color 0.2s var(--ease);
}

.faq-reset:hover {
    color: var(--blue-700);
    text-decoration-color: currentColor;
}

.faq-reset:focus-visible {
    outline: 2px solid var(--blue-500);
    outline-offset: 3px;
    border-radius: 3px;
}

.faq-reset[hidden] {
    display: none;
}

.faq-entries .faq-entry {
    background: var(--white);
}

.faq-entry[hidden] {
    display: none;
}

.faq-entry__summary {
    align-items: flex-start;
    padding: 17px 19px;
}

.faq-entry__summary:focus-visible {
    outline: 2px solid var(--blue-500);
    outline-offset: -2px;
}

.faq-entry__question {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.faq-entry__cat {
    color: var(--blue-600);
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    line-height: 1.4;
    text-transform: uppercase;
}

.faq-entry__text {
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.55;
}

.faq-entry__answer {
    padding: 0 19px 19px;
}

.faq-entry__answer p {
    max-width: 74ch;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.8;
}

.faq-entry__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--blue-600);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.5;
    transition: color 0.2s var(--ease);
}

.faq-entry__link:hover {
    color: var(--blue-700);
}

.faq-entry__link .icon {
    transition: transform 0.2s var(--ease);
}

.faq-entry__link:hover .icon {
    transform: translateX(2px);
}

/* Keadaan kosong */
.faq-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: clamp(32px, 5vw, 48px) 24px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--surface);
    text-align: center;
}

.faq-empty[hidden] {
    display: none;
}

.faq-empty__icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 4px;
    border-radius: 14px;
    background: var(--blue-50);
    color: var(--blue-600);
}

.faq-empty h3 {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.faq-empty p {
    max-width: 48ch;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.faq-empty .btn {
    margin-top: 12px;
}

/* Tips pencarian pada sidebar */
.faq-tips {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.faq-tips li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

.faq-tips li .icon {
    margin-top: 2px;
    flex: 0 0 auto;
    color: var(--blue-600);
}

/* --------------------------------------------------------------------------
   4. CTA penutup
   -------------------------------------------------------------------------- */
.faq-cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    overflow: hidden;
    padding: clamp(26px, 4vw, 40px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 88% 16%, rgba(34, 211, 238, 0.2), transparent 38%),
        linear-gradient(140deg, var(--navy-800), var(--navy-950));
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.faq-cta__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.faq-cta__bg .glow--cyan {
    right: -8%;
    bottom: -300px;
    left: auto;
    opacity: 0.45;
}

.faq-cta__copy {
    position: relative;
    z-index: 1;
    max-width: 660px;
}

.faq-cta__copy h2 {
    margin-bottom: 10px;
    color: var(--white);
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.faq-cta__copy p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
    line-height: 1.7;
}

.faq-cta__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: auto;
}

/* --------------------------------------------------------------------------
   5. Responsif
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
    .faq-browser {
        grid-template-columns: minmax(0, 1fr) 285px;
    }
}

@media (max-width: 960px) {
    .faq-hero__inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .faq-hero__copy {
        max-width: 680px;
    }

    .faq-hero__panel {
        max-width: 560px;
    }

    .faq-browser {
        grid-template-columns: 1fr;
    }

    .faq-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-aside .panel:last-child {
        grid-column: 1 / -1;
    }

    .faq-cta {
        flex-wrap: wrap;
    }

    .faq-cta__actions {
        margin-left: 0;
    }
}

@media (max-width: 720px) {
    .faq-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-inline: calc(var(--gutter) * -1);
        padding: 2px var(--gutter) 10px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .faq-tabs::-webkit-scrollbar {
        display: none;
    }

    .faq-tab {
        flex: 0 0 auto;
    }

    .faq-aside {
        grid-template-columns: 1fr;
    }

    .faq-aside .panel:last-child {
        grid-column: auto;
    }

    .faq-results {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .faq-entry__summary {
        padding: 15px 16px;
    }

    .faq-entry__answer {
        padding: 0 16px 17px;
    }
}

@media (max-width: 520px) {
    .faq-hero__title {
        font-size: 2rem;
    }

    .faq-search input {
        height: 52px;
        padding-left: 45px;
        font-size: 0.9rem;
    }

    .faq-hero__meta span,
    .faq-hero__meta a {
        font-size: 0.68rem;
    }

    .faq-cta__actions {
        width: 100%;
    }

    .faq-cta__actions .btn {
        width: 100%;
    }

    .faq-empty {
        padding-inline: 18px;
    }
}
