/* ============================================================
   WALLAROE PRESENTATIONS — Shared chrome
   Vereist: wallaroe-theme.css geladen vóór dit bestand.
   Licht-first: slides = airy canvas, sidebar = navy band.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --sidebar-w: 260px;

  /* Interne aliases → Wallaroe tokens */
  --bg:          var(--wal-bg);
  --bg-2:        var(--wal-card);
  --fg:          var(--wal-text);
  --fg-dim:      var(--wal-text-2);
  --accent:      var(--wal-blue);
  --accent-2:    var(--wal-turquoise);
  --accent-grad: var(--wal-gradient);
  --border:      var(--wal-border);

  /* Dark sidebar — diepste blauw, tekst in slide-achtergrondkleur */
  --sidebar-bg:      var(--wal-ink-0);
  --sidebar-border:  rgba(245, 247, 252, 0.08);
  --sidebar-fg:      var(--wal-bg);
  --sidebar-fg-dim:  rgba(245, 247, 252, 0.48);
}

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

html, body {
  height: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--wal-font-body);
  overflow: hidden;
}

/* ── Icons ─────────────────────────────────────────────── */
.icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; fill: none; stroke: currentColor; flex-shrink: 0; }
.icon-lg { width: 1.4em; height: 1.4em; }
.icon-xl { width: 1.8em; height: 1.8em; }

/* ── Sidebar (navy) ─────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  padding: 32px 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--wal-track-label);
  text-transform: uppercase;
  color: var(--sidebar-fg-dim);
  padding: 0 24px 20px;
  border-bottom: 1px solid var(--sidebar-border);
  margin-bottom: 20px;
}

.chapter-list { list-style: none; flex: 1; overflow-y: auto; }

.chapter-list li {
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sidebar-fg-dim);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all var(--wal-dur) var(--wal-ease);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chapter-list li:hover {
  color: var(--sidebar-fg);
  background: rgba(245, 247, 252, 0.06);
}

.chapter-list li.active {
  color: var(--sidebar-fg);
  border-left-color: var(--wal-blue);
  background: rgba(245, 247, 252, 0.07);
}

.chapter-list li.active .chapter-num {
  color: var(--sidebar-fg);
}

.chapter-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--sidebar-fg-dim);
  min-width: 18px;
}

.logo {
  padding: 16px 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  border-top: 1px solid var(--sidebar-border);
}
.logo img { height: 32px; object-fit: contain; }

/* ── Main / slides ──────────────────────────────────────── */
.main {
  margin-left: var(--sidebar-w);
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
}

.counter {
  position: absolute;
  top: 24px; right: 32px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wal-text-3);
  background: var(--wal-card);
  padding: 6px 14px;
  border-radius: var(--wal-radius-pill);
  border: 1px solid var(--border);
  box-shadow: var(--wal-shadow-sm);
  z-index: 5;
}
.counter .current { color: var(--fg); }

.slides { height: 100%; width: 100%; position: relative; }

.slide {
  position: absolute;
  inset: 0;
  padding: 80px 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.45s var(--wal-ease), transform 0.45s var(--wal-ease);
  pointer-events: none;
  background: var(--bg);
}
.slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; }

.slide-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: var(--wal-track-label);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ── Typografie ─────────────────────────────────────────── */
h1 {
  font-family: var(--wal-font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: var(--wal-weight-heavy);
  line-height: 1.03;
  letter-spacing: var(--wal-track-display);
  margin-bottom: 24px;
  background: var(--wal-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-family: var(--wal-font-display);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: var(--wal-weight-heavy);
  line-height: 1.08;
  letter-spacing: var(--wal-track-tight);
  margin-bottom: 28px;
  color: var(--fg);
}

h3 {
  font-family: var(--wal-font-display);
  font-size: 26px;
  font-weight: var(--wal-weight-bold);
  margin-bottom: 14px;
  color: var(--fg);
}

p.lead {
  font-size: 20px;
  color: var(--fg-dim);
  line-height: 1.65;
  max-width: 800px;
}

/* ── Title slide ────────────────────────────────────────── */
.slide.title-slide { align-items: flex-start; }

.title-slide .meta {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  color: var(--wal-text-3);
  font-size: 16px;
  letter-spacing: var(--wal-track-wide);
  text-transform: uppercase;
}
.title-slide .meta span { display: flex; align-items: center; gap: 8px; }
.title-slide .meta .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }

.title-logo { margin-bottom: 48px; }
.title-logo img { width: 180px; object-fit: contain; }

/* ── Checklist ──────────────────────────────────────────── */
.checklist { list-style: none; margin-top: 24px; }
.checklist li {
  font-size: 22px;
  font-weight: 500;
  padding: 14px 0;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  color: var(--fg-dim);
  line-height: 1.4;
}
.checklist li:last-child { border-bottom: none; }
.check {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: white; font-weight: 800; font-size: 14px;
  margin-top: 2px;
}

/* ── Flow ───────────────────────────────────────────────── */
.flow { display: flex; flex-direction: column; gap: 0; margin-top: 32px; max-width: 700px; }
.flow-item { display: flex; align-items: center; gap: 20px; }
.flow-box {
  padding: 14px 24px;
  background: var(--wal-card);
  border: 1px solid var(--border);
  border-radius: var(--wal-radius-md);
  font-size: 20px;
  font-weight: 500;
  flex: 1;
  box-shadow: var(--wal-shadow-sm);
  color: var(--fg);
}
.flow-box.highlight {
  border-color: rgba(67, 104, 255, 0.45);
  color: var(--accent);
  background: var(--wal-tint-blue);
}
.flow-arrow { font-size: 22px; color: var(--accent); margin: 4px 0 4px 20px; }

/* ── Compare cards ──────────────────────────────────────── */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.compare-card {
  padding: 32px;
  border-radius: var(--wal-radius-md);
  border: 1px solid var(--border);
  background: var(--wal-card);
  box-shadow: var(--wal-shadow-sm);
}
.compare-card.bad  { background: rgba(239,68,68,.04);  border-color: rgba(239,68,68,.28); }
.compare-card.good { background: rgba(34,197,94,.04);  border-color: rgba(34,197,94,.28); }
.compare-label {
  font-size: 13px; font-weight: 700;
  letter-spacing: var(--wal-track-label);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.bad  .compare-label { color: #dc2626; }
.good .compare-label { color: #16a34a; }
.compare-text { font-size: 18px; line-height: 1.8; font-family: var(--wal-font-mono); color: var(--fg); }

/* ── Grid cards ─────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-top: 32px; }

.card {
  padding: 28px;
  background: var(--wal-card);
  border: 1px solid var(--wal-border);
  border-radius: var(--wal-radius-md);
  box-shadow: var(--wal-shadow-sm);
  transition: border-color var(--wal-dur) var(--wal-ease), box-shadow var(--wal-dur) var(--wal-ease), transform var(--wal-dur) var(--wal-ease);
}
.card:hover {
  border-color: rgba(67,104,255,.35);
  box-shadow: var(--wal-shadow-md);
  transform: translateY(-2px);
}
.card-num {
  font-size: 12px; font-weight: 700;
  color: var(--accent);
  letter-spacing: var(--wal-track-label);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p  { font-size: 15px; color: var(--fg-dim); line-height: 1.5; }

/* ── Code block ─────────────────────────────────────────── */
.code-block {
  background: var(--wal-bg-2);
  border: 1px solid var(--border);
  border-radius: var(--wal-radius-md);
  padding: 24px 28px;
  font-family: var(--wal-font-mono);
  font-size: 16px;
  color: var(--fg);
  line-height: 1.8;
  margin-top: 24px;
  white-space: pre;
  box-shadow: var(--wal-shadow-sm);
}
.code-block .hl { color: var(--accent); font-weight: 700; }

/* ── Steps ──────────────────────────────────────────────── */
.steps { list-style: none; margin-top: 24px; }
.steps li {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 20px;
}
.steps li:last-child { border-bottom: none; }
.step-num {
  min-width: 32px; height: 32px;
  border-radius: var(--wal-radius-sm);
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: white;
  flex-shrink: 0; margin-top: 2px;
}
.step-text { color: var(--fg-dim); line-height: 1.4; }

/* ── Big quote ──────────────────────────────────────────── */
.big-quote {
  font-size: 34px; font-weight: 700;
  line-height: 1.4; max-width: 800px;
  margin-top: 32px; color: var(--fg);
}
.big-quote span {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Insight boxes ──────────────────────────────────────── */
.insight-row { display: flex; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.insight-box {
  flex: 1; min-width: 160px;
  padding: 24px;
  border-radius: var(--wal-radius-md);
  background: var(--wal-tint-blue);
  border: 1px solid var(--wal-border-blue);
  text-align: center;
  box-shadow: var(--wal-shadow-sm);
}
.insight-box .label {
  font-size: 12px; font-weight: 700;
  letter-spacing: var(--wal-track-label);
  color: var(--accent);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.insight-box .value { font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--fg); }

/* ── Bullet list ────────────────────────────────────────── */
.bullets { list-style: none; margin-top: 24px; }
.bullets li {
  font-size: 20px; color: var(--fg-dim);
  padding: 10px 0;
  display: flex; align-items: flex-start; gap: 16px;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
.bullets li:last-child { border-bottom: none; }
.bullet-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0; margin-top: 8px;
}

/* ── Closing slide ──────────────────────────────────────── */
.slide.closing-slide { align-items: center; text-align: center; }

/* ── Nav buttons ────────────────────────────────────────── */
.nav {
  position: fixed;
  bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 18px));
  right: max(28px, calc(env(safe-area-inset-right, 0px) + 24px));
  display: flex; gap: 12px;
  z-index: 1200;
}
.nav button {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--wal-card);
  color: var(--fg);
  font-size: 20px;
  cursor: pointer;
  transition: all var(--wal-dur) var(--wal-ease);
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow: var(--wal-shadow-md);
}
.nav button:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--wal-shadow-lg);
  transform: scale(1.06);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --sidebar-w: 220px; }
  .sidebar { padding: 24px 0; }
  .sidebar-title { padding-inline: 20px; }
  .chapter-list li { padding: 11px 20px; font-size: 12px; }
  .slide { padding: 64px 72px 92px; }
  h1 { font-size: 50px; }
  h2 { font-size: 40px; }
  h3 { font-size: 24px; }
  p.lead { font-size: 18px; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .counter {
    top: max(14px, calc(env(safe-area-inset-top, 0px) + 10px));
    right: max(14px, calc(env(safe-area-inset-right, 0px) + 14px));
    font-size: 12px; padding: 5px 12px;
  }
  .slide {
    padding: max(54px, calc(env(safe-area-inset-top, 0px) + 48px)) 42px
      max(104px, calc(env(safe-area-inset-bottom, 0px) + 94px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  h1 { font-size: 42px; }
  h2 { font-size: 34px; }
  h3 { font-size: 22px; }
  p.lead { font-size: 16px; }
  .nav {
    bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 16px));
    right: max(20px, calc(env(safe-area-inset-right, 0px) + 18px));
  }
  .nav button {
    width: 56px; height: 56px;
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(26, 18, 53, 0.18);
  }
}

@media (max-width: 640px) {
  .slide {
    padding-inline: 22px;
    padding-bottom: max(104px, calc(env(safe-area-inset-bottom, 0px) + 92px));
  }
  .slide-tag { font-size: 10px; letter-spacing: 2px; margin-bottom: 14px; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  p.lead { font-size: 15px; }
  .compare, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .title-slide .meta { flex-wrap: wrap; gap: 14px; font-size: 12px; }
  .code-block { overflow-x: auto; white-space: pre; font-size: 13px; }
  .nav button { width: 54px; height: 54px; }
}
