/* AI SEO Engine - Premium FAQ Styles */

/* Container */
.ai-faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.ai-faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #d1d5db;
}

.ai-faq-item[open] {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: #3b82f6; /* Accent color */
}

/* Summary (Question) */
.ai-faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  transition: background-color 0.2s;
}

/* Remove default marker */
.ai-faq-item summary::-webkit-details-marker {
  display: none;
}

/* Question Heading Reset */
.ai-faq-item summary h3 {
  margin: 0 !important;
  padding: 0;
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  display: inline-block;
}

/* Custom Plus/Minus Icon */
.ai-faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: #9ca3af;
  transition:
    transform 0.2s,
    color 0.2s;
  margin-left: 12px;
  flex-shrink: 0;
}

.ai-faq-item[open] summary::after {
  transform: rotate(45deg);
  color: #3b82f6;
}

.ai-faq-item[open] summary {
  border-bottom: 1px solid #f3f4f6;
  background-color: #f9fafb;
}

/* Answer Content */
.ai-faq-answer {
  padding: 20px;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
  background-color: #fff;
  animation: aiseo-fade-in 0.3s ease-out;
}

.ai-faq-answer p:last-child {
  margin-bottom: 0;
}

@keyframes aiseo-fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .ai-faq-item {
    background: #1f2937;
    border-color: #374151;
    box-shadow: none;
  }

  .ai-faq-item summary {
    background-color: #1f2937;
  }

  .ai-faq-item summary h3 {
    color: #f3f4f6;
  }

  .ai-faq-item[open] summary {
    background-color: #374151; /* Lighter dark */
    border-bottom-color: #4b5563;
  }

  .ai-faq-answer {
    background-color: #1f2937;
    color: #d1d5db;
  }

  .ai-faq-item:hover {
    border-color: #4b5563;
  }

  .ai-faq-item[open] {
    border-color: #60a5fa;
  }

  .ai-faq-item[open] summary::after {
    color: #60a5fa;
  }
}
