/* ============================================================
   nynke-overrides.css — regels die CrocoBuilder beta.19 niet aankan
   (id-selectoren en html[attribute]-selectors worden weggesanitizeerd).
   Alle blokken hieronder zijn 1-op-1 overgenomen uit css/style.css van de
   bronrepository; alleen de sticky-fix is conversie-specifiek.
   ============================================================ */

/* Conversie-workaround: id-selectoren uit css/style.css */
#autisme .container-narrow,
#lezingen .container-narrow { max-width: 1120px; }

/* Sticky-fix: de builder wint de header-locatie in een eigen wrapper
   (#crocoblocks-theme-builder-header). sticky op .site-header zelf heeft daarbinnen
   geen scrollruimte; de wrapper plakt daarom als geheel (met de notice-bar bovenaan). */
#crocoblocks-theme-builder-header { position: sticky; top: 0; z-index: 60; }

/* Donker thema, 1-op-1 uit css/style.css (html[data-theme="dark"]); default is licht via :root */
html[data-theme="dark"] {
  --bg: #171224; --bg-alt: #1f1830; --bg-card: #241b38; --bg-accent: #7c5cbf;
  --text: #ece5f7; --text-soft: #b3a8cc; --text-on-accent: #ffffff;
  --primary: #a98fe8; --primary-deep: #c4b0f2; --primary-soft: #2e2450;
  --gold: #e0b96a; --link: #b79bf0; --link-visited: #9a7ce0; --border: #352a52;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35); --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .notice-bar { color: #171224; }
html[data-theme="dark"] .wave { stroke: #a98fe8; }

/* theme-toggle, 1-op-1 uit css/style.css */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text);
  cursor: pointer; flex: none;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
.theme-toggle:hover { transform: rotate(15deg); border-color: var(--primary); }
.theme-toggle svg { width: 19px; height: 19px; }
html[data-theme="light"] .icon-moon { display: block; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }

/* Scroll-reveal, 1-op-1 uit css/style.css */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Klikbare foto's + zoom-hover, 1-op-1 uit css/style.css */
.img-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; font: inherit; color: inherit; }
.img-btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.img-btn .img-zoom {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(23, 18, 36, 0.38); opacity: 0; transition: opacity 0.25s var(--ease); pointer-events: none;
}
.img-btn .img-zoom svg {
  width: 52px; height: 52px; padding: 13px; box-sizing: border-box;
  color: #fff; background: rgba(23, 18, 36, 0.65); border-radius: 50%;
}
.img-btn:hover .img-zoom,
.img-btn:focus-visible .img-zoom { opacity: 1; }
.card .img-btn { width: calc(100% + 60px); margin: -34px -30px 22px; }
.card .img-btn .card-img { margin: 0; }
.about-figure .img-zoom { border-radius: 50%; }
@media (max-width: 760px) {
  .card .img-btn { width: calc(100% + 44px); margin: -26px -22px 18px; }
}

/* Lightbox, 1-op-1 uit css/style.css */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(15, 11, 26, 0.93); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 24px;
}
.lightbox.open { display: flex; animation: lbfade 0.25s var(--ease); }
@keyframes lbfade { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { margin: 0; max-width: min(1100px, 90vw); text-align: center; }
.lb-img {
  max-width: 100%; max-height: 76vh; width: auto; height: auto; margin: 0 auto; border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); animation: lbzoom 0.3s var(--ease);
}
@keyframes lbzoom { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lb-caption { color: #d9cfee; margin-top: 14px; font-size: 0.95rem; }
.lb-counter { position: absolute; top: 24px; left: 26px; color: #cfc3e8; font-size: 0.9rem; margin: 0; }
.lb-btn {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #fff;
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-share {
  bottom: 22px; left: 50%; transform: translateX(-50%);
  width: auto; height: 46px; padding: 0 20px; gap: 9px;
  font-size: 0.92rem; font-weight: 600; font-family: var(--font-body);
}
@media (max-width: 600px) {
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lb-img { max-height: 68vh; }
}

/* Toast (deel-melding), 1-op-1 uit css/style.css */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: var(--bg-card); color: var(--text); border: 1px solid var(--border);
  padding: 11px 22px; border-radius: 999px; box-shadow: var(--shadow-lg); z-index: 300;
  font-size: 0.9rem; opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  max-width: 90vw; text-align: center; word-break: break-all;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* fix: img binnen img-btn vult de knop (1-op-1) */
.card .img-btn .card-img { margin: 0; width: 100%; }
.poster .img-btn { width: 300px; max-width: 100%; }
.poster .img-btn img { width: 100%; }
@media (max-width: 760px) {
  .poster .img-btn { width: 260px; }
}

/* prefers-reduced-motion reveal-regels (rest staat al in de builder-compile) */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}