/* AI Chat Exporter — SEO Pages Shared Styles */
/* Matches existing site dark theme (Outfit font, #0b111e base) */

:root {
  --bg-base: #0b111e;
  --bg-surface: rgba(19, 30, 49, 0.6);
  --bg-surface-hover: rgba(30, 48, 77, 0.8);
  --bg-code: rgba(15, 23, 42, 0.8);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --color-primary: #3b82f6;
  --color-primary-glow: rgba(59, 130, 246, 0.15);
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-accent: #8b5cf6;
  --border-color: rgba(148, 163, 184, 0.08);
  --border-hover: rgba(148, 163, 184, 0.2);
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  --max-width: 860px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 60vh;
  background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, rgba(11,17,30,0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* ── Header ── */
header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-img { width: 32px; height: 32px; border-radius: 8px; }

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links { display: flex; gap: 10px; align-items: center; }

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.04);
}

/* ── Breadcrumb ── */
.breadcrumb {
  max-width: var(--max-width);
  margin: 24px auto 0;
  padding: 0 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb span { margin: 0 6px; }

/* ── Main Content ── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ── Hero ── */
.hero { margin-bottom: 48px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(59,130,246,0.1);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(59,130,246,0.15);
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(to right, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.6;
}

/* ── CTA Buttons ── */
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cta-group.compact {
  margin-top: 1rem;
}

.md-preview {
  margin: 0;
  overflow-x: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--border-color);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(59,130,246,0.05));
  border-color: rgba(59,130,246,0.3);
  color: #8ab4f8;
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(59,130,246,0.1));
  border-color: rgba(59,130,246,0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59,130,246,0.15);
}

.btn-secondary {
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* ── Section headings ── */
h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 48px 0 20px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--text-primary);
}

p { margin-bottom: 16px; color: var(--text-secondary); font-size: 1.02rem; }

.content-section { margin-bottom: 8px; }

ul, ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--text-secondary);
}

li { margin-bottom: 8px; }
li strong { color: var(--text-primary); }

/* ── Feature Cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 14px;
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.feature-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

/* ── Tables ── */
.table-wrapper {
  overflow-x: auto;
  margin: 20px 0 32px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

thead {
  background: rgba(59,130,246,0.08);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

td {
  padding: 10px 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Steps / Workflow ── */
.steps {
  counter-reset: step;
  margin: 24px 0 32px;
}

.step {
  counter-increment: step;
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(59,130,246,0.15);
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ── Callout / Info Box ── */
.callout {
  padding: 20px 24px;
  border-radius: 12px;
  margin: 24px 0;
  border-left: 4px solid;
}

.callout-info {
  background: rgba(59,130,246,0.06);
  border-color: var(--color-primary);
}

.callout-success {
  background: rgba(16,185,129,0.06);
  border-color: var(--color-success);
}

.callout-warning {
  background: rgba(245,158,11,0.06);
  border-color: var(--color-warning);
}

.callout p { margin-bottom: 0; }
.callout strong { color: var(--text-primary); }

/* ── FAQ ── */
.faq { margin: 48px 0; }

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.faq-question:hover { background: var(--bg-surface-hover); }

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

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

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  padding: 0 20px 16px;
  max-height: 600px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ── Related Pages ── */
.related-pages {
  margin: 48px 0 0;
  padding: 28px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
}

.related-pages h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.related-link {
  display: block;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.related-link:hover {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.3);
}

/* ── Footer ── */
footer {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
  padding: 32px 20px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

footer a:hover { color: var(--text-primary); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.35rem; }
  .features-grid { grid-template-columns: 1fr; }
  .step { flex-direction: column; gap: 10px; }
  header { flex-direction: column; gap: 12px; }
  .nav-links { flex-wrap: wrap; justify-content: center; }
  .cta-group { flex-direction: column; }
  .btn { justify-content: center; }
}
