/**
 * FAQ Component Styles
 * Features: Premium accordion feel, Dark Mode compatible, Smooth transitions
 */

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px dashed var(--border-main);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-heading);
  line-height: 1.4;
}

.faq-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: all 0.3s ease;
  font-size: 1rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(var(--color-primary-rgb, 37, 99, 235), 0.02);
}

.faq-body {
  padding: 0 1.5rem 1.5rem;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* Active State */
.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.faq-item.active .faq-content {
  max-height: 500px; /* Large enough for most content */
}

/* Dark Mode Overrides (if needed beyond variables) */
body.dark-mode .faq-content {
  background: rgba(255, 255, 255, 0.02);
}
