/* ═══════════════════════════════════════════════════════════════════
   AURALIS · FAQ — често задавани въпроси overlay (Wave 3.2)
   ───────────────────────────────────────────────────────────────────
   Fullscreen overlay launched from Settings. Sheet pattern parallel
   to .set-sheet но с акцент върху четивност (60+).
   ═══════════════════════════════════════════════════════════════════ */

.faq-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  animation: faqFadeIn 0.18s ease;
}

@keyframes faqFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.faq-sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  background: var(--bg, #fff);
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: faqSlideUp 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .faq-sheet {
  background: var(--surface, hsl(220 25% 8%));
}

@keyframes faqSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.08));
  flex-shrink: 0;
}

.faq-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}

.faq-close {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--text-soft, var(--text));
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-close svg { width: 22px; height: 22px; }
.faq-close:active { background: rgba(0,0,0,0.06); }

.faq-search-row {
  padding: 12px 20px;
  flex-shrink: 0;
}
.faq-search-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface-soft, rgba(0,0,0,0.04));
  border: 1px solid var(--border-color, rgba(0,0,0,0.08));
  border-radius: 12px;
  box-sizing: border-box;
}
[data-theme="dark"] .faq-search-input {
  background: rgba(255,255,255,0.04);
}
.faq-search-input:focus {
  outline: 2px solid hsl(var(--hue3, 200) 70% 55%);
  outline-offset: 2px;
}

.faq-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px 16px;
  -webkit-overflow-scrolling: touch;
}

.faq-empty {
  padding: 32px 16px;
  text-align: center;
  font-size: 15px;
  color: var(--text-faint, var(--text));
}

.faq-category {
  margin-bottom: 20px;
}

.faq-category-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft, var(--text));
  margin: 16px 0 10px;
  padding: 0 2px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--border-color, rgba(0,0,0,0.08));
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface, transparent);
}

.faq-q {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  min-height: 44px;
}
.faq-q:active { background: rgba(0,0,0,0.04); }
[data-theme="dark"] .faq-q:active { background: rgba(255,255,255,0.04); }

.faq-q-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

.faq-q-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-faint, var(--text));
  transition: transform 0.18s ease;
}
.faq-q-chevron svg { width: 100%; height: 100%; }
.faq-item.is-open .faq-q-chevron { transform: rotate(180deg); }

.faq-a {
  padding: 0 16px 14px;
  animation: faqExpand 0.18s ease;
}

@keyframes faqExpand {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.faq-a-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-soft, var(--text));
}

.faq-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border-color, rgba(0,0,0,0.08));
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-support-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-faint, var(--text));
}

.faq-support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg,
    hsl(var(--hue1, 200) 70% 55%),
    hsl(var(--hue2, 210) 65% 55%));
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.faq-support-link:active { transform: scale(0.98); }
