/* ============================================================
   WP FAQ Block — Frontend Styles
   ============================================================ */

/* CSS custom properties — override in your theme if needed */
:root {
    --wpfaq-bg:           #121620;
    --wpfaq-border:       rgba(255,255,255,0.08);
    --wpfaq-radius:       12px;
    --wpfaq-brand:         #E8B84B;
    --wpfaq-brand-light:   #F0CE6A;
    --wpfaq-text-heading: #f0f0f0;
    --wpfaq-text-q:       #e8e8e8;
    --wpfaq-text-a:       #b0b8c8;
    --wpfaq-font:         'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Wrapper */
.wpfaq-wrap {
    margin: 32px 0;
    font-family: var(--wpfaq-font);
}

/* Section heading — bold white text + short brand underline bar */
.wpfaq-heading {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--wpfaq-text-heading);
    margin-bottom: 20px;
    padding-bottom: 0;
    display: block;
    position: relative;
}
.wpfaq-heading::after {
    content: '';
    display: block;
    margin-top: 8px;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #E8B84B, #F0CE6A 60%, transparent);
    border-radius: 2px;
}

/* Accordion list */
.wpfaq-list {
    background: var(--wpfaq-bg);
    border: 1px solid var(--wpfaq-border);
    border-radius: var(--wpfaq-radius);
    overflow: hidden;
}

/* Single item */
.wpfaq-item {
    border-bottom: 1px solid var(--wpfaq-border);
}
.wpfaq-item:last-child {
    border-bottom: none;
}

/* Question button */
.wpfaq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
    border: none;
    padding: 16px 20px;
    cursor: pointer;
    text-align: left;
    color: var(--wpfaq-text-q);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--wpfaq-font);
    line-height: 1.5;
    transition: background 0.15s;
}
.wpfaq-q:hover {
    background: rgba(255, 255, 255, 0.03);
}
.wpfaq-q[aria-expanded="true"] {
    color: var(--wpfaq-brand-light);
}

/* Chevron arrow */
.wpfaq-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: rgba(255,255,255,0.35);
    transition: transform 0.2s ease, color 0.15s;
}
.wpfaq-q[aria-expanded="true"] .wpfaq-arrow {
    transform: rotate(180deg);
    color: var(--wpfaq-brand);
}

/* Answer panel */
.wpfaq-a {
    overflow: hidden;
}
.wpfaq-a[hidden] {
    display: none;
}

/* Answer inner */
.wpfaq-a-inner {
    padding: 2px 20px 18px;
    font-size: 14px;
    color: var(--wpfaq-text-a);
    line-height: 1.8;
}
.wpfaq-a-inner p {
    margin: 0 0 10px;
}
.wpfaq-a-inner p:last-child {
    margin-bottom: 0;
}
.wpfaq-a-inner a {
    color: var(--wpfaq-brand-light);
    text-decoration: underline;
}
.wpfaq-a-inner ul,
.wpfaq-a-inner ol {
    padding-left: 20px;
    margin: 8px 0;
}

/* ============================================================
   Light theme override
   Add class="wpfaq-light" to .wpfaq-wrap or override :root vars
   ============================================================ */
.wpfaq-light {
    --wpfaq-bg:         #ffffff;
    --wpfaq-border:     rgba(0,0,0,0.10);
    --wpfaq-text-q:     #1a1a2e;
    --wpfaq-text-a:     #444;
    --wpfaq-text-heading: #1a1a2e;
}

/* ============================================================
   Responsive
   ============================================================ */
@media ( max-width: 600px ) {
    .wpfaq-q {
        padding: 14px 14px;
        font-size: 13px;
    }
    .wpfaq-a-inner {
        padding: 2px 14px 16px;
        font-size: 13px;
    }
    .wpfaq-heading {
        font-size: 1.15em;
    }
}
