/* ==========================================================================
   CS Skins FAQ — Accordion Styles
   Shortcode: [cs_faq]
   ========================================================================== */

:root {
    --faq-bg:            #25293a;
    --faq-surface:       #13161f;
    --faq-surface-hover: #181c28;
    --faq-border:        rgba(255, 255, 255, 0.07);
    --faq-border-active: rgba(138, 92, 246, 0.5);
    --faq-accent:        #8a5cf6;
    --faq-accent-glow:   rgba(138, 92, 246, 0.25);
    --faq-accent-2:      #06b6d4;
    --faq-text-primary:  #f1f5f9;
    --faq-text-muted:    #94a3b8;
    --faq-radius:        14px;
    --faq-transition:    0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Wrapper ── */
.cs-faq {
    background: var(--faq-bg);
    padding: 72px 20px 80px;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.cs-faq__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.cs-faq__gem {
    display: block;
    font-size: 2.8rem;
    margin-bottom: 14px;
    filter: drop-shadow(0 0 14px rgba(138, 92, 246, 0.6));
    animation: cs-faq-float 3.5s ease-in-out infinite;
}

@keyframes cs-faq-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.cs-faq__title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--faq-text-primary);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #f1f5f9 30%, #8a5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cs-faq__subtitle {
    font-size: 1rem;
    color: var(--faq-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ── Body ── */
.cs-faq__body {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* ── Section ── */
.cs-faq__section {}

.cs-faq__section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--faq-border);
}

.cs-faq__section-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.cs-faq__section-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--faq-accent);
    margin: 0;
}

/* ── Items ── */
.cs-faq__items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Single Item ── */
.cs-faq__item {
    background: var(--faq-surface);
    border: 1px solid var(--faq-border);
    border-radius: var(--faq-radius);
    overflow: hidden;
    transition: border-color var(--faq-transition), box-shadow var(--faq-transition);
}

.cs-faq__item:hover {
    border-color: rgba(138, 92, 246, 0.3);
}

.cs-faq__item.is-open {
    border-color: var(--faq-border-active);
    box-shadow: 0 0 0 1px var(--faq-border-active),
                0 8px 32px rgba(138, 92, 246, 0.12);
}

/* ── Question button ── */
.cs-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--faq-text-primary);
    transition: background var(--faq-transition), color var(--faq-transition);
}

.cs-faq__question:hover,
.cs-faq__item.is-open .cs-faq__question {
    background: var(--faq-surface-hover);
}

.cs-faq__question-text {
    font-size: 0.975rem;
    font-weight: 500;
    line-height: 1.5;
    flex: 1;
}

.cs-faq__item.is-open .cs-faq__question-text {
    color: var(--faq-text-primary);
}

/* ── Chevron ── */
.cs-faq__chevron {
    flex-shrink: 0;
    color: var(--faq-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    transition: transform var(--faq-transition), color var(--faq-transition), background var(--faq-transition);
}

.cs-faq__item.is-open .cs-faq__chevron {
    transform: rotate(180deg);
    color: var(--faq-accent);
    background: var(--faq-accent-glow);
}

/* ── Answer (accordion panel) ── */
.cs-faq__answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs-faq__answer[hidden] {
    display: block !important; /* override hidden so CSS transition works */
    max-height: 0;
    visibility: hidden;
}

.cs-faq__answer.is-open {
    max-height: 600px;
    visibility: visible;
}

.cs-faq__answer-inner {
    padding: 0 22px 20px;
    font-size: 0.925rem;
    line-height: 1.72;
    color: var(--faq-text-muted);
    border-top: 1px solid var(--faq-border);
    padding-top: 16px;
}

/* ── Footer CTA ── */
.cs-faq__footer {
    max-width: 820px;
    margin: 48px auto 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(138, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.08) 100%);
    border: 1px solid rgba(138, 92, 246, 0.25);
    border-radius: 18px;
    padding: 36px 28px;
}

.cs-faq__footer-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 12px;
}

.cs-faq__footer-text {
    font-size: 0.95rem;
    color: var(--faq-text-muted);
    line-height: 1.65;
    margin: 0 0 22px;
}

.cs-faq__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #8a5cf6, #06b6d4);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 40px;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(138, 92, 246, 0.35);
}

.cs-faq__cta:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(138, 92, 246, 0.5);
    color: #fff;
    text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .cs-faq {
        padding: 48px 14px 60px;
    }

    .cs-faq__question {
        padding: 16px 16px;
    }

    .cs-faq__answer-inner {
        padding: 14px 16px 18px;
    }
}
