/* ─── BLOG POST PAGE — supplemental styles ─────────────────────────────────
   Extends blog.css. Only styles that don't exist anywhere in blog.css or
   style.css belong here. All layout primitives reuse existing classes.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Post hero (top banner with title + meta) ──────────────────────────── */
.post-hero {
  padding-top: calc(68px + clamp(2.5rem, 7vw, 5rem));
  padding-bottom: clamp(2rem, 5vw, 3.75rem);
  padding-left: var(--section-px);
  padding-right: var(--section-px);
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.post-hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -10%;
  width: 70%;
  height: 140%;
  background: radial-gradient(
    ellipse at 65% 40%,
    rgba(26, 79, 214, 0.06) 0%,
    rgba(34, 201, 122, 0.03) 50%,
    transparent 70%
  );
  pointer-events: none;
}
.post-hero-inner {
  max-width: 780px;
  position: relative;
}
.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 1.75rem;
  transition: color 0.2s;
}
.post-back:hover {
  color: var(--blue);
}
.post-back .arrow-left {
  display: inline-block;
  transition: transform 0.2s;
}
.post-back:hover .arrow-left {
  transform: translateX(-3px);
}
.post-hero h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* ── Hero image ─────────────────────────────────────────────────────────── */
.post-hero-img-wrap {
  padding: 0 var(--section-px) clamp(2rem, 5vw, 3.75rem);
  max-width: calc(780px + 2 * var(--section-px));
  margin: 0 auto;
}
.post-hero-img-wrap img {
  width: 100%;
  border-radius: clamp(12px, 2vw, 20px);
  aspect-ratio: 16 / 7;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-card);
}

/* ── Article body ───────────────────────────────────────────────────────── */
.post-body-wrap {
  padding: 0 var(--section-px) clamp(3rem, 8vw, 6rem);
  max-width: calc(720px + 2 * var(--section-px));
  margin: 0 auto;
}
.post-body {
  font-size: clamp(0.9375rem, 1.9vw, 1.0625rem);
  line-height: 1.8;
  color: var(--text);
  font-weight: 300;
}
.post-body h2 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.2rem, 2.8vw, 1.625rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0.875rem;
}
.post-body h3 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: clamp(1.5rem, 3vw, 2rem) 0 0.625rem;
}
.post-body p {
  margin-bottom: 1.375rem;
}
.post-body ul,
.post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.375rem;
}
.post-body li {
  margin-bottom: 0.5rem;
}
.post-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.post-body a:hover {
  color: var(--blue-lt);
}
.post-body blockquote {
  border-left: 3px solid var(--green);
  padding: 0.875rem 1.375rem;
  margin: 1.75rem 0;
  background: var(--off);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #4a5d82;
}
.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
.post-body img {
  width: 100%;
  border-radius: var(--radius-img);
  margin: 1.75rem 0;
  box-shadow: 0 8px 28px rgba(10, 22, 40, 0.08);
}
.post-body figure {
  margin: 1.75rem 0;
}
.post-body figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.5rem;
}
.post-body strong {
  font-weight: 500;
  color: var(--navy);
}
.post-body code {
  font-size: 0.875em;
  background: var(--off);
  border: 1px solid var(--border);
  padding: 0.15em 0.45em;
  border-radius: 4px;
}
.post-body pre {
  background: var(--navy);
  color: #e2e8f4;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 1.75rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
.post-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}

/* ── Post footer: tags + share ──────────────────────────────────────────── */
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.post-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(26, 79, 214, 0.07);
  border: 1px solid rgba(26, 79, 214, 0.15);
  padding: 5px 12px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.post-tag:hover {
  background: var(--blue);
  color: #fff;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (min-width: 1280px) {
  .post-hero-inner,
  .post-body-wrap {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
  }
  .post-hero-img-wrap {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}
