/* ============================================================
   blog.css — Full Light Editorial Theme
   Warm Cream · Soft White · Gold Accents · Premium
   All rows = light warm cream palette
   ============================================================ */

:root {
  /* ── All row colours (light theme) ── */
  --bl-bg:        #FAF7F2;
  --bl-bg2:       #F0E8D8;
  --bl-bg3:       #EDE0CC;
  --bl-media-bg:  #EDE0CC;
  --bl-title:     #3A1F06;
  --bl-excerpt:   #6B4423;
  --bl-text:      #4A2C0A;
  --bl-muted:     #8B6A4A;

  /* ── Light row colours (same, unified) ── */
  --bl-lt-bg:       #F5F0E8;
  --bl-lt-bg2:      #EBE3D5;
  --bl-lt-media:    #E5D8C4;
  --bl-lt-title:    #3A1F06;
  --bl-lt-excerpt:  #6B4423;
  --bl-lt-muted:    #8B6A4A;
  --bl-lt-border:   #D8C8B0;

  /* ── Shared ── */
  --bl-gold:      #B8832A;
  --bl-gold-lt:   #D4A050;
  --bl-gold-dim:  rgba(184,131,42,0.12);
  --bl-border:    rgba(184,131,42,0.22);
}

/* ── Scroll Progress ─────────────────────────────────────────── */
#bl-progress-wrap {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; z-index: 9999;
  background: rgba(200,150,62,0.1);
  pointer-events: none;
}
#bl-progress {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--bl-gold), var(--bl-gold-lt));
  transition: width 0.1s linear;
}

/* ── Page Intro ──────────────────────────────────────────────── */
.bl-intro {
  background: linear-gradient(160deg, #FDF9F3 0%, #F5EDD8 50%, #EDE0C8 100%);
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--bl-border);
}
.bl-intro__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 0 32px;
}
.bl-intro__eyebrow {
  display: block;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--bl-gold);
  margin-bottom: 22px;
  opacity: 0.9;
}
.bl-intro__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  color: var(--bl-title);
  margin: 0 0 18px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(184,131,42,0.12);
}
.bl-intro__sub {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.95rem;
  color: var(--bl-muted);
  line-height: 1.75;
  font-style: italic;
  margin: 0;
}

/* ── Filter Bar ──────────────────────────────────────────────── */
.bl-filter-bar {
  background: var(--bl-bg2);
  padding: 14px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bl-border);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--bl-muted);
}
.bl-filter-clear {
  color: var(--bl-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: color 0.2s;
}
.bl-filter-clear:hover { color: var(--bl-gold); }

/* ── Stories Section ─────────────────────────────────────────── */
.bl-stories {
  background: var(--bl-bg);
}

/* ═══════════════════════════════════════════════════════════════
   STORY ROW — Core Layout
═══════════════════════════════════════════════════════════════ */
.bl-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--bl-border);
  height: 500px;
  min-height: 500px;
  transition: background 0.4s ease;
  position: relative;
  overflow: hidden;
}
.bl-story:last-child { border-bottom: none; }
.bl-story:hover { background: var(--bl-bg2); }

/* ── LIGHT rows (even index: 0-based 2nd, 4th, 6th…) ────────── */
.bl-story:nth-child(even) {
  background: var(--bl-lt-bg);
  border-bottom-color: var(--bl-lt-border);
}
.bl-story:nth-child(even):hover {
  background: var(--bl-lt-bg2);
}

/* Flip layout */
.bl-story--flip .bl-story__media { order: 2; }
.bl-story--flip .bl-story__text  { order: 1; }

/* ── Media Panel ─────────────────────────────────────────────── */
.bl-story__media {
  background: var(--bl-media-bg);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  height: 100%;
}
.bl-story:nth-child(even) .bl-story__media {
  background: var(--bl-lt-media);
}

/* Gold shimmer line on left edge of media panel */
.bl-story__media::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--bl-gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}
.bl-story:hover .bl-story__media::before { opacity: 0.6; }

/* ── Media Strip ─────────────────────────────────────────────── */
.bl-strip {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.bl-strip__item {
  flex: 1;
  min-width: 0; min-height: 0;
  display: flex;
  align-items: center; justify-content: center;
  background: var(--bl-media-bg);
  position: relative;
  overflow: hidden;
}
.bl-story:nth-child(even) .bl-strip__item {
  background: var(--bl-lt-media);
}
.bl-strip__item img {
  width: 100%; height: 100%; max-height: 100%;
  object-fit: contain;
  display: block;
  filter: brightness(0.92);
  transition: filter 0.4s ease;
}
.bl-story:hover .bl-strip__item img { filter: brightness(1); }
.bl-strip__item.is-video {
  background: #111;
}
.bl-strip__item video,
.bl-strip__item .bl-hover-video {
  width: 100%; height: 100%; max-height: 100%;
  object-fit: contain;
  display: block;
  background: #111;
  /* Let clicks fall through to the parent <a> card link */
  pointer-events: none;
}
.bl-strip--2 .bl-strip__item:first-child {
  border-right: 1px solid rgba(200,150,62,0.12);
}

/* Extra count badge */
.bl-strip__more {
  position: absolute;
  bottom: 16px; right: 16px;
  background: rgba(200,150,62,0.85);
  color: #1a0800;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 20px;
  pointer-events: none;
  backdrop-filter: blur(6px);
  letter-spacing: 0.06em;
}

/* Video play button overlay — pointer-events:none so clicks navigate the card */
.bl-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: rgba(200,150,62,0.15);
  border: 1.5px solid rgba(200,150,62,0.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--bl-gold);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(200,150,62,0.15);
  transition: opacity 0.2s ease, transform 0.3s ease, box-shadow 0.3s ease;
  padding-left: 3px;
  pointer-events: none;
}
.bl-play-btn.is-hidden { opacity: 0; }
.bl-story:hover .bl-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 8px 40px rgba(200,150,62,0.3);
}

/* No-media placeholder */
.bl-story__no-media {
  width: 100%; height: 100%;
  min-height: 500px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bl-lt-media);
  font-size: 2.5rem;
  color: var(--bl-gold);
  opacity: 0.5;
}

/* Video-without-poster placeholder */
.bl-video-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1008 0%, #2d1c0a 100%);
  position: absolute; inset: 0;
}

/* ── Text Panel ──────────────────────────────────────────────── */
.bl-story__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 72px;
  gap: 0;
  background: var(--bl-bg);
  transition: background 0.4s ease;
}
.bl-story:hover .bl-story__text { background: var(--bl-bg2); }

/* Light row text panel */
.bl-story:nth-child(even) .bl-story__text {
  background: var(--bl-lt-bg);
}
.bl-story:nth-child(even):hover .bl-story__text {
  background: var(--bl-lt-bg2);
}

.bl-story__date {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  color: var(--bl-gold);
  letter-spacing: 0.28em;
  margin-bottom: 22px;
  opacity: 0.75;
}
.bl-story:nth-child(even) .bl-story__date {
  color: var(--bl-lt-muted);
  opacity: 1;
}

.bl-story__cat {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--bl-gold);
  background: var(--bl-gold-dim);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--bl-border);
}

.bl-story__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.55rem, 2.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.22;
  color: var(--bl-title);
  margin: 0 0 24px;
  max-width: 480px;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
  text-shadow: 0 1px 12px rgba(200,150,62,0.1);
}
.bl-story:hover .bl-story__title { color: var(--bl-gold-lt); }

/* Light row title */
.bl-story:nth-child(even) .bl-story__title {
  color: var(--bl-lt-title);
  text-shadow: none;
}
.bl-story:nth-child(even):hover .bl-story__title {
  color: var(--bl-gold);
}

.bl-story__excerpt {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--bl-excerpt);
  max-width: 380px;
  margin: 0 0 36px;
  font-style: italic;
}
.bl-story:nth-child(even) .bl-story__excerpt {
  color: var(--bl-lt-excerpt);
}

/* Thin gold separator before CTA */
.bl-story__text::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  background: var(--bl-gold);
  transition: width 0.4s ease;
  margin-top: -28px;
  margin-bottom: 12px;
}
.bl-story:hover .bl-story__text::after { width: 40px; }

.bl-story__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bl-gold);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.bl-story:hover .bl-story__cta {
  opacity: 1;
  transform: translateY(0);
}
.bl-story:nth-child(even) .bl-story__cta {
  color: var(--bl-gold);
}

/* ── Empty State ─────────────────────────────────────────────── */
.bl-empty {
  background: var(--bl-lt-bg);
  text-align: center;
  padding: 130px 20px;
}
.bl-empty p {
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--bl-muted);
  font-style: italic;
  margin-bottom: 28px;
}
.bl-btn {
  display: inline-block;
  padding: 12px 30px;
  border: 1.5px solid var(--bl-gold);
  color: var(--bl-gold);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all 0.25s;
}
.bl-btn:hover {
  background: var(--bl-gold);
  color: #FAF7F2;
}

/* ── Pagination ──────────────────────────────────────────────── */
.bl-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 72px 20px;
  background: var(--bl-lt-bg);
  border-top: 1px solid var(--bl-lt-border);
}
.bl-page-btn, .bl-page-num {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px;
  border: 1.5px solid var(--bl-lt-border);
  background: transparent;
  color: var(--bl-lt-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem; text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}
.bl-page-num { width: 40px; padding: 0; }
.bl-page-num:hover, .bl-page-btn:hover {
  border-color: var(--bl-gold);
  color: var(--bl-gold);
  background: var(--bl-gold-dim);
}
.bl-page-num.active {
  background: var(--bl-gold);
  color: #FAF7F2;
  border-color: var(--bl-gold);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .bl-story {
    grid-template-columns: 1fr;
    height: auto; min-height: auto;
  }
  .bl-story--flip .bl-story__media { order: -1; }
  .bl-story--flip .bl-story__text  { order: 0; }
  .bl-story__media { min-height: 320px; }
  .bl-story__no-media { min-height: 320px; }
  .bl-story__text { padding: 56px 40px; }
}

@media (max-width: 640px) {
  .bl-intro { padding: 64px 0 48px; }
  .bl-intro__title { font-size: 2rem; }
  .bl-filter-bar { padding: 12px 24px; }
  .bl-story__media { min-height: 260px; }
  .bl-story__no-media { min-height: 260px; }
  .bl-story__text { padding: 44px 28px; }
  .bl-story__title { font-size: 1.45rem; }
  .bl-story__excerpt { font-size: 0.85rem; }
}

@media (max-width: 420px) {
  .bl-story__text { padding: 36px 22px; }
  .bl-play-btn { width: 44px; height: 44px; }
}
