/* ===== BLOG POST STYLES ===== */

/* Navbar always dark on blog pages */
.navbar.scrolled {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, 0.95);
  border-bottom-color: var(--border);
}

.nav-active {
  color: #fff !important;
}

/* Post container — narrower than main site for readability */
.post-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 40px;
}


/* ===== POST HEADER ===== */
.post-header {
  padding: 140px 0 60px;
}

.post-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-breadcrumb a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.post-breadcrumb a:hover {
  color: var(--text);
}

.post-breadcrumb span {
  color: var(--text-muted);
}

.post-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-category {
  color: #fff;
  background: var(--border-light);
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.post-dot {
  color: var(--text-muted);
  opacity: 0.4;
}

.post-title {
  font-family: 'Ofelia Text', -apple-system, sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #fff;
}

.post-subtitle {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 48px;
  font-weight: 300;
  max-width: 600px;
}

.post-cover {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 0;
  position: relative;
  cursor: pointer;
}

.post-cover img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.post-cover:hover img {
  transform: scale(1.04);
  filter: blur(3px) brightness(0.6);
}

.post-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.post-cover:hover .post-cover-overlay {
  opacity: 1;
}

.post-cover-title {
  font-family: 'Ofelia Text', -apple-system, sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}


/* ===== POST BODY ===== */
.post-body {
  padding: 64px 0 80px;
}

.post-body p {
  font-family: 'Ofelia Text', -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: 28px;
}

.post-body h2 {
  font-family: 'Ofelia Text', -apple-system, sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 52px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

blockquote {
  border-left: 2px solid #fff;
  margin: 40px 0;
  padding: 8px 0 8px 28px;
  font-family: 'Ofelia Text', -apple-system, sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  line-height: 1.8;
}

.post-figure {
  margin: 40px 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.post-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.post-figure figcaption {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  background: var(--bg-card);
}


/* ===== POST BACK LINK ===== */
.post-back {
  padding: 0 0 80px;
}

.post-back .section-divider {
  margin-bottom: 32px;
}

.post-back-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.post-back-link:hover {
  color: #fff;
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .post-container {
    padding: 0 24px;
  }

  .post-header {
    padding: 120px 0 48px;
  }

  .post-title {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }
}