/* ═══════════════════════════════════════════════════════════════════════════
   PRINT STYLESHEET — Recepten 2.0
   Geladen via media="print" in de app (geen effect op schermweergave).
   In de print-preview pagina geladen zonder media-attribuut → stijlen
   gelden direct op scherm zodat je live kunt aanpassen.
   ═══════════════════════════════════════════════════════════════════════════ */

@page { margin: 1cm 1.2cm; }

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  color: #1a1a1a;
  line-height: 1.5;
  background: #e8e8e8;
}

/* ── A4-vel ──────────────────────────────────────────────────────────────── */
.print-pagina {
  background: #fff;
  max-width: 21cm;
  margin: 1cm auto;
  padding: 1cm 1.2cm;
  box-shadow: 0 2px 30px rgba(0,0,0,.15);
}

@media print {
  body { background: #fff; }
  .print-pagina { box-shadow: none; margin: 0; max-width: none; padding: 0; }
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.detail-header {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1.5px solid #d0d0d0;
  align-items: flex-start;
}

.detail-foto {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.detail-info { flex: 1; }

.detail-naam {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  letter-spacing: -.02em;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.badge-type    { color: #7c3aed; border-color: #ddd6fe; background: #f5f3ff; }
.badge-categorie { color: #0369a1; border-color: #bae6fd; background: #f0f9ff; }
.badge-vegetarisch { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.badge-veganistisch { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.75rem;
  font-size: 0.82rem;
  color: #555;
  margin-bottom: 0.4rem;
}

.detail-bron {
  font-size: 0.78rem;
  color: #888;
  margin-top: 0.25rem;
}

/* ── Secties ─────────────────────────────────────────────────────────────── */
.sectie-header { margin-bottom: 0.6rem; }

.sectie-title {
  font-size: 1rem;
  font-weight: 700;
}

/* ── Ingrediënten ────────────────────────────────────────────────────────── */
.ingredienten-lijst {
  list-style: none;
  columns: 2;
  column-gap: 1.5rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.ingredienten-lijst li {
  padding: 0.18rem 0;
  border-bottom: 1px solid #f0f0f0;
  break-inside: avoid;
}

.ing-hoeveelheid {
  font-weight: 600;
  min-width: 3rem;
  display: inline-block;
}

.ing-detail {
  font-size: 0.8em;
  color: #888;
  margin-right: 0.2rem;
}

/* ── Onderdelen ──────────────────────────────────────────────────────────── */
.onderdeel-blok { margin-bottom: 0.75rem; }

.onderdeel-titel {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c8663a;
  margin-bottom: 0.25rem;
  margin-top: 0.5rem;
}

.onderdeel-stappen-blok {
  padding: 1rem 0;
  border-top: 1px solid #ebebeb;
}
.onderdeel-stappen-blok:first-child { border-top: none; padding-top: 0.5rem; }

.onderdeel-header { margin-bottom: 0.5rem; }

.onderdeel-ing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.onderdeel-ing-chip {
  font-size: 0.8rem;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  break-inside: avoid;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.onderdeel-ing-chip .ing-detail { font-size: 0.75em; }

/* ── Stappen ─────────────────────────────────────────────────────────────── */
.stap {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
  break-inside: avoid;
  font-size: 0.88rem;
  line-height: 1.55;
}

.stap-nummer {
  background: #1a1a1a;
  color: #fff;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.15rem;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.stap-foto {
  max-width: 200px;
  margin-top: 0.4rem;
  border-radius: 4px;
  display: block;
}

/* ── Notities ────────────────────────────────────────────────────────────── */
.notities-blok {
  margin-top: 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* ── Kaart wrapper (voor eventueel hergebruik) ───────────────────────────── */
.kaart-print {
  margin-bottom: 1.25rem;
}
