/* Landingspagina (homepage). Mobile-first vanaf 360 px; vanaf 900 px een brede opmaak met de
   hero in twee kolommen. Alleen merkkleuren uit tokens.css, zodat licht en donker vanzelf werken. */

.shell-landing { max-width: 1120px; }

.landing {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 8px 16px 16px;
}

/* --- Hero ----------------------------------------------------------------------------------- */
.hero { display: flex; flex-direction: column; gap: 28px; }
.hero-text { display: flex; flex-direction: column; gap: 14px; }

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero-title {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: clamp(34px, 10vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--primary);
  text-wrap: balance;
}
html[data-theme="dark"] .hero-title { color: var(--text); }
.hero-accent { color: var(--accent); }
.hero-intro {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 34em;
}
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.btn-hero { min-height: 52px; font-size: 16px; border-radius: 14px; }
.btn-small { min-height: 40px; font-size: 14px; }
.hero-note { margin: 0; font-size: 13px; color: var(--text-muted); text-align: center; }

/* Je boeken op de homepage (keuze Peter 1 dec 2026, voorstel B): een kop met rechts
   "Mijn boeken ›", daaronder de kaart Verder schrijven. Klaar voor een tweede sectie later. */
.home-shelf { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.shelf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px; }
.shelf-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.shelf-all {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 40px; /* ruim tikvlak zonder extra lucht in de kop */
  margin: -10px -6px -10px 0;
  padding: 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.shelf-all:hover { text-decoration: underline; text-underline-offset: 3px; }

.continue {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-height: 64px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--text);
  text-decoration: none;
}
.continue:hover { background: var(--accent-soft); }
.continue-mark {
  flex: 0 0 auto;
  width: 30px;
  height: 40px;
  border-radius: 4px 10px 4px 4px;
  background: linear-gradient(225deg, var(--accent) 0 9px, var(--primary) 9px);
}
.continue-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-story);
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.continue-meta { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* Voorbeeldbladzijde: een gestileerde versie van de echte lees- en stuurpagina */
.hero-visual { margin: 0; position: relative; padding: 0 6px 6px 0; }
.hero-visual::before {
  /* een tweede bladzijde erachter: je bladert door een boek */
  content: "";
  position: absolute;
  inset: 10px 0 0 10px;
  border-radius: 22px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  transform: rotate(2.2deg);
}
.mock {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px 16px 18px;
  box-shadow: 0 18px 40px rgba(16, 19, 23, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mock-top { display: flex; justify-content: space-between; align-items: center; }
.mock-counter {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 4px 10px;
}
.mock-tools { display: flex; gap: 6px; font-size: 12px; font-weight: 700; color: var(--text-muted); }
.mock-tools span { border: 1px solid var(--border); border-radius: 8px; padding: 3px 7px; }
.mock-chapter { margin: 2px 0 0; font-size: 13px; font-weight: 700; color: var(--accent); }
.mock-prose {
  margin: 0;
  font-family: var(--font-story);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}
.mock-question { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.mock-plots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mock-plots li {
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.mock-plots li.is-picked {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}
.mock-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-chips span {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.mock-chips span.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mock-next {
  margin-top: 2px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
}

/* --- Secties -------------------------------------------------------------------------------- */
.section { display: flex; flex-direction: column; gap: 12px; }
.section-title {
  margin: 0;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
}
.section-intro { margin: -4px 0 4px; font-size: 15px; color: var(--text-muted); max-width: 40em; }
.landing .home-head { margin-bottom: 0; }
.landing .book-list + .small { margin: 0; }

/* Zo werkt het */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.step { display: flex; gap: 14px; padding: 10px 0; }
.step-num {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 17px;
  background: var(--primary);
  color: var(--on-primary);
}
.step:last-child .step-num { background: var(--accent); color: var(--on-accent); }
.step-body { display: flex; flex-direction: column; gap: 2px; }
.step-title { font-size: 16px; font-weight: 700; }
.step-text { font-size: 15px; color: var(--text-muted); }

/* Sturen: vier tegels */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.tile-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile-title { font-size: 15px; font-weight: 700; }
.tile-text { font-size: 13px; line-height: 1.4; color: var(--text-muted); }

/* Leeftijden: zes zachte vakjes, van licht naar diep */
.ages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.age {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.age-range { font-family: var(--font-brand); font-weight: 800; font-size: 20px; color: var(--primary); }
.age-name { font-size: 12px; line-height: 1.25; color: var(--text-muted); overflow-wrap: anywhere; }
.age-1, .age-2, .age-3 { background: var(--accent-soft); border-color: transparent; }
.age-1 .age-range, .age-2 .age-range, .age-3 .age-range { color: var(--accent); }
.age-4, .age-5, .age-6 { background: var(--primary-soft); border-color: transparent; }

/* Bibliotheek: genrefilter en een rij typografische kaften (horizontaal scrollen) */
.filter-row,
.covers {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 0 16px;
  scroll-padding: 0 16px;
}
.filter-row::-webkit-scrollbar, .covers::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; min-height: 40px; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.row-title { margin: 0; font-size: 17px; font-weight: 700; }
.row-link { font-size: 14px; font-weight: 600; color: var(--primary); cursor: default; }
.covers { list-style: none; gap: 12px; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.cover-item { flex: 0 0 138px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 6px 14px 14px 6px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #F4EFE6;
  overflow: hidden;
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, 0.14), 0 8px 18px rgba(16, 19, 23, 0.14);
}
.cover-top { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding-right: 18px; }
.cover-holiday {
  /* feestdag-stempel (Peter, 6 dec 2026) */
  font-size: 10px; font-weight: 800; line-height: 1.5; padding: 0 7px; border-radius: 999px;
  background: rgba(255, 253, 249, 0.92); color: #8A2F17; white-space: nowrap;
}
.cover-genre { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.cover-title {
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.cover-mark {
  /* de omgevouwen hoek uit het logo */
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(225deg, var(--bg) 0 50%, rgba(0, 0, 0, 0.22) 50%);
}
.cover-mysterie { background: #1E5666; }
.cover-fantasy { background: #6B4E71; }
.cover-thriller { background: #23272E; }
.cover-avontuur { background: #B85D3B; }
.cover-scifi { background: #2F4858; }
.cover-romantiek { background: #9C4F5B; }
.cover-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text-muted); }
.cover-stars { color: var(--accent); font-weight: 700; }
.cover-age { font-weight: 700; border: 1px solid var(--border); border-radius: 6px; padding: 0 5px; }

/* Slot */
.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 32px 20px;
  border-radius: 24px;
  background: var(--surface-alt);
}
.closing-mark { height: 48px; width: auto; }
.closing-mark.mark-dark { display: none; }
html[data-theme="dark"] .closing-mark.mark-light { display: none; }
html[data-theme="dark"] .closing-mark.mark-dark { display: block; }
.closing-title {
  margin: 4px 0 0;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.15;
  text-wrap: balance;
}
.closing-text { margin: 0 0 6px; color: var(--text-muted); font-size: 15px; }
.closing .btn-hero { width: 100%; max-width: 320px; }

/* Startpagina voor ingelogde gebruikers (testronde 1 dec 2026, punt 1): je boeken, een nieuw boek
   en Ontdek; geen uitleg. */
.home-top { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.landing-home { gap: 32px; }

/* Voet */
.shell-landing .footer {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 24px 16px 32px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}
.footer-tagline { margin: 0; font-family: var(--font-brand); font-weight: 800; font-size: 16px; color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.footer-links a { min-height: 40px; display: inline-flex; align-items: center; color: var(--text-muted); cursor: default; }
.footer-row { display: flex; justify-content: space-between; align-items: center; }
.footer-row .link-btn { margin-right: -8px; }

/* --- Breder scherm -------------------------------------------------------------------------- */
@media (min-width: 560px) {
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { width: auto; padding: 0 24px; }
  .hero-note { text-align: left; }
  .home-top .btn-hero { align-self: flex-start; padding: 0 24px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .ages { grid-template-columns: repeat(6, 1fr); }
  .steps { flex-direction: row; gap: 20px; }
  .step { flex: 1; flex-direction: column; gap: 10px; }
}

@media (min-width: 900px) {
  .landing { gap: 64px; padding: 24px 24px 24px; }
  .hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
    min-height: 520px;
  }
  .hero-intro { font-size: 19px; }
  .hero-visual { max-width: 440px; justify-self: end; transform: rotate(-1.2deg); }
  .section-title { font-size: 32px; }
  .filter-row, .covers { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; }
  .covers { flex-wrap: nowrap; }
  /* Vaste boekmaat, ook met maar 1 of 2 boeken in een rij (Peter, 1 dec 2026: "beetje groot") */
  .cover-item { flex: 0 1 160px; min-width: 120px; }
  .closing { padding: 56px 24px; }
  .closing-title { font-size: 36px; }
  .shell-landing .footer { padding: 28px 24px 40px; }
}

@media (prefers-reduced-motion: no-preference) {
  .tile, .cover { transition: transform 0.2s ease; }
}
