/**
 * AIO Optimizer Accordion Styles
 * Scoped to avoid conflicts with theme styles
 */

.aio-faq-accordion {
  margin: 30px 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.aio-faq-accordion .aio-faq-heading {
  margin: 0 0 0 0;
  padding: 20px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 18px;
  font-weight: 600;
}

.aio-faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.aio-faq-item:last-child {
  border-bottom: none;
}

.aio-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  transition: background-color 0.2s;
}

.aio-faq-question:hover {
  background: #f3f4f6;
}

.aio-faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: #9ca3af;
  transition: transform 0.2s;
}

.aio-faq-item.is-open .aio-faq-question::after {
  content: '−';
}

.aio-faq-answer {
  display: none;
  padding: 0 20px 16px;
  color: #6b7280;
  line-height: 1.7;
}

.aio-faq-item.is-open .aio-faq-answer {
  display: block;
}

/* Summary Box */
.aio-summary-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid #0ea5e9;
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
}

.aio-summary-box .aio-summary-heading {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
  color: #0369a1;
}

.aio-summary-box .aio-summary-text {
  margin: 0;
  color: #0c4a6e;
  line-height: 1.7;
}