/* =========================================================
   Vibrafy — FAQ Page Styles
   ========================================================= */

.faq-body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(rgba(168, 85, 247, 0.16) 1.2px, transparent 1.2px),
        radial-gradient(rgba(6, 182, 212, 0.1) 1.2px, transparent 1.2px);
    background-size: 32px 32px, 64px 64px;
    background-position: 0 0, 16px 16px;
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* ─── Hero Section ────────────────────────────────────────── */
.faq-hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 7.5rem 1.5rem 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.faq-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #ede9fe;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.faq-hero-dot {
    width: 6px;
    height: 6px;
    background: #06b6d4;
    border-radius: 50%;
    box-shadow: 0 0 8px #06b6d4;
}

.faq-hero-title {
    font-size: clamp(2.2rem, 4.8vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1rem;
}

.faq-hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 2rem auto;
}

/* ─── Search Box ──────────────────────────────────────────── */
.faq-search-box {
    position: relative;
    max-width: 620px;
    margin: 0 auto 1.8rem auto;
}

.faq-search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.faq-search-input {
    width: 100%;
    background: rgba(19, 18, 43, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 0.95rem 3rem 0.95rem 3rem;
    color: #ffffff;
    font-size: 0.98rem;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.faq-search-input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
}

.faq-search-clear {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ede9fe;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.faq-search-clear:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ─── Category Filter Pills ───────────────────────────────── */
.faq-category-pills {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 820px;
    margin: 0 auto;
}

.category-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ede9fe;
}

.category-pill.active {
    background: var(--gradient-host);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.4);
}

/* ─── Accordion & Groups ──────────────────────────────────── */
.faq-main-container {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem 6rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.faq-category-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-category-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.faq-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(168, 85, 247, 0.35);
}

.faq-item[open] {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.faq-question {
    padding: 1.2rem 1.5rem;
    font-size: 1.02rem;
    font-weight: 800;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    user-select: none;
    list-style: none;
}

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

.faq-chevron {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: #06b6d4;
}

.faq-answer {
    padding: 0 1.5rem 1.4rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.65;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 1rem;
}

.faq-answer p {
    margin: 0;
}

.faq-answer strong {
    color: #ede9fe;
}

.faq-answer code {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.88em;
    color: #06b6d4;
}

/* ─── No Results Message ──────────────────────────────────── */
.faq-no-results {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.no-results-icon {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
}

.faq-no-results h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.faq-no-results p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ─── Responsive Media Queries ────────────────────────────── */
@media (max-width: 600px) {
    .faq-hero {
        padding-top: 6rem;
    }

    .faq-question {
        padding: 1rem 1.2rem;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 1.2rem 1.2rem 1.2rem;
    }
}
