/* =========================
   BBQSidekick — Recipe (single-recipe)
   Clean + wireframe-aligned (cards.css consistent)
   Accent: #FF5500
   ========================= */

/* Layout: full-width page area, centered content block */
body.single-recipe #primary,
body.single-recipe .content-area,
body.single-recipe main.bbq-recipe {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

body.single-recipe .bbq-recipe__article {
  width: 100% !important;
  max-width: 1200px !important; /* pas aan: 1100–1300 */
  margin: 0 auto !important;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Title */
.bbq-recipe__title {
  margin: 0 0 12px;
  line-height: 1.15;
  text-align: center !important;
  width: 100% !important;
}

.bbq-recipe__header .bbq-author-line {
  text-align: center !important;
  width: 100% !important;
}

/* Summary (fallback) */
.bbq-recipe__summary {
  margin: 0 0 16px;
  font-size: 1.05rem;
  opacity: 0.9;
}

/* =========================
   Top layout (intro + hero)
   ========================= */
.bbq-recipe__top {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 24px;
  align-items: start;
  margin: 12px 0 16px;
}

.bbq-recipe__intro {
  min-width: 0;
}

/* Hero: strak als cards (geen radius, cover) */
.bbq-recipe__hero {
  margin: 0;
}
.bbq-recipe__hero-img {
  width: 100%;
  aspect-ratio: 3 / 2; /* gelijk aan cards.css */
  object-fit: cover;
  display: block;
  border-radius: 0;
  background: #000; /* “witte flits” voorkomen */
}

/* Mobile: stack */
@media (max-width: 900px) {
  .bbq-recipe__top {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Meta block: 2 rijen (logische volgorde)
   Row 1: moeilijkheid, kosten, porties
   Row 2: voorbereiding, bereiding, totaal
   ========================= */
/* Maak de onderdelen blokken zodat text-align altijd pakt */
.bbq-recipe__meta-icon,
.bbq-recipe__meta-label,
.bbq-recipe__meta-value {
  display: block;
  width: 100%;
}

.bbq-recipe__meta {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 12px;
  background: #f6f6f6;
  padding: 16px 16px;
  border-radius: 0; /* strak zoals cards */
  margin: 0px;
  margin-bottom: 20px;
  justify-items: center;
}

.bbq-recipe__meta-icon {
  font-size: 25px;
  line-height: 1;
  margin-bottom: 4px;
}

/* 2 expliciete rijen */
.bbq-recipe__meta-row {
  width: 100% !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  justify-content: stretch !important;
  justify-items: stretch !important;
}

/* (optioneel) iets meer lucht tussen rij 1 en rij 2 */
.bbq-recipe__meta-row + .bbq-recipe__meta-row {
  margin-top: 12px;
}

.bbq-recipe__meta-item {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  align-items: center; /* centreer alles horizontaal */
  justify-content: center; /* verticaal centreren */
  text-align: center;

  background: #fff;
  padding: 10px 12px;
  border-radius: 0; /* strak */
}

.bbq-recipe__meta-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.bbq-recipe__meta-value {
  font-weight: 800;
}

/* =========================
   Sections rhythm
   ========================= */
.bbq-recipe__section {
  margin: 0 0 44px;
}

.bbq-recipe__section h2 {
  margin: 0 0 16px;
}

/* =========================
   Ingredients: groups + columns
   - strak (geen radius)
   - accent #FF5500
   - max 5 items per kolom, daarna nieuwe kolom
   - items max 1/3 breedte
   ========================= */
/* UL blijft een echte lijst */
.bbq-recipe__ingredients {
  list-style: none; /* we gebruiken geen bullets */
  padding: 0;
  margin: 0;
}

/* LI = strakke “list-card” */
.bbq-recipe__ingredient {
  display: block;
  width: 100%;

  padding: 10px 12px 10px 14px;
  margin: 0 0 8px;

  background: #fff;
  border-left: 4px solid var(--color-primary); /* juiste accentkleur */
  border-radius: 0; /* strak, consistent met rest site */

  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04); /* heel subtiel, geen tegelgevoel */

  line-height: 1.4;

  /* tekst netjes op 1 regel, maar mag wrappen als het moet */
  white-space: normal;
}

/* optioneel: hover subtiel */
.bbq-recipe__ingredient:hover {
  background: #fafafa;
}

/* FORCE ingredients columns layout */
body.single-recipe .bbq-recipe__ingredients-cols {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
}

body.single-recipe .bbq-recipe__ingredients-cols > .bbq-recipe__ingredients {
  margin: 0 !important;
}

@media (max-width: 900px) {
  body.single-recipe .bbq-recipe__ingredients-cols {
    grid-template-columns: 1fr !important;
  }
}

/* Optioneel: als je liever wél wrap i.p.v. ellipsis, gebruik dit ipv de 3 regels hierboven:
.bbq-recipe__ingredient{
  white-space: normal;
  overflow: visible;
}
*/

/* =========================
   Steps: cards.css consistent
   - strak (geen radius)
   - nummers #FF5500
   ========================= */
.bbq-recipe__steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.bbq-recipe__step {
  position: relative;
  padding: 16px 16px 16px 56px;
  margin: 0 0 16px;
  background: #fff;
  border-radius: 0; /* strak */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.bbq-recipe__step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  color: var(--color-primary);
}

.bbq-recipe__step-title {
  display: block;
  margin: 0 0 8px;
}

.bbq-recipe__step-text {
  line-height: 1.55;
}

/* Tips block (strak) */
.bbq-recipe__tips {
  background: transparent;
  padding: 16px;
  border-radius: 0;
}

/* CTA button (strak) */
.bbq-recipe__cta {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 0;
  text-decoration: none;
  font-weight: 800;
  background: var(--color-dark-cta);
  color: var(--color-text-white);
}

.bbq-recipe__cta:hover {
  opacity: 0.92;
}

/* =========================
   Safety overrides (parent theme)
   ========================= */
body.single-recipe .bbq-recipe__top {
  display: grid !important;
}

body.single-recipe .bbq-recipe__top > * {
  float: none !important;
}

/* =========================
   Tools/CTA block (cards.css consistent)
   ========================= */

.bbq-recipe__tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.bbq-tool-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border-left: 4px solid var(--color-primary);
}

.bbq-tool-card__body {
  padding: 2px 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr 1fr auto;
  gap: 2px;
  align-items: start;
}

.bbq-tool-card__title {
  margin: 0;
  line-height: 1.2;
  font-size: 14px;
  font-weight: 800;
  grid-column: 1;
  grid-row: 1;
}

.bbq-tool-card__why {
  margin: 0;
  opacity: 0.85;
  font-size: 12px;
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 16px;
}

.bbq-tool-card__cta {
  display: inline-block;
  text-decoration: none;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 0;
  background: var(--color-primary);
  color: var(--color-text-white);
  text-align: center;
  font-size: 0.9rem;
  grid-column: 2;
  grid-row: 1 / 4;
  white-space: nowrap;
  margin: 10px 0px 0px 0px;
  align-self: start;
}

.bbq-tool-card__cta:hover {
  opacity: 0.92;
}

.bbq-tool-card__disclaimer {
  opacity: 0.65;
  font-size: 11px;
  grid-column: 2;
  grid-row: 3;
  margin: -10px 0px 0px 0px;
  text-align: center;
}

/* ===== Mobile Meta Fix ===== */
@media (max-width: 640px) {
  .bbq-recipe__meta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  /* Meta cards moeten hun content kunnen begrenzen */
  .bbq-recipe__meta-item {
    min-width: 0; /* cruciaal voor overflow in flex/grid */
    padding: 10px 8px; /* iets compacter */
    overflow: hidden; /* houdt alles binnen het vakje */
  }

  /* Label kleiner en mag breken */
  .bbq-recipe__meta-label {
    font-size: 8px;
    line-height: 1.1;
    max-width: 100%;
    white-space: normal; /* label mag wrappen */
    text-align: center;
  }

  /* Icon voor mobile een stuk kleiner maken */
  .bbq-recipe__meta-icon {
    font-size: 18px;
    line-height: 1;
    margin-bottom: 4px;
  }

  /* Value op 1 regel, maar binnen vakje (ellipsis) */
  .bbq-recipe__meta-value {
    font-size: 10px;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis; /* als het te lang is, netjes afkappen */
    text-align: center;
  }

  /* Iconen iets kleiner */
  .bbq-recipe__meta-item svg,
  .bbq-recipe__meta-item i {
    width: 14px;
    height: 14px;
    font-size: 14px;
  }
}
