/* ==========================================================================
   iziDizi — FAQ Components
   FAQ section, FAQ items, questions, answers.
   ========================================================================== */

/* --- FAQ Section ---------------------------------------------------------- */
.faq-section {
  background: var(--bg-primary);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  list-style: none;
  min-height: 44px;
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.07);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::marker { content: ''; }

.faq-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: var(--text-tertiary);
  transition: transform 0.2s;
  margin-left: 1rem;
  line-height: 1;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- Responsive: Mobile (max 768px) --------------------------------------- */
@media (max-width: 768px) {
  .faq-question { padding: 1rem 1.25rem; font-size: 0.875rem; }
  .faq-answer { padding: 0 1.25rem 1rem; }
}

/* --- Light Theme Overrides ------------------------------------------------ */
[data-theme="light"] .faq-item {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .faq-question:hover {
  background: rgba(0, 0, 0, 0.04);
}
