/*
 * blog.css — Godwin Eats
 * Styles specific to blog.html (the Journal / post list page).
 * Requires global.css loaded first.
 *
 * Usage: <link rel="stylesheet" href="global.css">
 *        <link rel="stylesheet" href="blog.css">
 */

/* ─── LAYOUT ─── */
.site { max-width: var(--max); margin: 0 auto; padding: 0 0 80px; }

/* ─── JOURNAL HEADER ─── */
.journal-header {
  padding: 60px 32px 36px;
  border-bottom: 0.5px solid var(--border);
}
.journal-eyebrow {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 14px; font-weight: 500;
}
.journal-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 7vw, 64px); font-weight: 400;
  color: var(--char); line-height: 1.1; margin-bottom: 16px;
}
.journal-title em { font-style: italic; color: var(--terra); }
.journal-sub { font-size: 15px; color: var(--text2); font-weight: 300; max-width: 440px; line-height: 1.8; }

/* ─── FILTER TABS ─── */
.filter-row {
  display: flex; gap: 8px; padding: 18px 32px;
  border-bottom: 0.5px solid var(--border); flex-wrap: wrap;
}
.filter-btn {
  padding: 6px 18px; border-radius: 100px; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 0.5px solid var(--border2); background: transparent;
  color: var(--text2); cursor: pointer; transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--terra); border-color: var(--terra); color: var(--cream);
}

/* ─── FEATURED POST ─── */
.featured-post {
  margin: 28px 32px; border-radius: 16px;
  background: var(--surface); border: 0.5px solid var(--border);
  border-top: 2px solid var(--terra); overflow: hidden;
  text-decoration: none; display: block;
  transition: border-color 0.25s; position: relative;
}
.featured-post:hover { border-color: var(--terra); }
.featured-hero {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, #2a1a10 0%, #3d1a08 50%, #1c1814 100%);
  display: flex; align-items: flex-end; padding: 20px 24px;
  position: relative; overflow: hidden;
}
.featured-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 60% at 70% 40%, rgba(201,82,26,0.3) 0%, transparent 70%);
}
.featured-hero-text {
  position: relative; z-index: 1;
  font-family: 'DM Serif Display', serif; font-size: 48px;
  color: rgba(245, 237, 224, 0.12); line-height: 1;
  font-style: italic; letter-spacing: -0.02em;
}
.featured-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--terra); color: var(--cream);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px; font-weight: 500;
}
.featured-body { padding: 24px 28px 28px; }
.featured-tag {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 10px; display: block; font-weight: 500;
}
.featured-title {
  font-family: 'DM Serif Display', serif; font-size: 28px; font-weight: 400;
  color: var(--char); line-height: 1.25; margin-bottom: 12px;
}
.featured-title em { font-style: italic; }
.featured-excerpt {
  font-size: 15px; color: var(--text2); line-height: 1.8;
  font-weight: 300; margin-bottom: 18px;
}
.featured-meta { font-size: 12px; color: var(--text3); display: flex; gap: 16px; align-items: center; }
.read-link {
  margin-left: auto; font-size: 12px; color: var(--terra);
  letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 0.5px solid var(--border2); padding-bottom: 1px; transition: all 0.2s;
}
.read-link:hover { border-color: var(--terra); }

/* ─── POST LIST ─── */
.post-list { padding: 0 32px; display: flex; flex-direction: column; gap: 0; }
.post-card {
  padding: 26px 0; border-bottom: 0.5px solid var(--border);
  text-decoration: none; display: grid; grid-template-columns: 1fr auto;
  gap: 20px; align-items: start;
  transition: padding-left 0.2s, border-left-color 0.2s;
  border-left: 2px solid transparent; padding-left: 0;
}
.post-card:hover { padding-left: 12px; border-left-color: var(--terra); }
.post-card:last-child { border-bottom: none; }
.post-card[data-tag="hidden"] { display: none; }

.pc-tag {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 7px; display: block; font-weight: 500;
}
.pc-title {
  font-family: 'DM Serif Display', serif; font-size: 21px; font-weight: 400;
  color: var(--char); line-height: 1.3; margin-bottom: 8px;
}
.pc-excerpt { font-size: 13px; color: var(--text2); line-height: 1.75; font-weight: 300; margin-bottom: 10px; }
.pc-meta { font-size: 11px; color: var(--text3); display: flex; gap: 12px; }
.pc-cuisine {
  display: inline-block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--terra); background: rgba(201, 82, 26, 0.08); border: 0.5px solid var(--border2);
  border-radius: 100px; padding: 2px 9px; margin-top: 8px;
}
.pc-score {
  font-family: 'DM Serif Display', serif; font-size: 28px; font-weight: 400;
  color: var(--terra); flex-shrink: 0; line-height: 1.1; margin-top: 2px;
}

/* ─── DARK MODE ─── */
body.dark .journal-title,
body.dark .featured-title,
body.dark .pc-title { color: var(--cream); }

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .journal-header, .post-list { padding-left: 20px; padding-right: 20px; }
  .featured-post { margin: 16px 20px; }
  .filter-row { padding: 14px 20px; }
}
