/* ============================================
   POST PAGE
   ============================================ */

.reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: rgba(255,255,255,0.9);
  z-index: 999;
  transition: width 0.1s linear;
}

/* Flex row: share | article | toc */
.post {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 24px 0;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* ── Share column ── */
.post-share {
  flex-shrink: 0;
  width: 48px;
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.post-share__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin-bottom: 4px;
}

.post-share__btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  border: none;
  transition: transform 0.2s, opacity 0.2s;
}

.post-share__btn:hover { transform: scale(1.12); opacity: 0.85; }
.post-share__btn--x    { background: #000; color: #fff; font-size: 11px; }
.post-share__btn--fb   { background: #1877F2; color: #fff; font-size: 15px; }
.post-share__btn--copy { background: var(--green); color: #fff; font-size: 14px; }

.post-share__divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ── Article column ── */
.post-main {
  flex: 1;
  min-width: 0;
}

/* ── TOC column ── */
.post-sidebar {
  flex-shrink: 0;
  width: 200px;
  position: sticky;
  top: 35vh;
}

/* ============================================
   HEADER
   ============================================ */

.post-header { margin-bottom: 40px; }

.post-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  display: block;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.post-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border: 1.5px solid var(--border);
  color: var(--muted);
  border-radius: 20px;
}

.post-intro {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.75;
  border-left: 3px solid var(--green);
  padding-left: 20px;
}

/* ============================================
   BODY
   ============================================ */

.post-body { padding: 0 0 80px; }

.post-body p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 28px;
}

.post-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 52px 0 18px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  scroll-margin-top: 90px;
  clear: both;
}

.post-body strong { font-weight: 600; }

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

.post-body li {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 8px;
}

.post-body blockquote {
  border-left: 3px solid var(--green);
  padding: 4px 0 4px 24px;
  margin: 40px 0;
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  font-style: italic;
  color: var(--muted);
}

/* ============================================
   IMAGES
   ============================================ */

.post-img {
  margin: 36px 0;
  clear: both;
}

/* Hero image — no negative margins, stays within column */
.post-img--hero {
  margin: 0 0 44px 0;
  overflow: hidden;
}

.post-img--hero img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.post-img--small {
  margin: 36px 0;
  clear: both;
}

.post-img--small img { aspect-ratio: 16/9; }

.post-img-caption {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
  font-style: italic;
}

/* ============================================
   VERDICT / AUTHOR NOTE
   ============================================ */

.post-verdict {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  padding: 24px 28px;
  margin: 48px 0;
}

.post-verdict__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 14px;
}

.post-verdict p {
  margin-bottom: 12px;
}

.post-verdict p:last-child {
  margin-bottom: 0;
}

/* ============================================
   TOC
   ============================================ */

.post-toc {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 18px;
}

.post-toc__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.post-toc__list { list-style: none; padding: 0; margin: 0; }
.post-toc__list li { margin-bottom: 2px; }

.post-toc__list a {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  padding: 5px 8px 5px 10px;
  display: block;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  text-decoration: none;
}

.post-toc__list a:hover { color: var(--text); background: var(--bg); }

.post-toc__list a.is-active {
  color: var(--green);
  border-left-color: var(--green);
  font-weight: 500;
  background: var(--bg);
}

/* ============================================
   BACK TO TOP
   ============================================ */

#back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  background: var(--dark);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.2s;
  z-index: 50;
  border-radius: 50%;
}

#back-to-top:hover { background: var(--green); }

/* ============================================
   RELATED
   ============================================ */

.post-related {
  background: var(--bg2);
  padding: 64px 24px;
  border-top: 1px solid var(--border);
}

.post-related-inner { max-width: var(--max); margin: 0 auto; }

.post-related-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 960px) {
  .post-sidebar { display: none; }
}

@media (max-width: 720px) {
  .post { flex-direction: column; padding: 48px 16px 0; gap: 0; }
  .post-share {
    flex-direction: row;
    position: static;
    width: auto;
    padding: 0 0 24px;
    gap: 10px;
  }
  .post-share__label { writing-mode: horizontal-tb; transform: none; }
  .post-share__divider { width: 32px; height: 1px; }

  .post-body p, .post-body li { font-size: 16px; }
}
