/* seo-extended.css — Styles for comparison, guide, and extended SEO page types */

/* ── FAQ accordion ──────────────────────────────────────────────────────────── */
.faq-section { margin-top: 2rem; }
.faq-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #fff;
}
.faq-item[open] { border-color: #4f46e5; }
.faq-q {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::before {
  content: '+';
  font-size: 1.1rem;
  font-weight: 700;
  color: #4f46e5;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] .faq-q::before { content: '−'; }
.faq-a { padding: 0 16px 14px; }
.faq-a p { margin: 0; font-size: 0.9rem; color: #4b5563; line-height: 1.6; }

/* ── Comparison table ───────────────────────────────────────────────────────── */
.comp-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 480px;
}
.comp-table thead tr { background: #4f46e5; color: #fff; }
.comp-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
}
.comp-table tbody tr:nth-child(even) { background: #f9fafb; }
.comp-table tbody tr:hover { background: #eff6ff; }
.comp-table td {
  padding: 11px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  vertical-align: top;
}
.comp-table td.comp-aspect { font-weight: 600; color: #1f2937; width: 32%; }
.comp-a-head, .comp-table td.comp-a { color: #1d4ed8; }
.comp-b-head, .comp-table td.comp-b { color: #7c3aed; }

/* ── Comparison CTA row ─────────────────────────────────────────────────────── */
.comp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.5rem 0;
}
.comp-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  background: #4f46e5;
  color: #fff;
  transition: background 0.15s, transform 0.1s;
}
.comp-cta-btn:hover { background: #4338ca; transform: translateY(-1px); }
.comp-cta-btn--b { background: #7c3aed; }
.comp-cta-btn--b:hover { background: #6d28d9; }

/* ── Guide steps ────────────────────────────────────────────────────────────── */
.guide-intro { font-size: 1rem; color: #4b5563; line-height: 1.7; margin-bottom: 1.5rem; }
.guide-steps { display: flex; flex-direction: column; gap: 16px; margin: 1.5rem 0; }
.guide-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.guide-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #4f46e5;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.guide-step-body strong { display: block; font-size: 0.95rem; color: #1f2937; margin-bottom: 4px; }
.guide-step-body p { margin: 0; font-size: 0.9rem; color: #4b5563; line-height: 1.6; }

/* ── Guide tips ─────────────────────────────────────────────────────────────── */
.guide-tips {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guide-tips li {
  padding: 10px 14px;
  background: #eff6ff;
  border-left: 3px solid #4f46e5;
  border-radius: 0 6px 6px 0;
  font-size: 0.9rem;
  color: #1f2937;
}
.guide-tips li::before { content: '💡 '; }

/* ── Guide CTA button ───────────────────────────────────────────────────────── */
.guide-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  background: #E5322E;
  color: #fff;
  margin: 1.25rem 0;
  transition: background 0.15s, transform 0.1s;
}
.guide-cta-btn:hover { background: #c0201c; transform: translateY(-1px); }

/* ── Dark mode overrides ────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .faq-item { background: #1f2937; border-color: #374151; }
  .faq-item[open] { border-color: #6366f1; }
  .faq-a p { color: #d1d5db; }
  .comp-table-wrap { border-color: #374151; }
  .comp-table tbody tr:nth-child(even) { background: #1f2937; }
  .comp-table tbody tr:hover { background: #1e3a5f; }
  .comp-table td { border-color: #374151; color: #d1d5db; }
  .comp-table td.comp-aspect { color: #f9fafb; }
  .guide-step { background: #1f2937; border-color: #374151; }
  .guide-step-body p { color: #d1d5db; }
  .guide-tips li { background: #1e3a5f; }
}

/* ── Lite mode — disable transitions ────────────────────────────────────────── */
body.iplv-lite .faq-q::before,
body.iplv-lite .comp-cta-btn,
body.iplv-lite .guide-cta-btn { transition: none; }

/* ── Mobile ─────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .comp-cta-row { flex-direction: column; }
  .comp-cta-btn { width: 100%; justify-content: center; }
  .guide-step { flex-direction: column; gap: 10px; }
  .guide-step-num { width: 28px; height: 28px; }
}
