/* ═══════════════════════════════════════
   POST PAGE STYLES — shared across all posts
   ═══════════════════════════════════════ */

.post-hero {
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.post-hero-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.4);
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 60px;
  background: linear-gradient(to top, rgba(10,10,13,1) 0%, rgba(10,10,13,0.3) 50%, transparent 100%);
}

.post-hero-content { max-width: 820px; }

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.post-tag {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(212,68,241,0.15);
  border: 1px solid rgba(212,68,241,0.3);
  color: var(--magenta);
}

.post-date, .post-read-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.post-title {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--white);
}

/* ── BACK LINK ──────────────────────── */
.back-link {
  display: block;
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 60px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}

.back-link:hover { color: var(--magenta); }

/* ── ARTICLE LAYOUT ─────────────────── */
.article-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 60px 100px;
}

.article-lead {
  font-family: var(--font-body);
  font-size: 1.18rem;
  color: var(--off);
  line-height: 1.8;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.article-body {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.8;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin: 52px 0 16px;
  padding-top: 8px;
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--magenta);
  margin: 32px 0 10px;
}

.article-body p { margin-bottom: 20px; }

.article-body strong { color: var(--white); font-weight: 600; }

.article-body em {
  color: var(--gold);
  font-style: italic;
}

.article-body a {
  color: var(--magenta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li { margin-bottom: 10px; line-height: 1.65; }

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  background: rgba(212,68,241,0.1);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--magenta);
}

/* ── ARTICLE IMAGE ──────────────────── */
.article-img {
  width: 100%;
  border-radius: var(--radius);
  margin: 36px 0;
  display: block;
  border: 1px solid var(--border);
}

/* ── PULL QUOTE ─────────────────────── */
.pull-quote {
  border-left: 3px solid var(--magenta);
  padding: 20px 28px;
  margin: 40px 0;
  background: rgba(212,68,241,0.05);
  border-radius: 0 10px 10px 0;
}

.pull-quote p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--white);
  line-height: 1.65;
  margin: 0;
}

/* ── CODE BLOCK ─────────────────────── */
.code-block {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 28px 0;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--magenta);
  line-height: 1.7;
  display: block;
  background: none;
  padding: 0;
}

/* ── SOURCES ────────────────────────── */
.sources-block {
  margin-top: 56px;
  padding: 28px 32px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.sources-title {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
}

.sources-block ul {
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.sources-block li {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}

.sources-block li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--magenta);
  font-size: 0.75rem;
}

.sources-block a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.sources-block a:hover { color: var(--magenta); }

/* ── AUTHOR CARD ────────────────────── */
.author-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 64px;
}

.author-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
  border: 2px solid var(--magenta);
}

.author-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.author-bio {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── RESPONSIVE ─────────────────────── */
@media (max-width: 768px) {
  .post-hero-img { height: 340px; }
  .post-hero-overlay { padding: 28px 24px; }
  .back-link { padding: 20px 24px; }
  .article-wrap { padding: 40px 24px 80px; }
  .author-card { flex-direction: column; }
  .pull-quote p { font-size: 1.05rem; }
}
