/* ═══════════════════════════════════════════════════════════
   faqs.css — FAQ PAGE-ONLY styles
   Requires: global.css (loaded via layout)
   ═══════════════════════════════════════════════════════════ */

/* Body background override for FAQ page (dark themed) */
body { background: var(--dark); }

/* ═══ FAQ HERO ═══ */
.faq-hero {
    padding: 140px 0 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 600px;
    background: radial-gradient(ellipse, rgba(174,0,255,0.06) 0%, rgba(255,8,201,0.03) 30%, transparent 70%);
    pointer-events: none;
}

.faq-hero-ey {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 14px;
}

.faq-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    line-height: 1.15;
}

.faq-hero-title em {
    font-style: normal;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-hero-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}


/* ═══ SEARCH BAR ═══ */
.faq-search {
    max-width: 540px;
    margin: 32px auto 0;
    position: relative;
}

.faq-search-icon {
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    stroke: rgba(255,255,255,0.3);
    fill: none; stroke-width: 2;
    pointer-events: none;
    transition: stroke 0.2s;
}

.faq-search input {
    width: 100%;
    padding: 16px 90px 16px 48px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--dark-surface);
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: all 0.25s;
}
.faq-search input:focus {
    border-color: var(--splidu-purple);
    box-shadow: 0 0 0 3px rgba(174,0,255,0.08);
}
.faq-search input:focus ~ .faq-search-icon { stroke: var(--splidu-purple); }
.faq-search input::placeholder { color: rgba(255,255,255,0.3); }

.faq-kbd {
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    background: var(--dark-card);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 5px;
    pointer-events: none;
}

.faq-clear-btn {
    position: absolute;
    right: 16px; top: 50%;
    transform: translateY(-50%);
    background: var(--dark-card);
    border: 1px solid var(--border);
    color: rgba(136,136,160,1);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    display: none;
}
.faq-clear-btn.show { display: block; }

.faq-search-count {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    margin-top: 10px;
    min-height: 20px;
}


/* ═══ CATEGORY FILTER PILLS ═══ */
.faq-filters {
    padding: 0 0 32px;
    border-bottom: 1px solid var(--border);
}

.faq-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.faq-pill {
    padding: 8px 18px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: rgba(136,136,160,1);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.faq-pill:hover { border-color: var(--border-h); color: #fff; }
.faq-pill.active {
    background: var(--gradient-cta);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 12px rgba(174,0,255,0.2);
}

.faq-pill-count {
    font-size: 11px;
    opacity: 0.6;
    margin-left: 4px;
}


/* ═══ FAQ CONTENT ═══ */
.faq-content { padding: 48px 0 60px; }
.faq-list { max-width: 720px; margin: 0 auto; }

/* Category label */
.faq-category { margin-bottom: 40px; }
.faq-category.hidden { display: none; }

.faq-cat-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--orange);
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

/* Accordion item */
.faq-item {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.faq-item.hidden { display: none; }
.faq-item:hover { background: rgba(255,255,255,0.01); }

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 4px;
    cursor: pointer;
    gap: 14px;
    user-select: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.faq-q-text {
    font-size: 16px;
    font-weight: 600;
    color: rgba(232,232,236,1);
    transition: color 0.2s;
    flex: 1;
}
.faq-question:hover .faq-q-text { color: #fff; }
.faq-q-text mark {
    background: rgba(174,0,255,0.2);
    color: #fff;
    border-radius: 2px;
    padding: 0 2px;
}

.faq-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--dark-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}
.faq-icon svg {
    width: 12px; height: 12px;
    stroke: rgba(136,136,160,1);
    stroke-width: 2;
    fill: none;
    transition: all 0.3s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding: 0 4px 22px;
    font-size: 15px;
    color: rgba(136,136,160,1);
    line-height: 1.85;
}

.faq-answer a {
    color: var(--splidu-purple);
    transition: opacity 0.15s;
    text-decoration: none;
}
.faq-answer a:hover { opacity: 0.8; text-decoration: underline; }

/* Open state */
.faq-item.open .faq-q-text { color: #fff; }
.faq-item.open .faq-icon {
    background: var(--gradient-cta);
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(174,0,255,0.25);
}
.faq-item.open .faq-icon svg { stroke: #fff; transform: rotate(45deg); }
.faq-item.open .faq-answer { max-height: 600px; }

/* No results */
.faq-no-results { display: none; text-align: center; padding: 60px 24px; }
.faq-no-results.show { display: block; }
.faq-no-results h3 { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.faq-no-results p { font-size: 14px; color: rgba(136,136,160,1); }
.faq-no-results a { color: var(--splidu-purple); }


/* ═══ CTA ═══ */
.faq-cta { padding: 0 0 80px; }
.faq-cta .container { max-width: 720px; }

.faq-cta-card {
    background: var(--dark-surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 52px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-cta-card::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(255,8,201,0.05), transparent 70%);
    pointer-events: none;
}

.faq-cta-card h2 { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.faq-cta-card p { font-size: 15px; color: rgba(136,136,160,1); margin-bottom: 28px; }
.faq-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }



/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    /* FAQ Hero */
    .faq-hero { padding: 110px 0 32px; }
    .faq-hero-title { font-size: 30px; }
    .faq-hero-sub { font-size: 14px; }
    .faq-search input { padding: 14px 80px 14px 44px; font-size: 14px; }

    /* FAQ Filters — horizontal scroll on mobile */
    .faq-filter-pills {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
        gap: 6px;
    }
    .faq-filter-pills::-webkit-scrollbar { display: none; }
    .faq-pill { flex-shrink: 0; font-size: 12px; padding: 6px 14px; }

    /* FAQ Content */
    .faq-q-text { font-size: 15px; }
    .faq-answer p { font-size: 14px; padding: 0 0 18px; }
    .faq-cat-label { font-size: 10px; }

    /* FAQ CTA */
    .faq-cta { padding: 0 0 60px; }
    .faq-cta-card { padding: 36px 24px; }
    .faq-cta-card h2 { font-size: 20px; }
    .faq-cta-card p { font-size: 14px; margin-bottom: 20px; }
    .faq-cta-btns { flex-direction: column; gap: 10px; }
    .faq-cta-btns .btn-primary,
    .faq-cta-btns .btn-outline { width: 100%; justify-content: center; padding: 14px 24px; font-size: 14px; }
}

@media (max-width: 480px) {
    .faq-hero-title { font-size: 26px; }
    .faq-hero { padding: 100px 0 28px; }
    .faq-search { margin: 24px auto 0; }
    .faq-search input { padding: 12px 70px 12px 40px; font-size: 13px; border-radius: 12px; }
    .faq-search-icon { left: 14px; width: 16px; height: 16px; }
    .faq-kbd { right: 12px; font-size: 10px; padding: 2px 6px; }
    .faq-cta-btns .btn-primary,
    .faq-cta-btns .btn-outline { padding: 12px 20px; font-size: 13px; }
    .faq-cta-card h2 { font-size: 18px; }
}
