/* FAQ — kartu kotak ala blok Minecraft (border tipis + dasar tebal), aksen kuning Texureon.
   Judul: font Texureon. Tombol/label kecil: font Minecraft. Teks bacaan: Arial. */

.faq {
    width: min(100% - 32px, 1100px);
    margin-inline: auto;
    padding: 40px 0 88px;
}

.faq *,
.faq *::before,
.faq *::after { min-width: 0; }

.faq-hero { padding-bottom: 32px; }

.faq-title {
    font-family: "Texureon", Arial, sans-serif;
    font-size: clamp(32px, 9vw, 64px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 1px;
    color: #fff;
}

.faq-lead {
    max-width: 560px;
    margin-top: 14px;
    color: var(--muted-color);
    font-size: 16px;
    line-height: 1.7;
}

/* ---------- grid: HP = tumpukan, desktop = samping + daftar ---------- */
.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

.faq-side { display: contents; }
.faq-intro { order: 1; }
.faq-main { order: 2; }
.faq-creator { order: 3; }

/* ---------- kartu ---------- */
.faq-card,
.faq-item,
.faq-end {
    border: 2px solid var(--line);
    border-radius: 2px;
    background: var(--surface);
    box-shadow: 0 3px 0 #050505;
}

.faq-card,
.faq-end { padding: 22px; }

.faq-card-title {
    font-family: "Texureon", Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: .5px;
    color: #fff;
}

.faq-card p,
.faq-end p {
    margin-top: 10px;
    color: rgba(255, 255, 255, .72);
    font-size: 15.5px;
    line-height: 1.7;
}

.faq-card .minecraft-btn,
.faq-end .minecraft-btn { margin-top: 18px; }

/* kartu kreator: blok kuning penuh, tombol gelap */
.faq-creator {
    border-color: #191919;
    background: var(--yellow);
    box-shadow: 0 3px 0 #191919;
}

.faq-creator .faq-card-title { color: #171717; }
.faq-creator p { color: rgba(23, 23, 23, .82); }

.faq-creator .minecraft-btn {
    border-color: #171717;
    background: #171717;
    color: var(--yellow);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), 0 3px 0 rgba(0, 0, 0, .4);
}

/* ---------- cari + filter topik ---------- */
.faq-search {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 2px solid var(--line);
    border-radius: 2px;
    background: var(--surface-2);
    color: #fff;
    font-size: 16px;
}

.faq-search::placeholder { color: var(--muted-color); }

.faq-search:focus-visible,
.faq-chip:focus-visible,
.faq-q:focus-visible {
    outline: 2px solid var(--yellow);
    outline-offset: 2px;
}

.faq-chips {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.faq-chip {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 14px;
    border: 2px solid var(--line);
    border-radius: 2px;
    background: transparent;
    color: var(--muted-color);
    font-family: "Minecraft", Arial, sans-serif;
    font-size: 13px;
    letter-spacing: .5px;
    transition: color .16s ease, border-color .16s ease;
}

.faq-chip:hover { color: #fff; border-color: rgba(255, 201, 51, .5); }

.faq-chip[aria-pressed="true"] {
    border-color: #191919;
    background: var(--yellow);
    color: #171717;
}

/* ---------- daftar pertanyaan ---------- */
.faq-group { margin-top: 28px; }

.faq-group-title {
    margin-bottom: 12px;
    font-family: "Texureon", Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: .5px;
    color: #fff;
}

.faq-item + .faq-item { margin-top: 12px; }

.faq-item:hover { border-color: rgba(255, 201, 51, .5); }
.faq-item[open] { border-color: var(--yellow); }

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 60px;
    padding: 14px 16px 14px 18px;
    cursor: pointer;
    list-style: none;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q-text {
    flex: 1 1 auto;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

/* tombol +/− = blok kuning mini, sama dengan .minecraft-btn */
.faq-mark {
    position: relative;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border: 2px solid #191919;
    border-radius: 2px;
    background: var(--yellow);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .34), inset 0 -2px 0 rgba(0, 0, 0, .16), 0 2px 0 #191919;
}

.faq-mark::before,
.faq-mark::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: #171717;
    transform: translate(-50%, -50%);
    transition: transform .18s ease;
}

.faq-mark::before { width: 10px; height: 4px; }
.faq-mark::after { width: 4px; height: 10px; }
.faq-item[open] .faq-mark::after { transform: translate(-50%, -50%) scaleY(0); }

.faq-a {
    max-width: 62ch;
    margin: 0;
    padding: 0 18px 20px;
    color: rgba(255, 255, 255, .74);
    font-size: 15.5px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.faq-item[open] .faq-a { animation: faq-in .18s ease; }

@keyframes faq-in {
    from { opacity: 0; transform: translateY(-4px); }
}

.faq-empty {
    margin-top: 28px;
    padding: 28px 16px;
    border: 2px dashed var(--line);
    color: var(--muted-color);
    text-align: center;
}

.faq-end { margin-top: 36px; }

@media (min-width: 900px) {
    .faq { padding-top: 72px; }
    .faq-hero { padding-bottom: 40px; }
    .faq-grid { grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }
    .faq-side {
        display: flex;
        flex-direction: column;
        gap: 20px;
        position: sticky;
        top: calc(var(--navbar-height) + 24px);
    }
    .faq-intro,
    .faq-main,
    .faq-creator { order: 0; }
    .faq-chips { flex-wrap: wrap; overflow: visible; }
    .faq-q-text { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    .faq *, .faq *::before, .faq *::after { animation: none !important; transition: none !important; }
}

.minecraft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 22px;
    border: 2px solid #191919;
    border-radius: 2px;
    background: var(--yellow);
    color: #171717;
    font-family: "Minecraft", Arial, sans-serif;
    font-size: 13px;
    letter-spacing: .7px;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: none;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .34),
        inset 0 -3px 0 rgba(0, 0, 0, .16),
        0 3px 0 #191919;
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.minecraft-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .38),
        inset 0 -3px 0 rgba(0, 0, 0, .16),
        0 5px 0 #191919;
}

.minecraft-btn:active {
    transform: translateY(2px);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .25),
        inset 0 -2px 0 rgba(0, 0, 0, .18),
        0 1px 0 #191919;
}
