/* ═══════════════════════════════════════════════
   MEALFAN V2 — BLOG STYLES (Posts, Articles, Archive)
   Warm navy (#1a2332) + coral (#d4764e) on cream (#f7f5f2)
   ═══════════════════════════════════════════════ */

/* ─── BLOG HERO ─── */
.blog-hero {
  background: linear-gradient(135deg, var(--cream, #f7f5f2) 0%, var(--cream-deep, #eeebe6) 100%);
  border-bottom: 2px dashed rgba(26,35,50,0.15);
  padding: 2rem 0 3rem;
}
.blog-hero .wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.blog-hero__inner {
  max-width: 760px;
}
.blog-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coral, #d4764e);
  font-weight: 700;
  margin-bottom: 1rem;
}
.blog-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--navy, #1a2332);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.blog-hero__excerpt {
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  color: rgba(26,35,50,0.6);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: 1.5rem;
}
.blog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: rgba(26,35,50,0.55);
}
.blog-hero__author-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}
.blog-hero__divider {
  opacity: 0.3;
}

/* ─── FEATURED IMAGE ─── */
.blog-featured-img {
  padding: 0 0 2rem;
  background: var(--warm, #fcfbf9);
}
.blog-featured-img .wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.blog-featured-img img {
  width: 100%;
  max-width: 760px;
  height: auto;
  border-radius: 16px;
  display: block;
  border: 2px dashed rgba(26,35,50,0.1);
}

/* ─── BLOG CONTENT ─── */
body.mf-v2 .blog-content {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  line-height: 1.8;
  color: var(--navy, #1a2332);
}
body.mf-v2 .blog-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy, #1a2332);
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px dashed rgba(26,35,50,0.12);
  line-height: 1.25;
}
body.mf-v2 .blog-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy, #1a2332);
  margin: 2rem 0 1rem;
  line-height: 1.3;
}
body.mf-v2 .blog-content h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy, #1a2332);
  margin: 1.5rem 0 0.75rem;
}
body.mf-v2 .blog-content p {
  margin-bottom: 1.25rem;
  color: rgba(26,35,50,0.75);
  line-height: 1.8;
}
body.mf-v2 .blog-content a {
  color: var(--coral, #d4764e);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
body.mf-v2 .blog-content a:hover {
  border-bottom-color: var(--coral, #d4764e);
}

/* Lists */
body.mf-v2 .blog-content ul,
body.mf-v2 .blog-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
body.mf-v2 .blog-content li {
  margin-bottom: 0.5rem;
  color: rgba(26,35,50,0.75);
  line-height: 1.7;
}

/* Images */
body.mf-v2 .blog-content img {
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

/* Blockquotes */
body.mf-v2 .blog-content blockquote {
  border-left: 4px solid var(--coral, #d4764e);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(247,245,242,0.5);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: rgba(26,35,50,0.7);
}

/* Tables */
body.mf-v2 .blog-content table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 2px dashed rgba(26,35,50,0.12);
  margin: 1.5rem 0;
}
body.mf-v2 .blog-content table th {
  background: var(--cream, #f7f5f2);
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--navy, #1a2332);
  border-bottom: 2px dashed rgba(26,35,50,0.12);
}
body.mf-v2 .blog-content table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(26,35,50,0.06);
  font-size: 14px;
}
body.mf-v2 .blog-content table tr:last-child td {
  border-bottom: none;
}
body.mf-v2 .blog-content table tr:hover td {
  background: rgba(247,245,242,0.5);
}

/* Code blocks */
body.mf-v2 .blog-content pre,
body.mf-v2 .blog-content code {
  font-family: 'DM Mono', monospace;
  background: rgba(26,35,50,0.04);
  border-radius: 8px;
  font-size: 13px;
}
body.mf-v2 .blog-content code {
  padding: 2px 6px;
}
body.mf-v2 .blog-content pre {
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(26,35,50,0.08);
}
body.mf-v2 .blog-content pre code {
  background: none;
  padding: 0;
}

/* ─── BLOG TAGS ─── */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.5rem 0;
  padding-top: 2rem;
  border-top: 2px dashed rgba(26,35,50,0.1);
}
.blog-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--cream, #f7f5f2);
  color: rgba(26,35,50,0.6) !important;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  border-radius: 50px;
  text-decoration: none !important;
  border: 1px solid rgba(26,35,50,0.08);
  transition: all 0.2s;
}
.blog-tag:hover {
  background: var(--coral, #d4764e);
  color: white !important;
  border-color: var(--coral, #d4764e);
}

/* ─── AUTHOR BOX ─── */
.blog-author-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 2rem;
  background: var(--cream, #f7f5f2);
  border-radius: 16px;
  margin: 2rem 0 0;
  border: 2px dashed rgba(26,35,50,0.1);
}
.blog-author-box__img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  flex-shrink: 0;
}
.blog-author-box__name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy, #1a2332);
  margin-bottom: 0.5rem;
}
.blog-author-box__bio {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(26,35,50,0.6);
}

/* ─── SIDEBAR CATEGORIES ─── */
.sidebar__categories {
  margin-top: 2rem;
  border: 2px dashed rgba(26,35,50,0.1);
  border-radius: 16px;
  padding: 1.5rem;
  background: white;
}
.sidebar__categories-title {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--navy, #1a2332);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px dashed rgba(26,35,50,0.1);
}
.sidebar__cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  color: rgba(26,35,50,0.65) !important;
  text-decoration: none !important;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  border-bottom: 1px solid rgba(26,35,50,0.05);
  transition: color 0.2s;
}
.sidebar__cat-link:last-child {
  border-bottom: none;
}
.sidebar__cat-link:hover {
  color: var(--coral, #d4764e) !important;
}
.sidebar__cat-count {
  font-size: 11px;
  background: var(--cream, #f7f5f2);
  padding: 2px 8px;
  border-radius: 50px;
  color: rgba(26,35,50,0.4);
}

/* ─── RELATED CARDS — blog specific overrides ─── */
.related__card-cat {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--coral, #d4764e);
  margin-bottom: 0.5rem;
}
.related__card-date {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: rgba(26,35,50,0.4);
  margin-top: 0.5rem;
}
.related__card-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream, #f7f5f2);
  min-height: 180px;
  border-radius: 12px 12px 0 0;
}

/* ─── BLOG ARCHIVE ─── */
.blog-archive-hero {
  background: linear-gradient(135deg, var(--cream, #f7f5f2) 0%, var(--cream-deep, #eeebe6) 100%);
  border-bottom: 2px dashed rgba(26,35,50,0.15);
  padding: 3rem 0 3.5rem;
  text-align: center;
}
.blog-archive-hero .wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.blog-archive-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coral, #d4764e);
  font-weight: 700;
  margin-bottom: 1rem;
}
.blog-archive-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--navy, #1a2332);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.blog-archive-hero__desc {
  font-family: 'DM Mono', monospace;
  font-size: 15px;
  color: rgba(26,35,50,0.55);
  line-height: 1.7;
}

/* Category filter pills */
.blog-filter {
  padding: 1.5rem 0;
  background: var(--warm, #fcfbf9);
  border-bottom: 1px solid rgba(26,35,50,0.06);
}
.blog-filter .wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.blog-filter__pill {
  display: inline-block;
  padding: 6px 16px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: rgba(26,35,50,0.5);
  background: transparent;
  border: 1px solid rgba(26,35,50,0.12);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.2s;
}
.blog-filter__pill:hover,
.blog-filter__pill--active {
  background: var(--coral, #d4764e);
  color: white;
  border-color: var(--coral, #d4764e);
}

/* Post grid */
.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.blog-card {
  background: white;
  border: 2px dashed rgba(26,35,50,0.1);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--navy, #1a2332);
  transition: border-color 0.2s, transform 0.2s;
}
.blog-card:hover {
  border-color: rgba(212,118,78,0.3);
  transform: translateY(-2px);
}
.blog-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.blog-card__img--placeholder {
  width: 100%;
  height: 200px;
  background: var(--cream, #f7f5f2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card__body {
  padding: 1.25rem;
}
.blog-card__cat {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--coral, #d4764e);
  margin-bottom: 0.5rem;
}
.blog-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy, #1a2332);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.blog-card__excerpt {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: rgba(26,35,50,0.55);
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: rgba(26,35,50,0.4);
}
.blog-card__meta img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

/* Pagination */
.blog-pagination {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  color: rgba(26,35,50,0.5);
  text-decoration: none;
  border: 1px solid rgba(26,35,50,0.1);
  transition: all 0.2s;
}
.blog-pagination a:hover {
  background: var(--cream, #f7f5f2);
  border-color: var(--coral, #d4764e);
  color: var(--coral, #d4764e);
}
.blog-pagination .current {
  background: var(--coral, #d4764e);
  color: white;
  border-color: var(--coral, #d4764e);
}

/* ─── CATEGORY/ARCHIVE PAGE HEADER ─── */
.blog-category-hero {
  background: linear-gradient(135deg, var(--cream, #f7f5f2) 0%, var(--cream-deep, #eeebe6) 100%);
  border-bottom: 2px dashed rgba(26,35,50,0.15);
  padding: 2rem 0 3rem;
  text-align: center;
}
.blog-category-hero .wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.blog-category-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--coral, #d4764e);
  font-weight: 700;
  margin-bottom: 1rem;
}
.blog-category-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--navy, #1a2332);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.blog-category-hero__desc {
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  color: rgba(26,35,50,0.5);
  line-height: 1.7;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 28px;
  }
  .blog-hero__excerpt {
    font-size: 14px;
  }
  .blog-hero__meta {
    font-size: 12px;
  }
  body.mf-v2 .blog-content h2 {
    font-size: 22px;
  }
  body.mf-v2 .blog-content h3 {
    font-size: 18px;
  }
  .blog-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .blog-grid {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  .blog-archive-hero h1 {
    font-size: 32px;
  }
}
