/* WP AI SEO & FAQ Generator Frontend Accordion Styles */
.wp-ai-faq-wrapper {
  margin: 2.5rem 0;
  font-family: inherit;
  box-sizing: border-box;
}

.wp-ai-faq-wrapper * {
  box-sizing: border-box;
}

.wp-ai-faq-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: inherit;
}

.wp-ai-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wp-ai-faq-card {
  border-radius: 0.625rem;
  overflow: hidden;
  transition: all 0.2s ease-in-out;
}

/* Modern Theme */
.wp-ai-theme-modern .wp-ai-faq-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.wp-ai-theme-modern .wp-ai-faq-card.is-active {
  border-color: #6366f1;
  box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.1);
}

/* Minimal Theme */
.wp-ai-theme-minimal .wp-ai-faq-card {
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  background: transparent;
}

/* Slate Theme */
.wp-ai-theme-slate .wp-ai-faq-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

/* Dark Theme */
.wp-ai-theme-dark .wp-ai-faq-card {
  background: #0f172a;
  border: 1px solid #334155;
  color: #f8fafc;
}

.wp-ai-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: inherit;
  line-height: 1.4;
  outline: none;
  transition: color 0.15s ease;
}

.wp-ai-faq-trigger:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: -2px;
}

.wp-ai-faq-question-text {
  flex: 1;
  padding-right: 1rem;
}

.wp-ai-faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #64748b;
}

.wp-ai-faq-card.is-active .wp-ai-faq-icon {
  transform: rotate(180deg);
  color: #6366f1;
}

.wp-ai-theme-dark .wp-ai-faq-icon {
  color: #94a3b8;
}

.wp-ai-theme-dark .wp-ai-faq-card.is-active .wp-ai-faq-icon {
  color: #818cf8;
}

.wp-ai-faq-panel {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: #475569;
  font-size: 0.975rem;
  line-height: 1.65;
}

.wp-ai-theme-dark .wp-ai-faq-panel {
  color: #cbd5e1;
}

.wp-ai-faq-answer-inner p {
  margin: 0 0 0.75rem 0;
}

.wp-ai-faq-answer-inner p:last-child {
  margin-bottom: 0;
}
