/* ============================================================
   Sam The Wise — Essay Type SEO Pages
   Single-column article layout, reuses design tokens from style.css
   ============================================================ */

:root {
  --emerald: #00E5A0;
  --emerald-dim: #00C98C;
  --emerald-dark: #0E4B43;
  --emerald-bg1: #0D2F2B;
  --emerald-bg2: #0A2420;
  --navy: #1a1f36;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.1);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.45);
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--navy);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

/* ---- Header ---- */

.seo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.seo-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 16px;
}

.seo-header-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.seo-header-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.seo-header-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.seo-header-nav a:hover {
  color: var(--emerald);
}

/* ---- Breadcrumb ---- */

.breadcrumb {
  max-width: 800px;
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--emerald);
}

.breadcrumb span {
  margin: 0 6px;
}

/* ---- Main Content ---- */

.seo-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ---- Hero ---- */

.seo-hero {
  text-align: center;
  padding: 48px 0 40px;
}

.seo-hero h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.seo-hero .subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- CTA Buttons ---- */

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--emerald);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.cta-btn:hover {
  background: var(--emerald-dim);
  transform: translateY(-1px);
}

.cta-btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.cta-btn-secondary:hover {
  background: var(--surface-hover);
}

/* ---- Sections ---- */

.seo-section {
  margin-top: 48px;
}

.seo-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.seo-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 24px;
}

.seo-section p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 12px;
}

/* ---- Structure Cards ---- */

.structure-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.structure-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
}

.structure-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--emerald-dark);
  color: var(--emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.structure-content {
  flex: 1;
}

.structure-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.structure-optional {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 500;
}

.structure-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
}

.structure-check {
  font-size: 13px;
  color: var(--emerald-dim);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.structure-check::before {
  content: '\2713';
  flex-shrink: 0;
  font-weight: 700;
}

/* ---- Rubric Preview ---- */

.rubric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.rubric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.rubric-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.rubric-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.rubric-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}

.rubric-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--emerald);
}

/* ---- Mistakes List ---- */

.mistakes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.mistakes-list li {
  padding: 12px 16px;
  background: rgba(239, 68, 68, 0.06);
  border-left: 3px solid var(--error);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---- Annotation Example ---- */

.annotation-example {
  margin-top: 16px;
}

.annotation-card {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border-left: 3px solid;
  font-size: 13px;
}

.annotation-card.type-strength {
  background: rgba(34, 197, 94, 0.08);
  border-left-color: var(--success);
}

.annotation-card.type-improvement {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: var(--warning);
}

.annotation-type-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.type-strength .annotation-type-chip {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.type-improvement .annotation-type-chip {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.annotation-quote {
  color: var(--text-secondary);
  font-style: italic;
  margin: 6px 0;
}

.annotation-comment {
  color: var(--text-primary);
  font-size: 13px;
}

/* ---- FAQ ---- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  padding: 16px 20px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

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

.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

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

.faq-answer {
  padding: 0 20px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  display: none;
}

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

/* ---- CTA Section ---- */

.cta-section {
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, var(--emerald-bg1), var(--emerald-bg2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-top: 48px;
}

.cta-section h2 {
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Related Types ---- */

.related-types {
  margin-top: 48px;
}

.related-grid {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.related-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.related-link:hover {
  border-color: var(--emerald);
  background: var(--surface-hover);
}

.related-link::before {
  content: '\2192';
  color: var(--emerald);
}

/* ---- Footer ---- */

.seo-footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.seo-footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.seo-footer a:hover {
  color: var(--emerald);
}

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

/* ---- Responsive ---- */

@media (max-width: 600px) {
  .seo-hero h1 {
    font-size: 28px;
  }

  .seo-hero .subtitle {
    font-size: 16px;
  }

  .rubric-grid {
    grid-template-columns: 1fr;
  }

  .structure-card {
    flex-direction: column;
    gap: 10px;
  }

  .structure-number {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .seo-header-nav {
    gap: 12px;
  }

  .seo-header-nav a {
    font-size: 13px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}
