/* Single Blog Post Page Styles */

section, .featured-image, header, .arc-divider {
  margin-top: 0;
}
:where(.wp-site-blocks) > * {
  margin-block-start: 0;
}
:where(.wp-site-blocks) > * + * {
  margin-block-start: 0;
}
.related-posts {
  margin-top: -18px !important;
}

/* =========================================
   ARTICLE HEADER — DARK
   ========================================= */
.article-header {
  position: relative;
  background: var(--dark-bg);
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}
.article-header-bg {
  position: absolute;
  inset: 0;
  background: url('') center/cover no-repeat;
  opacity: 0.06;
  filter: blur(4px);
}
.article-header-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(184,115,51,0.08) 0%, transparent 60%);
}
.article-header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

/* =========================================
   CATEGORY PILL
   ========================================= */
.category-pill {
  display: inline-block;
  padding: 8px 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  background: rgba(184,115,51,0.1);
  border: 1px solid rgba(184,115,51,0.3);
  border-radius: 100px;
  margin-bottom: 32px;
  position: relative;
  animation: pillGlow 3s ease-in-out infinite;
}
@keyframes pillGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(184,115,51,0.15), 0 0 30px rgba(184,115,51,0.05); }
  50% { box-shadow: 0 0 25px rgba(184,115,51,0.3), 0 0 50px rgba(184,115,51,0.1); }
}

/* =========================================
   ARTICLE TITLE
   ========================================= */
.article-header-content h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 44px;
  color: var(--text-dark-heading);
  line-height: 1.15;
  margin-bottom: 40px;
}
.article-header-content h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  animation: wordReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================
   AUTHOR CARD
   ========================================= */
.author-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 28px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
}
.author-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(184,115,51,0.4);
}
.author-meta {
  text-align: left;
}
.author-meta .name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark-heading);
}
.author-meta .date {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--text-dark-muted);
}
.reading-time {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-dark-muted);
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid rgba(255,255,255,0.1);
}

/* =========================================
   FEATURED IMAGE
   ========================================= */
.featured-image {
  position: relative;
  width: 100%;
  max-height: 560px;
  overflow: hidden;
}
.featured-image img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}
.featured-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent, var(--light-bg));
  pointer-events: none;
}
.featured-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, transparent, var(--dark-bg));
  pointer-events: none;
  z-index: 1;
}

/* =========================================
   ARTICLE BODY — LIGHT
   ========================================= */
.article-body {
  background: var(--light-bg);
  padding: 60px 0 80px;
}
.article-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 40px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-light-body);
}
.article-content p {
  margin-bottom: 28px;
}
.article-content h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 32px;
  color: var(--text-light-heading);
  margin-top: 56px;
  margin-bottom: 24px;
  line-height: 1.2;
}
.article-content a {
  color: var(--copper);
  position: relative;
  transition: color 0.3s ease;
}
.article-content a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--copper-gradient);
  transition: width 0.3s ease;
}
.article-content a:hover::after { width: 100%; }
.article-content a:hover { color: var(--copper-mid); }

/* =========================================
   BLOCKQUOTE
   ========================================= */
.article-content blockquote {
  position: relative;
  margin: 40px 0;
  padding: 32px 36px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.5);
  border-left: 3px solid var(--copper);
  border-radius: 0 16px 16px 0;
  font-style: italic;
  font-size: 18px;
  color: var(--text-light-heading);
  line-height: 1.7;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.article-content blockquote::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--copper-gradient);
  border-radius: 3px;
  box-shadow: 0 0 12px rgba(184,115,51,0.4);
}

/* =========================================
   LISTS
   ========================================= */
.article-content ul {
  margin: 28px 0;
  padding-left: 0;
}
.article-content ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  list-style: none;
  color: var(--text-light-body);
}
.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper-gradient);
  box-shadow: 0 0 8px rgba(184,115,51,0.3);
}

/* =========================================
   DROP CAP
   ========================================= */
.article-content .drop-cap::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 72px;
  line-height: 0.8;
  margin-right: 12px;
  margin-top: 6px;
  background: var(--copper-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================
   POST NAVIGATION — LIGHT
   ========================================= */
.post-nav {
  background: var(--light-bg);
  padding: 0 0 80px;
}
.post-nav-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 40px 0;
  border-top: 1px solid var(--light-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.post-nav-card {
  padding: 28px 24px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.post-nav-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--copper-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.post-nav-card:hover::before { opacity: 0.6; }
.post-nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.post-nav-card .direction {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-nav-card .nav-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-light-heading);
  line-height: 1.3;
}
.post-nav-card.next { text-align: right; }
.post-nav-card.next .direction { justify-content: flex-end; }
.post-nav-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 18px;
}
.post-nav-card:hover .post-nav-arrow.left { transform: translateX(-4px); }
.post-nav-card:hover .post-nav-arrow.right { transform: translateX(4px); }

/* =========================================
   RELATED POSTS — LIGHT
   ========================================= */
.related-posts {
  background: var(--light-bg);
  padding: 0 0 100px;
}
.related-posts-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}
.related-posts-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 28px;
  color: var(--text-light-heading);
  margin-bottom: 36px;
  text-align: center;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.related-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}
.related-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--copper-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.related-card:hover::before { opacity: 0.6; }
.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.related-card-img {
  height: 200px;
  overflow: hidden;
}
.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.related-card:hover .related-card-img img {
  transform: scale(1.05);
}
.related-card-body {
  padding: 24px;
}
.related-card-body .cat-pill {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  background: rgba(184,115,51,0.08);
  border-radius: 100px;
  margin-bottom: 12px;
}
.related-card-body h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--text-light-heading);
  line-height: 1.3;
  margin-bottom: 8px;
}
.related-card-body p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-light-muted);
  line-height: 1.6;
}
