/* ================================================================
   Lisette Recipes – recipes.css
   ================================================================ */

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
  --lr-green:        #2c7a4b;
  --lr-green-light:  #e8f5e9;
  --lr-green-mid:    #4caf7d;
  --lr-text:         #2d2d2d;
  --lr-muted:        #777;
  --lr-border:       #e8e8e8;
  --lr-bg:           #fafaf8;
  --lr-white:        #ffffff;
  --lr-radius:       12px;
  --lr-shadow:       0 2px 16px rgba(0,0,0,.07);
  --lr-shadow-hover: 0 8px 32px rgba(0,0,0,.13);
  --lr-font:         inherit;
}

/* ================================================================
   RECIPE CARD GRID
   ================================================================ */
.lr-grid {
  display: grid;
  gap: 28px;
  margin: 32px 0;
}
.lr-cols-1 { grid-template-columns: 1fr; }
.lr-cols-2 { grid-template-columns: repeat(2, 1fr); }
.lr-cols-3 { grid-template-columns: repeat(3, 1fr); }
.lr-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .lr-cols-3,
  .lr-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .lr-cols-2,
  .lr-cols-3,
  .lr-cols-4 { grid-template-columns: 1fr; }
}

/* ── Single card ─────────────────────────────────────────────── */
.lr-card {
  background: var(--lr-white);
  border-radius: var(--lr-radius);
  overflow: hidden;
  box-shadow: var(--lr-shadow);
  transition: transform .22s ease, box-shadow .22s ease;
  display: flex;
  flex-direction: column;
}
.lr-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lr-shadow-hover);
}

/* image */
.lr-card__img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f0ece4;
}
.lr-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.lr-card:hover .lr-card__img { transform: scale(1.04); }
.lr-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: #f5f0e8;
}

/* difficulty badge */
.lr-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.lr-badge--makkelijk  { background: rgba(76,175,125,.85); color: #fff; }
.lr-badge--gemiddeld  { background: rgba(255,167,38,.85);  color: #fff; }
.lr-badge--moeilijk   { background: rgba(239,83,80,.85);   color: #fff; }

/* body */
.lr-card__body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* category tags */
.lr-card__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.lr-cat-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--lr-green);
  background: var(--lr-green-light);
  padding: 2px 8px;
  border-radius: 20px;
  text-decoration: none;
  transition: background .2s;
}
.lr-cat-tag:hover { background: #c8e6c9; }
.lr-cat-tag--light {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.4);
}
.lr-cat-tag--light:hover { background: rgba(255,255,255,.35); }

/* title */
.lr-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  flex: 1;
}
.lr-card__title a {
  color: var(--lr-text);
  text-decoration: none;
  transition: color .2s;
}
.lr-card__title a:hover { color: var(--lr-green); }

/* excerpt */
.lr-card__excerpt {
  font-size: 13px;
  color: var(--lr-muted);
  line-height: 1.5;
  margin: 0;
}

/* meta row */
.lr-card__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--lr-border);
}
.lr-meta-item {
  font-size: 12px;
  color: var(--lr-muted);
}

/* ── No results ──────────────────────────────────────────────── */
.lr-no-results {
  text-align: center;
  color: var(--lr-muted);
  padding: 40px 0;
  font-size: 15px;
}

/* ================================================================
   CATEGORY TABS
   ================================================================ */
.lr-tabs-wrap { margin: 24px 0; }
.lr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--lr-border);
  padding-bottom: 0;
}
.lr-tab {
  background: none;
  border: none;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lr-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  border-radius: 0;
  transition: color .2s, border-color .2s;
}
.lr-tab:hover  { color: var(--lr-green); }
.lr-tab.active { color: var(--lr-green); border-bottom-color: var(--lr-green); }

.lr-tab-panel          { display: none; }
.lr-tab-panel.active   { display: block; }

/* ================================================================
   ARCHIVE PAGE
   ================================================================ */
.lr-archive-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.lr-archive-header { text-align: center; margin-bottom: 36px; }
.lr-archive-title  { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.lr-archive-desc   { font-size: 15px; color: var(--lr-muted); max-width: 500px; margin: 0 auto 20px; }

/* category nav */
.lr-cat-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.lr-cat-nav__link {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lr-text);
  background: var(--lr-bg);
  border: 1.5px solid var(--lr-border);
  text-decoration: none;
  transition: all .2s;
}
.lr-cat-nav__link:hover,
.lr-cat-nav__link.active {
  background: var(--lr-green);
  color: #fff;
  border-color: var(--lr-green);
}

/* ================================================================
   SINGLE RECIPE PAGE
   ================================================================ */
.lr-single-wrap { max-width: 900px; margin: 0 auto; padding-bottom: 60px; }

/* ── Hero ──────────────────────────────────────────────────────── */
.lr-hero {
  position: relative;
  border-radius: 0 0 var(--lr-radius) var(--lr-radius);
  overflow: hidden;
  margin-bottom: 32px;
  max-height: 420px;
}
.lr-hero__img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.lr-hero__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 32px 24px;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 100%);
}
.lr-hero__cats  { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.lr-hero__title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.lr-hero__date  { font-size: 13px; color: rgba(255,255,255,.75); margin: 0; }

/* ── Info bar ──────────────────────────────────────────────────── */
.lr-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--lr-white);
  border-radius: var(--lr-radius);
  box-shadow: var(--lr-shadow);
  overflow: hidden;
  margin: 0 20px 32px;
}
.lr-info-item {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 18px 12px;
  border-right: 1px solid var(--lr-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.lr-info-item:last-child { border-right: none; }
.lr-info-icon  { font-size: 20px; }
.lr-info-label { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--lr-muted); font-weight: 600; }
.lr-info-value { font-size: 14px; font-weight: 700; color: var(--lr-text); }

@media (max-width: 600px) {
  .lr-info-bar { flex-wrap: wrap; }
  .lr-info-item { min-width: 33%; border-bottom: 1px solid var(--lr-border); }
}

/* ── Intro ─────────────────────────────────────────────────────── */
.lr-single-content { padding: 0 20px; }
.lr-intro {
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 32px;
  border-left: 3px solid var(--lr-green);
  padding-left: 16px;
}

/* ── 2-col recipe body ─────────────────────────────────────────── */
.lr-recipe-body {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 32px;
  margin-bottom: 36px;
  align-items: start;
}
@media (max-width: 680px) {
  .lr-recipe-body { grid-template-columns: 1fr; }
}

.lr-col-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--lr-green);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--lr-green-light);
}

/* ── Ingredients ───────────────────────────────────────────────── */
.lr-ingredients-col {
  background: var(--lr-bg);
  border-radius: var(--lr-radius);
  padding: 20px 20px 24px;
  border: 1px solid var(--lr-border);
}
.lr-ingredients-list { display: flex; flex-direction: column; gap: 4px; }
.lr-ingredients-section {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--lr-green);
  margin: 12px 0 4px;
}
.lr-ingredient-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--lr-border);
  cursor: pointer;
  font-size: 14px;
  color: var(--lr-text);
  line-height: 1.4;
  transition: color .2s;
}
.lr-ingredient-row:last-child { border-bottom: none; }
.lr-ingredient-check { accent-color: var(--lr-green); width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; }
.lr-ingredient-row input:checked + span {
  text-decoration: line-through;
  color: #aaa;
}

/* ── Steps ─────────────────────────────────────────────────────── */
.lr-steps-col { }
.lr-steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lr-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.lr-step__num {
  width: 32px;
  height: 32px;
  background: var(--lr-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}
.lr-step__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--lr-text);
  margin: 0;
  padding-top: 4px;
}

/* ── Post content ──────────────────────────────────────────────── */
.lr-post-content {
  font-size: 15px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 32px;
}

/* ── Notes ─────────────────────────────────────────────────────── */
.lr-notes-box {
  background: #fffde7;
  border: 1px solid #fff9c4;
  border-left: 4px solid #f9a825;
  border-radius: var(--lr-radius);
  padding: 18px 22px;
  margin-bottom: 32px;
}
.lr-notes-box h3 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: #f57f17;
  margin: 0 0 10px;
}
.lr-notes-box p { font-size: 14px; line-height: 1.65; color: #555; margin: 0 0 8px; }

/* ── Gallery ───────────────────────────────────────────────────── */
.lr-gallery { margin-bottom: 32px; }
.lr-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.lr-gallery-item {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
}
.lr-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.lr-gallery-item:hover .lr-gallery-img { transform: scale(1.06); }

/* ================================================================
   RELATED POSTS — "YOU MIGHT ALSO LIKE"
   (fixes Lisette's original issue: smaller, inline, clean)
   ================================================================ */
.related-posts,
[class*="related-post"],
.yarpp-related,
.jp-relatedposts {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--lr-border);
}

/* Section heading */
.related-posts h3,
.yarpp-related h3,
.jp-relatedposts p.jp-relatedposts-headline,
[class*="related"] .section-title,
.related-posts-title {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  color: var(--lr-muted) !important;
  margin-bottom: 14px !important;
}

/* List rows */
.related-posts ul,
.yarpp-related ol,
[class*="related-post"] ul { list-style: none; margin: 0; padding: 0; }

.related-posts ul li,
.yarpp-related ol li,
[class*="related-post"] li {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 9px 0 !important;
  border-bottom: 1px solid var(--lr-border) !important;
  gap: 16px !important;
}

/* Post title */
.related-posts ul li a,
.yarpp-related ol li a,
[class*="related-post"] li a {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--lr-text) !important;
  text-decoration: none !important;
  flex: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.4 !important;
  transition: color .2s !important;
}
.related-posts ul li a:hover,
.yarpp-related ol li a:hover { color: var(--lr-green) !important; }

/* Date */
.related-posts .post-date,
[class*="related"] .date,
[class*="related"] time,
.related-posts ul li .entry-date {
  font-size: 11px !important;
  color: var(--lr-muted) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* ================================================================
   PRINT BUTTON
   ================================================================ */
.lr-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--lr-border);
  border-radius: 20px;
  padding: 7px 18px;
  font-size: 13px;
  color: var(--lr-muted);
  cursor: pointer;
  margin: 0 20px 28px;
  transition: border-color .2s, color .2s;
}
.lr-print-btn:hover {
  border-color: var(--lr-green);
  color: var(--lr-green);
}

/* ================================================================
   STICKY TOP BAR (appears after scrolling past hero)
   ================================================================ */
.lr-sticky-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--lr-white);
  border-bottom: 1px solid var(--lr-border);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 24px;
  transform: translateY(-100%);
  transition: transform .28s ease;
}
.lr-sticky-bar--visible { transform: translateY(0); }

.lr-sticky-bar__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--lr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.lr-sticky-bar__meta {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.lr-sticky-bar__meta span {
  font-size: 12px;
  color: var(--lr-muted);
}

/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {
  .lr-sticky-bar,
  .lr-print-btn,
  .lr-tabs,
  header, footer,
  nav { display: none !important; }

  .lr-hero__overlay { position: static; background: none; }
  .lr-hero__title   { color: #000; font-size: 22px; }
  .lr-info-bar      { box-shadow: none; border: 1px solid #ddd; }
  .lr-recipe-body   { grid-template-columns: 1fr 1.5fr; }
  .lr-card__img     { max-height: 180px; }
  .lr-gallery-grid  { grid-template-columns: repeat(4, 1fr); }
  a                 { color: inherit; text-decoration: none; }
}
