/* ═══════════════════════════════════════════════════════════
   maniTLab — Blog Post Enhancements
   Drop caps, blockquotes, code, figures, tables, nav, progress
   ═══════════════════════════════════════════════════════════ */

/* ── POST HEADER ACCENT ── */
/* Three-color gradient strip: primary → accent → blue (trit colors) */
.post-header {
  background:
    linear-gradient(180deg,
      transparent 0%, transparent calc(100% - 3px),
      var(--primary) calc(100% - 3px), var(--primary) calc(100% - 2px),
      var(--accent) calc(100% - 2px), var(--accent) calc(100% - 1px),
      var(--trit-neg) calc(100% - 1px));
  border-bottom: none;
}

/* ── DROP CAPS ── */
.post-body > .container-narrow > h2 + p::first-letter,
.post-body > .container-narrow > p:first-of-type::first-letter {
  float: left;
  font-size: 3.2rem;
  line-height: 0.8;
  font-weight: 700;
  color: var(--primary);
  padding: 4px 10px 4px 0;
  margin-top: 6px;
}

/* ── BLOCKQUOTES ── */
.post-body blockquote {
  border-left: 3px solid var(--primary);
  padding: 20px 28px;
  margin: 2rem 0;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(204,17,17,0.03) 100%);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  position: relative;
}
.post-body blockquote::before {
  content: '\201C';
  position: absolute;
  top: -8px;
  left: 12px;
  font-size: 3.5rem;
  color: var(--primary);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}
.post-body blockquote p {
  font-style: italic;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--text-muted);
}

/* ── CODE BLOCKS ── */
.post-body pre {
  position: relative;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.post-body pre code {
  color: var(--text);
  font-size: 0.84rem;
}

/* ── FIGURES ── */
.post-body .figure {
  margin: 2.5rem 0;
}
.post-body .figure .figure-body {
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  border-color: var(--border);
  transition: box-shadow 0.2s;
}
.post-body .figure .figure-body:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* ── DATA TABLES ── */
.post-body .data-table {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.03);
}
.post-body .data-table th {
  background: var(--card);
  border-bottom: 2px solid var(--border-hi);
  font-weight: 700;
}
.post-body .data-table tbody tr:nth-child(even) td {
  background: rgba(255,240,236,0.5);
}
.post-body .data-table tbody tr:hover td {
  background: var(--card);
}

/* ── LISTS ── */
.post-body ul li {
  position: relative;
  padding-left: 4px;
}
.post-body ul li::marker {
  color: var(--primary);
}

/* ── LINK HOVER (animated underline) ── */
.post-body a {
  text-decoration: none;
  background-image: linear-gradient(var(--primary), var(--primary));
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.25s ease, color 0.15s;
  padding-bottom: 1px;
}
.post-body a:hover {
  background-size: 100% 1px;
  color: var(--primary);
}

/* ── POST NAV (card style) ── */
.post-nav {
  margin-top: 48px;
  padding-top: 0;
  border-top: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.post-nav a, .post-nav span {
  display: block;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--text-dim);
  transition: all 0.15s;
  text-align: center;
  background-image: none;
}
.post-nav a:hover {
  border-color: var(--border-hi);
  color: var(--primary);
  background: var(--card);
  background-image: none;
  transform: translateY(-1px);
}

/* ── READING PROGRESS BAR ── */
.reading-progress {
  position: fixed;
  top: 56px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--trit-neg));
  z-index: 99;
  transition: width 0.1s linear;
}

/* ── KEY TAKEAWAYS ── */
.post-body [class*="section-eyebrow"] {
  color: var(--primary);
}
