/* FAQ Pro v1.0.9 — Front-end styles
   HOVER BUG FIX: All hover/focus/active selectors are scoped to
   .faqp-item > .faqp-question — never to .faqp-item itself —
   so hovering item 3 does NOT change background of item 2.
*/

/* ── Base wrap ─────────────────────────────────────────────────── */
.faqp-wrap {
    max-width: 800px;
    margin: 0 auto;
}
.faqp-header { margin-bottom: 1.5rem; }
.faqp-title  { font-size: 1.75rem; font-weight: 700; margin: 0; color: inherit; }

/* ── Item + button base (all styles) ──────────────────────────── */
.faqp-item {
    border-radius: 8px;
    overflow: hidden;
    /* NO background/border here — set per style below */
}
/* CRITICAL: button is the hover target, NOT the item */
.faqp-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;   /* inherit from item, overridden per style */
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    gap: 0.75rem;
    transition: background 0.2s;
}
.faqp-q-text { flex: 1; }

/* Chevron icon */
.faqp-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    position: relative;
    transition: transform 0.25s ease;
}
.faqp-icon::before,
.faqp-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 9px;
    height: 2px;
    border-radius: 1px;
    transition: background 0.2s;
}
.faqp-icon::before { left: 2px;  transform: translateY(-50%) rotate(45deg);  }
.faqp-icon::after  { right: 2px; transform: translateY(-50%) rotate(-45deg); }
.faqp-item.faqp-open > .faqp-question .faqp-icon {
    transform: rotate(180deg);
}

/* Answer panel */
.faqp-answer[hidden] { display: none; }
.faqp-answer-inner {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   STYLE: cards  (default — dark, site palette)
   ═══════════════════════════════════════════════════════════════ */
.faqp-style-cards .faqp-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(139,92,246,.2);
    margin-bottom: 0.75rem;
    /* NO transition on background here — only button transitions */
}
.faqp-style-cards .faqp-question {
    color: #e9d5ff;
    background: transparent;   /* button bg starts transparent */
}
/* HOVER: only the button background changes, item stays same */
.faqp-style-cards .faqp-question:hover,
.faqp-style-cards .faqp-question:focus-visible {
    background: rgba(139,92,246,.12);
    outline: none;
}
.faqp-style-cards .faqp-icon::before,
.faqp-style-cards .faqp-icon::after { background: #a78bfa; }
/* Open state: border changes on the item (not triggered by hover) */
.faqp-style-cards .faqp-item.faqp-open {
    border-color: rgba(139,92,246,.5);
    background: rgba(139,92,246,.07);
}
.faqp-style-cards .faqp-answer-inner { color: rgba(233,213,255,.75); }

/* ═══════════════════════════════════════════════════════════════
   STYLE: classic  (light / white)
   ═══════════════════════════════════════════════════════════════ */
.faqp-style-classic .faqp-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.faqp-style-classic .faqp-question {
    color: #111827;
    background: transparent;
}
.faqp-style-classic .faqp-question:hover,
.faqp-style-classic .faqp-question:focus-visible {
    background: #f5f3ff;
    outline: none;
}
.faqp-style-classic .faqp-icon::before,
.faqp-style-classic .faqp-icon::after { background: #6b7280; }
.faqp-style-classic .faqp-item.faqp-open { border-color: #8b5cf6; }
.faqp-style-classic .faqp-answer-inner  { color: #374151; }

/* ═══════════════════════════════════════════════════════════════
   STYLE: minimal  (hairline dividers)
   ═══════════════════════════════════════════════════════════════ */
.faqp-style-minimal .faqp-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
    border-radius: 0;
    margin-bottom: 0;
}
.faqp-style-minimal .faqp-question {
    color: #e9d5ff;
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}
.faqp-style-minimal .faqp-question:hover,
.faqp-style-minimal .faqp-question:focus-visible {
    /* minimal style: no BG change, just text brightens */
    color: #fff;
    outline: none;
}
.faqp-style-minimal .faqp-icon::before,
.faqp-style-minimal .faqp-icon::after { background: #a78bfa; }
.faqp-style-minimal .faqp-answer-inner { color: rgba(233,213,255,.7); padding-left: 0; }

/* ═══════════════════════════════════════════════════════════════
   STYLE: bordered  (left accent on open)
   ═══════════════════════════════════════════════════════════════ */
.faqp-style-bordered .faqp-item {
    background: transparent;
    border: 1px solid rgba(139,92,246,.2);
    margin-bottom: 0.5rem;
    /* border-left width change on open — transitions cleanly */
    transition: border-left-width 0.15s, border-color 0.2s;
}
.faqp-style-bordered .faqp-question {
    color: #e9d5ff;
    background: transparent;
}
.faqp-style-bordered .faqp-question:hover,
.faqp-style-bordered .faqp-question:focus-visible {
    background: rgba(139,92,246,.08);
    outline: none;
}
.faqp-style-bordered .faqp-icon::before,
.faqp-style-bordered .faqp-icon::after { background: #8b5cf6; }
.faqp-style-bordered .faqp-item.faqp-open {
    border-left: 3px solid #8b5cf6;
}
.faqp-style-bordered .faqp-answer-inner { color: rgba(233,213,255,.75); }

/* ═══════════════════════════════════════════════════════════════
   STYLE: glass  (frosted blur)
   ═══════════════════════════════════════════════════════════════ */
.faqp-style-glass .faqp-item {
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.1);
    margin-bottom: 0.75rem;
}
.faqp-style-glass .faqp-question {
    color: #f5f3ff;
    background: transparent;
}
.faqp-style-glass .faqp-question:hover,
.faqp-style-glass .faqp-question:focus-visible {
    background: rgba(255,255,255,.06);
    outline: none;
}
.faqp-style-glass .faqp-icon::before,
.faqp-style-glass .faqp-icon::after { background: #c4b5fd; }
.faqp-style-glass .faqp-item.faqp-open {
    background: rgba(139,92,246,.12);
    border-color: rgba(139,92,246,.4);
}
.faqp-style-glass .faqp-answer-inner { color: rgba(245,243,255,.75); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .faqp-question   { padding: 0.875rem 1rem; font-size: 0.95rem; }
    .faqp-answer-inner { padding: 0 1rem 1rem; }
}
