/* ════════════════════════════════════════════════════════════
   BLOG-POST.CSS — SEO Info Vault: single article layout
   Extends style.css + blog.css (nav, footer, sidebar widgets,
   design tokens). Adds article-body typography and callouts.
   ════════════════════════════════════════════════════════════ */

body { background: var(--void); }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.post-breadcrumb {
  max-width: 1200px; margin: 0 auto; padding: 1.5em 1.5em 0;
  font-size: 0.85rem; color: var(--text-light);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4em;
}
.post-breadcrumb a { color: #7ec8ff; text-decoration: none; }
.post-breadcrumb a:hover { text-decoration: underline; }
.post-breadcrumb span[aria-current] { color: var(--text); }

/* ── Post Hero ──────────────────────────────────────────────── */
.post-hero {
  max-width: 1200px; margin: 0 auto; padding: 1.5em 1.5em 0;
}
.post-hero__meta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 0.6em; font-size: 0.85rem; color: var(--text-light); margin-bottom: 1em;
}
.post-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  color: #fff; line-height: 1.15; margin-bottom: 0.6em;
  background: linear-gradient(135deg, #fff 40%, #7ec8ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.post-hero__dek {
  font-size: 1.1rem; color: var(--text); line-height: 1.8;
  max-width: 760px; margin-bottom: 1.75em;
}
.post-hero__img-wrap {
  border-radius: calc(var(--radius) * 1.75); overflow: hidden;
  border: 1px solid rgba(0,123,255,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  margin-bottom: 0;
}
.post-hero__img-wrap img { width: 100%; height: auto; display: block; }

/* ── Main layout (article + sidebar) ───────────────────────── */
.post-main {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 3em; max-width: 1200px; margin: 0 auto; padding: 3em 1.5em 4em;
  align-items: start;
}
@media (max-width: 960px) {
  .post-main { grid-template-columns: 1fr; }
  .post-sidebar { order: -1; }
}

/* ── Article typography ─────────────────────────────────────── */
.post-article {
  background: linear-gradient(145deg, var(--navy-2), var(--navy-3));
  border: 1px solid rgba(0,123,255,0.15);
  border-radius: calc(var(--radius) * 1.75);
  padding: 2.5em clamp(1.25em, 4vw, 3em);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.post-article p { color: var(--text); font-size: 1.02rem; line-height: 1.85; margin-bottom: 1.3em; }
.post-article h2 {
  color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  margin: 1.8em 0 0.7em; line-height: 1.3;
  padding-top: 0.2em;
}
.post-article h2:first-child { margin-top: 0; }
.post-article h3 {
  color: #fff; font-size: 1.15rem; margin: 1.4em 0 0.6em; line-height: 1.4;
}
.post-article strong { color: #fff; }
.post-article a { color: #7ec8ff; text-decoration: underline; text-decoration-color: rgba(126,200,255,0.35); text-underline-offset: 3px; }
.post-article a:hover { color: var(--cyan); }
.post-article ul, .post-article ol { margin: 0 0 1.3em 1.4em; color: var(--text); }
.post-article li { line-height: 1.75; margin-bottom: 0.5em; }
.post-article li strong { color: #fff; }

/* ── Direct-answer callout ─────────────────────────────────── */
.answer-box {
  background: rgba(0,123,255,0.08);
  border: 1px solid rgba(0,123,255,0.3);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.4em 1.6em;
  margin: 0 0 1.8em;
}
.answer-box__q {
  font-size: 0.95rem; font-weight: 700; color: #7ec8ff;
  text-transform: uppercase; letter-spacing: 0.03em;
  margin-bottom: 0.5em;
}
.answer-box p { margin-bottom: 0; color: #dce6f2; font-size: 1rem; line-height: 1.75; }

/* ── Pull quote / core line ─────────────────────────────────── */
.post-pullquote {
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  font-weight: 700; line-height: 1.4; color: #fff;
  border-left: 4px solid var(--cyan);
  padding: 0.2em 0 0.2em 1.2em;
  margin: 1.6em 0 2em;
  background: linear-gradient(135deg, #fff 30%, #7ec8ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Checklist card ─────────────────────────────────────────── */
.check-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.4em 1.6em;
  margin: 0 0 1.8em;
}
.check-card h3 { margin-top: 0; }
.check-card ul { margin-left: 0; list-style: none; }
.check-card li {
  padding-left: 1.7em; position: relative;
}
.check-card li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: #4fe08a; font-weight: 700;
}
.check-card--avoid li::before { content: '✕'; color: #ff6b6b; }

/* ── Workflow steps ─────────────────────────────────────────── */
.step-list { counter-reset: step; margin: 0 0 1.8em; list-style: none; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding: 0.9em 1.2em 0.9em 3.2em;
  margin-bottom: 0.7em;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,123,255,0.15);
  border-radius: var(--radius);
}
.step-list li::before {
  content: counter(step);
  position: absolute; left: 0.9em; top: 50%; transform: translateY(-50%);
  width: 1.7em; height: 1.7em; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff; font-weight: 700; font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.step-list li strong { display: block; color: #fff; margin-bottom: 0.15em; }

/* ── Example case cards ─────────────────────────────────────── */
.example-card {
  background: linear-gradient(145deg, #0d1230, #101840);
  border: 1px solid rgba(0,123,255,0.18);
  border-radius: var(--radius);
  padding: 1.3em 1.5em;
  margin-bottom: 1.3em;
}
.example-card h3 { margin-top: 0; color: #7ec8ff; font-size: 1.05rem; }
.example-card .flow {
  font-size: 0.92rem; color: var(--text-light);
  line-height: 1.9; margin-top: 0.5em;
}

/* ── Scoring table ──────────────────────────────────────────── */
.score-table-wrap { overflow-x: auto; margin: 0 0 1.8em; border-radius: var(--radius); border: 1px solid rgba(0,123,255,0.18); }
.score-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.92rem; }
.score-table th, .score-table td {
  padding: 0.75em 1em; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.score-table th { background: rgba(0,123,255,0.12); color: #fff; font-weight: 700; }
.score-table td { color: var(--text); }
.score-table tr:last-child td { border-bottom: none; }

/* ── In-article CTA banner ─────────────────────────────────── */
.post-cta {
  background: linear-gradient(135deg, #003399, #0055cc);
  border: 1px solid rgba(0,123,255,0.4);
  border-radius: calc(var(--radius) * 1.5);
  padding: 2em clamp(1.25em, 4vw, 2.5em);
  text-align: center;
  margin: 2.2em 0 0.5em;
  box-shadow: 0 8px 30px rgba(0,123,255,0.2);
}
.post-cta h3 { color: #fff; margin-top: 0; font-size: 1.35rem; }
.post-cta p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0.5em auto 1.3em; }
.post-cta .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.post-cta .btn-primary:hover { background: #e8f0ff; }

/* ── Post footer / share / tags ────────────────────────────── */
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5em; margin-top: 2em; padding-top: 1.5em; border-top: 1px solid rgba(255,255,255,0.08); }

/* ── Sidebar (reuses blog.css widgets) ─────────────────────── */
.post-sidebar { display: flex; flex-direction: column; gap: 1.5em; position: sticky; top: 1.5em; }

@media (max-width: 680px) {
  .post-article { padding: 1.75em 1.25em; }
}
