/* ============================================================
   content.css – Styles for SEO content pages
   (weekly meal plans, recipe pages, index hubs)
   ============================================================ */

/* ── Nav extra links ── */
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-link {
  color: var(--ink-2, #4b5563);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
}
.nav-link:hover { color: var(--color-brand, #24712A); }

/* ── Content main wrapper ── */
.content-main {
  min-height: 100vh;
  background: var(--bg, #f5f9f5);
}

/* ── Hero ── */
.content-hero {
  background: linear-gradient(145deg, #1c5c21 0%, #24712A 45%, #2d8a34 100%);
  color: #fff;
  padding: 4rem 1.5rem 3.5rem;
}
.content-hero--short { padding: 2.8rem 1.5rem 2.5rem; }
.content-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}
.breadcrumb-nav {
  font-size: .83rem;
  opacity: .8;
  margin-bottom: 1rem;
}
.breadcrumb-nav a { color: #fff; text-decoration: none; }
.breadcrumb-nav a:hover { text-decoration: underline; }
.breadcrumb-nav span { opacity: .75; }
.content-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: .25rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .3px;
  margin-bottom: .9rem;
}
.content-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: .75rem;
  color: #fff;
}
.content-hero .accent { color: #a8f0b0; }
.content-hero-desc {
  font-size: 1.05rem;
  opacity: .9;
  max-width: 680px;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
.plan-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.6rem;
}
.plan-chip {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: .3rem .85rem;
  font-size: .84rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.cost-chip { background: rgba(245,158,11,.25); border-color: rgba(245,158,11,.4); }
.content-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}
.btn-outline-light {
  background: transparent;
  border: 2px solid rgba(255,255,255,.55);
  color: #fff;
  border-radius: 10px;
  padding: .6rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.btn-outline-light:hover { background: rgba(255,255,255,.15); border-color: #fff; color: #fff; }

/* ── Content sections ── */
.content-section {
  padding: 3rem 1.5rem;
}
.content-section--green {
  background: linear-gradient(135deg, #f0faf1 0%, #e8f5ea 100%);
  border-top: 1px solid #d1e7d3;
  border-bottom: 1px solid #d1e7d3;
}
.content-section-inner {
  max-width: 900px;
  margin: 0 auto;
}
.content-section h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--ink, #111827);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.content-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: .6rem;
}
.section-emoji {
  font-size: 1.3rem;
}
.section-intro {
  font-size: 1rem;
  color: var(--ink-2, #4b5563);
  margin-bottom: 1.5rem;
  max-width: 680px;
}
.content-section p {
  color: var(--ink-2, #4b5563);
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 1rem;
}
.content-section ul, .content-section ol {
  color: var(--ink-2, #4b5563);
  line-height: 1.7;
}
.content-section li { margin-bottom: .3rem; }

/* ── Table ── */
.content-table { background: var(--surface, #fff); border-radius: 12px; overflow: hidden; }
.content-table thead { background: linear-gradient(90deg, #24712A, #2d8a34); color: #fff; }
.content-table thead th { font-weight: 700; font-size: .9rem; padding: .85rem 1rem; }
.content-table tbody tr:hover { background: #f0faf1; }
.content-table tbody td { padding: .75rem 1rem; vertical-align: top; font-size: .93rem; }
.recipe-link { color: #24712A; font-weight: 600; text-decoration: none; }
.recipe-link:hover { text-decoration: underline; }

/* ── Shopping list grid ── */
.shopping-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .4rem .8rem;
}
.shopping-grid li {
  font-size: .9rem;
  color: var(--ink, #111827);
  padding: .3rem .4rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.shopping-grid li i { color: #24712A; flex-shrink: 0; }
.shopping-cta {
  background: rgba(255,255,255,.7);
  border: 1px solid #c8e6ca;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.shopping-cta small { color: var(--ink-3, #6b7280); font-size: .85rem; }

/* ── Content cards grid (plan index) ── */
.content-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.content-card {
  background: var(--surface, #fff);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  padding: 1.4rem;
  text-decoration: none;
  color: var(--ink, #111827);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--line, #e5e7eb);
}
.content-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(36,113,42,.15);
  border-color: #24712A;
}
.content-card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.card-emoji { font-size: 2rem; line-height: 1; }
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink, #111827);
}
.card-desc { font-size: .88rem; color: var(--ink-2, #4b5563); line-height: 1.5; flex: 1; }
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  font-weight: 600;
  color: #24712A;
  border-top: 1px solid var(--line, #e5e7eb);
  padding-top: .6rem;
  margin-top: auto;
}

/* ── Mini cards (other plans row) ── */
.mini-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.content-card-mini {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  padding: .55rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink, #111827);
  transition: all .15s;
}
.content-card-mini:hover { border-color: #24712A; color: #24712A; background: #f0faf1; }
.card-mini-emoji { font-size: 1.1rem; }

/* ── Recipe pages ── */
.recipe-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 680px) { .recipe-layout { grid-template-columns: 1fr; } }
.recipe-ingredients-box {
  background: #f0faf1;
  border: 1px solid #c8e6ca;
  border-radius: 14px;
  padding: 1.4rem;
  position: sticky;
  top: 80px;
}
.recipe-ingredients-box h2 { font-size: 1.15rem; }
.recipe-ingr-list { list-style: none; padding: 0; margin: 0; }
.recipe-ingr-list li {
  padding: .3rem 0;
  font-size: .93rem;
  border-bottom: 1px solid #d1e7d3;
  display: flex;
  align-items: center;
  gap: .3rem;
  color: var(--ink, #111827);
}
.recipe-ingr-list li:last-child { border-bottom: none; }
.recipe-ingr-list li i { color: #24712A; }
.recipe-steps-box h2 { font-size: 1.2rem; }
.recipe-steps { padding-left: 1.3rem; }
.recipe-steps li {
  margin-bottom: .85rem;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink, #111827);
}
.recipe-how { font-size: .95rem; line-height: 1.6; color: var(--ink-2, #4b5563); }
.recipe-related { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line,#e5e7eb); }
.recipe-related h3 { font-size: 1rem; margin-bottom: .75rem; }
.recipe-rel-link {
  display: inline-block;
  margin: .25rem .35rem .25rem 0;
  background: var(--surface,#fff);
  border: 1px solid var(--line,#e5e7eb);
  border-radius: 8px;
  padding: .35rem .8rem;
  font-size: .85rem;
  text-decoration: none;
  color: #24712A;
  transition: all .15s;
}
.recipe-rel-link:hover { background: #f0faf1; border-color: #24712A; }

/* ── Recipe index / groups ── */
.recipe-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.recipe-origin-group {
  background: var(--surface,#fff);
  border-radius: 12px;
  border: 1px solid var(--line,#e5e7eb);
  padding: 1.1rem 1.2rem;
}
.origin-title {
  font-size: .95rem;
  font-weight: 700;
  color: #24712A;
  margin-bottom: .7rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.recipe-count { font-size: .78rem; color: var(--ink-3,#6b7280); font-weight: 500; }
.recipe-origin-list { list-style: none; padding: 0; margin: 0; }
.recipe-origin-list li { padding: .2rem 0; }
.recipe-origin-list a {
  font-size: .88rem;
  color: var(--ink,#111827);
  text-decoration: none;
  transition: color .12s;
}
.recipe-origin-list a:hover { color: #24712A; text-decoration: underline; }

/* ── SEO section (light, de-emphasised) ── */
.content-seo { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.content-seo h2 { font-size: 1.25rem; color: var(--ink,#111827); }
.content-seo a { color: #24712A; }

/* ── Footer override for content pages ── */
.app-footer a { color: var(--ink-2,#4b5563); text-decoration: none; }
.app-footer a:hover { color: #24712A; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .content-hero { padding: 2.5rem 1rem 2rem; }
  .plan-meta-chips { gap: .4rem; }
  .plan-chip { font-size: .78rem; padding: .25rem .65rem; }
  .shopping-grid { grid-template-columns: 1fr 1fr; }
  .content-cards-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
