/* ===========================
   Triple C — Blog Post Layout
   =========================== */

/* ── Post hero ── */
.post-hero {
  padding: calc(var(--nav-h) + 60px) 0 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}
.post-hero__inner { position: relative; z-index: 1; max-width: 860px; }
.post-hero__cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.post-hero__cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-glow);
  border: 1px solid rgba(127,199,183,0.2);
  padding: 5px 12px;
  border-radius: 50px;
}
.post-hero__title {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
}
.post-hero__excerpt {
  font-size: 18px;
  color: var(--text-sec);
  line-height: 1.75;
  max-width: 700px;
  margin-bottom: 36px;
}
.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.post-hero__author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-hero__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal-glow);
  border: 1px solid rgba(127,199,183,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  flex-shrink: 0;
}
.post-hero__author-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}
.post-hero__date {
  font-size: 13px;
  color: var(--text-sec);
}
.post-hero__read-time {
  font-size: 13px;
  color: var(--text-sec);
}
.post-hero__meta-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--text-dim);
}

/* ── Post body layout ── */
.post-body {
  background: var(--bg);
  padding: 80px 0 120px;
}
.post-body__inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}

/* ── Sidebar ── */
.post-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}
.post-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}
.post-toc__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.post-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-toc__list a {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.4;
  transition: color 0.2s;
  display: block;
}
.post-toc__list a:hover { color: var(--teal); }
.post-toc__list a.active { color: #fff; }

.post-share {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.post-share__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.post-share__links {
  display: flex;
  gap: 8px;
}
.post-share__link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 7px 12px;
  border-radius: 6px;
  transition: color 0.2s, border-color 0.2s;
}
.post-share__link:hover { color: #fff; border-color: rgba(255,255,255,0.25); }

/* ── Article content ── */
.post-content { max-width: 720px; }
.post-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 56px 0 16px;
  line-height: 1.2;
  padding-top: 8px;
}
.post-content h2:first-child { margin-top: 0; }
.post-content h3 {
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
  line-height: 1.3;
}
.post-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.85;
  margin-bottom: 20px;
  font-weight: 400;
}
.post-content strong { color: rgba(255,255,255,0.95); font-weight: 600; }
.post-content ul, .post-content ol {
  margin: 0 0 24px 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-content li {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
}
.post-content li strong { color: rgba(255,255,255,0.95); }
.post-content a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-content a:hover { color: #fff; }
.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ── Callout box ── */
.post-callout {
  background: rgba(127,199,183,0.06);
  border: 1px solid rgba(127,199,183,0.18);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.post-callout p {
  margin: 0;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
}

/* ── Key takeaways box ── */
.post-takeaways {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 48px 0;
}
.post-takeaways__title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.post-takeaways ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  gap: 12px;
}
.post-takeaways li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: rgba(255,255,255,0.75);
}
.post-takeaways li::before {
  content: '→';
  color: var(--teal);
  flex-shrink: 0;
  font-weight: 600;
}

/* ── Post CTA box ── */
.post-cta-box {
  background: linear-gradient(135deg, rgba(127,199,183,0.08), rgba(249,115,22,0.06));
  border: 1px solid rgba(127,199,183,0.2);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  margin: 56px 0 0;
}
.post-cta-box h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.post-cta-box p {
  font-size: 15px;
  color: var(--text-sec);
  margin-bottom: 24px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .post-body__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .post-sidebar { position: static; }
}
