/* ==========================================================================
   FAQ + Help components
   Scoped to .faq-* / .help-* — safe to load site-wide
   Dark mode: relies on --bg-card / --text-body / --border-color from base.html
   ========================================================================== */

/* ---------- Search box ---------- */
.faq-search-wrap {
    position: relative;
    max-width: 480px;
    margin: 0 auto 28px;
}

.faq-search-wrap input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-body);
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.faq-search-wrap input:focus {
    outline: none;
    border-color: #e6b800;
    box-shadow: 0 0 0 3px rgba(255, 211, 51, 0.20);
}

.faq-search-wrap i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a8f98;
    pointer-events: none;
}

/* ---------- Category pills ---------- */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
}

.faq-cat-btn {
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-body);
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
}

.faq-cat-btn:hover {
    border-color: #e6b800;
}

.faq-cat-btn.active {
    background-color: #ffd333;
    border-color: #ffd333;
    color: #212529;
}

/* ---------- Accordion (native <details>, CSS-only animation) ---------- */
.faq-group {
    margin-bottom: 36px;
}

.faq-group-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8a8f98;
    margin-bottom: 10px;
    padding-left: 2px;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 4px;
    font-weight: 600;
    font-size: 15.5px;
    color: var(--text-body);
    -webkit-tap-highlight-color: transparent;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    content: "";
}

.faq-item .faq-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: rgba(255, 211, 51, 0.16);
    color: #e6b800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: transform .25s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s ease;
}

.faq-item[open] .faq-answer-wrap {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
}

.faq-answer-inner p {
    padding: 0 4px 18px;
    margin: 0;
    color: var(--text-body);
    opacity: .8;
    font-size: 14.5px;
    line-height: 1.65;
}

.faq-item.faq-hidden {
    display: none;
}

.faq-empty-state {
    text-align: center;
    padding: 40px 0;
    color: #8a8f98;
    display: none;
}

.faq-empty-state.show {
    display: block;
}

/* ---------- Help cards ---------- */
.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 8px;
}

.help-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-body);
    transition: all .2s ease;
    display: block;
}

.help-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    border-color: #e6b800;
    color: var(--text-body);
    text-decoration: none;
}

.help-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd333, #e6b800);
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 14px;
}

.help-card h6 {
    font-weight: 700;
    margin-bottom: 6px;
}

.help-card p {
    font-size: 13px;
    color: #8a8f98;
    margin: 0;
}

@media (max-width: 575.98px) {
    .faq-item summary {
        font-size: 14.5px;
    }

    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}