/* =====================================================================
   YV Clubinvestering — pagina-specifieke componenten
   Voorstel-scope. Bij akkoord vouwen deze regels in yvsport.css (sectie 8).
   Gebruikt uitsluitend bestaande design-tokens en het 120px/1140px-ritme.
   ===================================================================== */

/* ---- Specs-lijst ("Hoe het werkt" — term/omschrijving rijen) ---- */
.invest-specs {
  max-width: 760px;
  margin: 0 auto;
}
.invest-spec {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.invest-spec:last-child { border-bottom: 1px solid var(--border); }
.invest-spec__term {
  font-weight: 500;
  color: var(--ink);
  font-size: 15px;
}
.invest-spec__desc {
  color: var(--slate);
  font-size: 15.5px;
  line-height: 1.65;
}

/* ---- Intro met paragrafen (links uitgelijnd, smal) ---- */
.invest-prose {
  max-width: 720px;
}
.invest-prose p {
  color: var(--slate);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 20px;
}
.invest-prose p:last-child { margin-bottom: 0; }
.invest-prose strong { color: var(--ink); font-weight: 500; }
.section-dark .invest-prose p { color: var(--slate-warm); }
.section-dark .invest-prose strong { color: var(--white); }

/* ---- "Wat dit niet is" (hergebruik eligibility-stijl, eigen wrapper) ---- */
.invest-notlist {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.invest-not {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.section-cream .invest-not { background: var(--white); }
.invest-not__icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: var(--yv-green);
}
.invest-not__icon svg { width: 100%; height: 100%; }
.invest-not__text { color: var(--slate); font-size: 15.5px; line-height: 1.6; }
.invest-not__text strong { color: var(--ink); font-weight: 500; }

/* ---- Jouw-stem-CTA op donker ---- */
.invest-vote-cta {
  margin-top: 40px;
  text-align: center;
}
.invest-vote-cta__note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--slate-warm);
}

/* ---- Transparantie / contact callout ---- */
.invest-callout {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.invest-callout p {
  color: var(--slate);
  font-size: 16px;
  line-height: 1.7;
}
.invest-callout a { color: var(--yv-green-dark); text-decoration: underline; }

/* ---- Transparantierapport (CMS-vulbaar) ---- */
.invest-report {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 36px 24px;
}
.invest-report__year {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 500;
  color: var(--yv-green-dark);
  padding: 20px 0 4px;
  margin: 0;
}
.invest-report__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.invest-report__item { color: var(--ink); font-size: 15.5px; }
.invest-report__amount {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--yv-green-dark);
  font-size: 15.5px;
}

/* ---- Grote knop-variant ---- */
.btn-large { padding: 16px 36px; font-size: 15px; }

/* ---- Uitslag: doorgeschoven-status ---- */
.vote-result__defer {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
  padding-top: 4px;
}
.vote-result:has(.vote-result__defer) { background: var(--cream); }

/* =====================================================================
   STEMPAGINA
   ===================================================================== */

/* ---- Compact "Zo werkt het"-blok ---- */
.vote-howto {
  max-width: 720px;
  margin: 0 auto;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 36px 40px;
}
.vote-howto h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  color: var(--yv-green-dark);
  margin: 0 0 20px;
}
.vote-howto ol {
  counter-reset: vh;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.vote-howto li {
  counter-increment: vh;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: var(--slate);
  font-size: 15.5px;
  line-height: 1.55;
}
.vote-howto li::before {
  content: counter(vh);
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--yv-green);
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 500;
}
.vote-howto__note {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--slate);
}
.vote-howto__note strong { color: var(--ink); font-weight: 500; }

/* ---- Magic-link login ---- */
.vote-login {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.vote-login h2 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin: 0 0 20px;
  color: var(--ink);
}
.vote-login__lead {
  margin: -8px 0 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--slate);
}
.vote-login__field { display: flex; gap: 12px; }
.vote-login__field input[type="text"],
.vote-login__field input[type="email"] {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
}
.vote-login__field input:focus-visible {
  outline: 2px solid var(--yv-green);
  outline-offset: 1px;
  border-color: var(--yv-green);
}
.vote-login__footnote {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--slate);
}

/* ---- Stem-teller ---- */
.vote-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 8px;
  padding: 8px 16px;
  background: var(--yv-green-soft);
  color: var(--yv-green-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.vote-counter::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yv-green);
}

/* ---- Categorie-blok ---- */
.vote-category { margin-bottom: 64px; }
.vote-category:last-of-type { margin-bottom: 0; }
.vote-category__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.vote-category__icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--yv-green-soft);
  color: var(--yv-green-dark);
}
.vote-category__icon svg { width: 24px; height: 24px; }
.vote-category__head h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.3px;
  margin: 0;
  color: var(--ink);
}
.vote-category__intro {
  color: var(--slate);
  font-size: 15px;
  margin: 0 0 24px;
  padding-left: 60px;
}

/* ---- Stem-opties (selecteerbare cards) ---- */
.vote-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.vote-option {
  position: relative;
  display: block;
  cursor: pointer;
  padding: 22px 24px 22px 56px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.vote-option:hover { border-color: var(--yv-green-muted); }
.vote-option input {
  position: absolute;
  top: 24px;
  left: 22px;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--yv-green);
  cursor: pointer;
}
.vote-option__title {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.vote-option__text {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate);
}
.vote-option:has(input:checked) {
  border-color: var(--yv-green);
  background: var(--yv-green-soft);
  box-shadow: 0 0 0 1px var(--yv-green);
}
.vote-option:focus-within {
  outline: 2px solid var(--yv-green);
  outline-offset: 2px;
}

/* ---- Stem-versturen band ---- */
.vote-submit {
  text-align: center;
}
.vote-submit__note {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--slate);
}

/* ---- State 3: recap ---- */
.vote-recap {
  max-width: 620px;
  margin: 0 auto;
}
.vote-recap__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 500;
  color: var(--yv-green-dark);
  margin: 0 0 16px;
}
.vote-recap__list { display: grid; gap: 0; }
.vote-recap__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.vote-recap__item:last-child { border-bottom: 1px solid var(--border); }
.vote-recap__check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--yv-green);
}
.vote-recap__check svg { width: 100%; height: 100%; }
.vote-recap__cat { font-size: 14px; color: var(--slate); width: 180px; flex: 0 0 auto; }
.vote-recap__choice { font-size: 16px; font-weight: 500; color: var(--ink); }
.vote-recap__footnote {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--slate);
  text-align: center;
}
.vote-recap__footnote a { color: var(--yv-green-dark); text-decoration: underline; }

/* ---- State 4b: uitslag ---- */
.vote-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.vote-result {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
}
.vote-result__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.vote-result__icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 4px;
  background: var(--yv-green-soft);
  color: var(--yv-green-dark);
}
.vote-result__icon svg { width: 21px; height: 21px; }
.vote-result__cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  color: var(--slate);
}
.vote-result__winner {
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin: 0 0 8px;
}
.vote-result__delivery { font-size: 14px; color: var(--yv-green-dark); margin: 0; }
.vote-results__footnote {
  max-width: 760px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--slate);
}

/* ---- State 4a: status-acties ---- */
.vote-status {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.vote-status p { color: var(--slate); font-size: 16px; line-height: 1.7; }
.vote-status__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0 20px;
}
.vote-status__note { font-size: 13px; color: var(--slate-light); }

/* ---- Preview-banner (alleen in voorstel, niet in productie) ---- */
.preview-flag {
  background: #1F2A28;
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 10px 16px;
  font-family: -apple-system, system-ui, sans-serif;
}
.preview-flag strong { color: var(--yv-gold-on-dark); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 767px) {
  .invest-spec { grid-template-columns: 1fr; gap: 4px; }
  .vote-options { grid-template-columns: 1fr; }
  .vote-results { grid-template-columns: 1fr; }
  .vote-login { padding: 28px 22px; }
  .vote-login__field { flex-direction: column; }
  .vote-howto { padding: 28px 24px; }
  .vote-category__intro { padding-left: 0; }
  .vote-recap__item { flex-wrap: wrap; gap: 4px 16px; }
  .vote-recap__cat { width: auto; }
}

/* ── Honeypot (anti-spam, visueel verborgen maar wel verstuurbaar) ── */
.vote-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Flash-melding (stem-link aangevraagd / fout) ── */
.vote-flash {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.vote-flash--ok {
  background: rgba(0, 151, 117, 0.08);
  border-color: rgba(0, 151, 117, 0.25);
  color: var(--dark);
}
.vote-flash--error {
  background: rgba(193, 66, 66, 0.07);
  border-color: rgba(193, 66, 66, 0.3);
  color: #8f2f2f;
}

/* ── Uitslag: categorie "niet uitvoeren" (geannuleerd) ── */
.vote-result__skip {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
  padding-top: 4px;
  font-style: italic;
}
.vote-result:has(.vote-result__skip) { background: var(--cream); }
