/* =============================================================
   SINGLE BLOG POST — single.php
   ============================================================= */

/* ===== POST HEADER ===== */
.post-header {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: flex-end;
  background-color: var(--dark-earth); /* fallback when no thumbnail */
  background-size: cover;
  background-position: center;
  padding: 0;
}

/* Dark gradient overlay — heavier at bottom so text is always legible */
.post-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 12, 41, 0.96) 0%,
    rgba(15, 12, 41, 0.65) 45%,
    rgba(15, 12, 41, 0.25) 100%
  );
}

.post-header-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 72px 24px 64px;
}

/* Category */
.post-header-cat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-decoration: none;
  margin-bottom: 22px;
  transition: color 0.2s;
}
.post-header-cat::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.post-header-cat:hover {
  color: var(--gold);
}

/* Title — white bg, dark-earth text, organic soft wrap */
.post-header-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 300;
  color: var(--dark-earth);
  line-height: 1.65;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
  display: inline;
  background: var(--tanzanite-white);
  padding: 10px 22px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  line-height: 1.5;
}

/* Meta */
.post-header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Jost", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 20px;
  color: var(--tanzanite-white);
  text-shadow: 0 1px 3px rgba(15, 12, 41, 0.8);
}
.post-header-sep {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ===== POST BODY ===== */
.post-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px 88px;
}

/* ===== ENTRY CONTENT TYPOGRAPHY ===== */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--tanzanite-text-gray);
}
.entry-content p {
  margin-bottom: 1.65em;
}
.entry-content h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--tanzanite-text-gray);
  line-height: 1.2;
  margin: 2.6em 0 0.65em;
}
.entry-content h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--tanzanite-text-gray);
  line-height: 1.25;
  margin: 2.2em 0 0.5em;
}
.entry-content blockquote {
  margin: 2.6em 0;
  padding: 32px 40px;
  border-left: 3px solid var(--gold);
  background: var(--cream);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 400;
  color: var(--tanzanite-text-gray);
  line-height: 1.55;
  border-radius: 0 2px 2px 0;
}
.entry-content blockquote p {
  margin: 0;
}
.entry-content img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  margin: 2.4em 0;
}
.entry-content a {
  color: var(--primary-color);
  text-decoration: underline;
  text-decoration-color: var(--primary-color-mid-opacity);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
.entry-content a:hover {
  text-decoration-color: var(--primary-color);
}
.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.65em;
}
.entry-content li {
  margin-bottom: 0.5em;
  line-height: 1.8;
}
.entry-content hr {
  border: none;
  border-top: 1px solid var(--muted-border-color);
  margin: 3.2em 0;
}

/* ===== TAGS ===== */
.post-tags {
  margin-top: 52px;
  padding-top: 24px;
  border-top: 1px solid var(--muted-border-color);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-tags a {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary-color);
  background: var(--primary-color-high-opacity);
  padding: 5px 14px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
}
.post-tags a:hover {
  background: var(--primary-color-mid-opacity);
}

/* ===== PREV / NEXT ===== */
.post-nav-section {
  background: var(--tanzanite-very-light-bg-gray);
  padding: 56px 80px;
  border-top: 1px solid var(--muted-border-color);
}
.post-nav {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.post-nav-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 30px;
  background: var(--tanzanite-white);
  border: 1px solid var(--muted-border-color);
  border-radius: 3px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.post-nav-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 28px rgba(72, 52, 212, 0.08);
  transform: translateY(-2px);
}
.post-nav-card--right {
  text-align: right;
}
.post-nav-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--tanzanite-muted-text-gray);
  transition: color 0.2s;
}
.post-nav-card:hover .post-nav-label {
  color: var(--primary-color);
}
.post-nav-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--tanzanite-text-gray);
  line-height: 1.3;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .post-header {
    min-height: 460px;
  }
  .post-header-inner {
    padding: 56px 24px 48px;
  }
  .post-nav-section {
    padding: 40px 24px;
  }
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav-card--right {
    text-align: left;
  }
}

@media (max-width: 500px) {
  .post-header {
    min-height: 380px;
  }
  .post-header-title {
    font-size: 2rem;
  }
  .post-header-standfirst {
    font-size: 1.05rem;
  }
  .entry-content {
    font-size: 0.97rem;
  }
  .entry-content blockquote {
    padding: 20px 22px;
    font-size: 1.15rem;
  }
  .post-nav-card:hover {
    transform: none;
  }
}
