/* ── FAQ PAGE LAYOUT ────────────────────────────────────────── */
.faq-main {
    padding-top: 56px;
    padding-bottom: 80px;
}

/* ── FAQ PAGE HEADER ────────────────────────────────────────── */
.faq-page-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.faq-page-header h1 { margin-bottom: 12px; }

.faq-search-wrap { margin-top: 24px; max-width: 480px; }

.faq-search {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.faq-search::placeholder { color: var(--text-muted); }
.faq-search:focus { border-color: var(--accent-sky); }

/* ── CATEGORY SECTIONS ──────────────────────────────────────── */
.faq-section {
    margin-bottom: 48px;
}

.faq-section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.faq-section-icon {
    font-size: 1.8rem;
    line-height: 1;
    padding-top: 2px;
    flex-shrink: 0;
}

.faq-section-header h2 {
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 1.3rem;
}

.faq-section-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── FAQ ACCORDION ITEMS ────────────────────────────────────── */
.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item[open] { border-color: rgba(56, 189, 248, 0.4); }

.faq-item summary {
    cursor: pointer;
    padding: 16px 20px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface);
    user-select: none;
    gap: 12px;
    transition: background-color 0.15s;
}

.faq-item summary:hover { background: rgba(30, 41, 59, 0.8); }

.faq-item[open] summary { background: rgba(56, 189, 248, 0.05); }

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

.faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--accent-sky);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item[open] summary::after { content: '−'; }

.faq-answer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-base);
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 12px;
}

.faq-answer p:last-child { margin-bottom: 0; }

/* ── INLINE ELEMENTS INSIDE ANSWERS ────────────────────────── */
.faq-list {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-list li {
    font-size: 0.875rem;
    color: var(--text-muted);
    padding-left: 16px;
    position: relative;
}

.faq-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-sky);
    font-weight: 700;
}

.faq-code-block {
    background: var(--bg-terminal);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 14px 16px;
    margin: 12px 0;
    overflow-x: auto;
}

.faq-code-block pre {
    font-family: 'Fira Code', Consolas, Monaco, monospace;
    font-size: 0.82rem;
    color: var(--accent-sky);
    margin: 0;
    white-space: pre;
}

.faq-link {
    color: var(--accent-sky);
    text-decoration: none;
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    transition: border-color 0.2s;
}

.faq-link:hover { border-color: var(--accent-sky); }

/* ── BOTTOM CTA ─────────────────────────────────────────────── */
.faq-cta {
    margin-top: 60px;
    margin-bottom: 40px;
}

.faq-cta-inner {
    text-align: center;
    padding: 48px 24px;
    background: linear-gradient(135deg, rgba(56,189,248,0.05) 0%, rgba(16,185,129,0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.faq-cta-icon { font-size: 2rem; margin-bottom: 12px; }

.faq-cta-inner h2 { margin-top: 0; margin-bottom: 8px; font-size: 1.6rem; }

.faq-cta-inner p { color: var(--text-muted); margin-bottom: 24px; font-size: 0.95rem; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .faq-section-header { gap: 10px; }
    .faq-section-icon { font-size: 1.4rem; }
    .faq-item summary { padding: 14px 16px; font-size: 0.9rem; }
    .faq-answer { padding: 16px; }
    .faq-search-wrap { max-width: 100%; }
    .faq-cta-inner { padding: 32px 16px; }
}
