/* Botpagina's (bots/*.html): de robot, zijn tekstballon en de informatie. */
.bot-main { max-width: 1180px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.bot-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 15px; }
.bot-back:hover { color: var(--cream); }

.bot-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-top: 24px; }
@media (max-width: 820px) { .bot-hero { grid-template-columns: 1fr; gap: 32px; } }

/* Het podium met de robot */
.bot-stage-big { position: relative; isolation: isolate; border-radius: 32px; border: 1px solid #252B40; background: #0C1020; }
.bot-stage-big::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(circle at 62% 52%, color-mix(in srgb, var(--c) 34%, transparent), transparent 60%); animation: b-pulse 5s ease-in-out infinite; }
.bot-stage-mark { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; overflow: hidden; border-radius: inherit; font-size: clamp(110px, 18vw, 240px); font-weight: 600; letter-spacing: .06em; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--c) 40%, transparent); }
.bot-figure { display: block; width: 100%; padding: 14% 2% 3%; border: 0; border-radius: 32px; background: none; color: inherit; cursor: pointer; }
.bot-figure:focus-visible { outline: 2px solid var(--c); outline-offset: -6px; }
.bot-figure svg { display: block; width: 100%; height: auto; overflow: visible; }
.bot-mover { display: block; transform-origin: 50% 100%; }
.bot-drop { transform-origin: 50% 100%; animation: b-drop 1s cubic-bezier(.3, 1.2, .5, 1) both; }
.bot-hint { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

/* Kleuren en vaste bewegingen van de robot (zoals in de losse robot-bestanden) */
.bot-figure .navy { fill: #0B0E1B; }
.bot-figure .deep { fill: #20283B; }
.bot-figure .ivory { fill: #F4F1E8; }
.bot-figure .coral { fill: var(--c); }
.bot-figure .robot { animation: b-float 4s ease-in-out infinite; }
.bot-figure .shadow { animation: b-shadow 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bot-figure .eye { animation: b-blink 5s infinite; transform-box: fill-box; transform-origin: center; }
.bot-figure .glow { animation: b-glow 2.4s ease-in-out infinite; }
.bot-figure .brow { animation: b-brow 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bot-figure .knop { fill: #0B0E1B; animation: b-knop 2.4s ease-in-out infinite; }
.bot-figure .k2 { animation-delay: .3s; }
.bot-figure .k3 { animation-delay: .6s; }
.bot-figure .b-eyes { transform: translate(var(--ex, 0px), var(--ey, 0px)); transition: transform 150ms ease-out; }
.bot-figure .b-head { transform-box: fill-box; transform-origin: 50% 100%; }
.bot-figure .b-arm { transform-box: fill-box; transform-origin: 50% 8%; }
.bot-figure .b-rings circle { fill: none; stroke: var(--c); stroke-width: 7; opacity: 0; transform-box: fill-box; transform-origin: center; }

@keyframes b-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes b-shadow { 0%, 100% { transform: scaleX(1); opacity: .65; } 50% { transform: scaleX(.88); opacity: .4; } }
@keyframes b-blink { 0%, 90%, 96%, 100% { transform: scaleY(1); } 93% { transform: scaleY(.1); } }
@keyframes b-glow { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes b-brow { 0%, 70%, 100% { transform: translateY(0); } 76%, 88% { transform: translateY(-9px); } }
@keyframes b-knop { 0%, 60%, 100% { fill: #0B0E1B; } 20%, 40% { fill: var(--c); } }
@keyframes b-pulse { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes b-drop {
  0% { opacity: 0; transform: translateY(-45%); }
  55% { opacity: 1; transform: translateY(0) scale(1.08, .9); }
  75% { transform: translateY(-5%) scale(.97, 1.03); }
  100% { opacity: 1; transform: none; }
}

/* Trucjes (de klasse komt op .bot-mover) */
.trick-hop { animation: b-hop 1.1s cubic-bezier(.3, 1.2, .5, 1); }
.trick-flip { animation: b-flip 1.1s cubic-bezier(.5, 0, .3, 1); }
.trick-flip .b-rings circle { animation: b-ring 1s ease-out; }
.trick-flip .b-rings circle + circle { animation-delay: .3s; }
.trick-shake .b-head { animation: b-shake .9s ease-in-out; }
.trick-nod .b-head { animation: b-nod 1.2s ease-in-out; }
.trick-scan .b-eyes { animation: b-scan 1.2s ease-in-out; }
.trick-scan .b-head { animation: b-turn 1.2s ease-in-out; }
.trick-wave .b-arm { animation: b-wave 1.3s ease-in-out; }

@keyframes b-hop {
  0% { transform: none; }
  15% { transform: scale(1.06, .92); }
  45% { transform: translateY(-16%) scale(.96, 1.04) rotate(-4deg); }
  70% { transform: scale(1.05, .95); }
  85% { transform: translateY(-3%); }
  100% { transform: none; }
}
@keyframes b-flip {
  0% { transform: perspective(900px) rotateY(0); }
  50% { transform: perspective(900px) translateY(-8%) rotateY(180deg); }
  100% { transform: perspective(900px) rotateY(360deg); }
}
@keyframes b-ring { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.2); } }
@keyframes b-shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(7deg); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(3deg); } }
@keyframes b-nod { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-11deg); } 60% { transform: rotate(-11deg) translateY(4px); } 80% { transform: rotate(4deg); } }
@keyframes b-scan { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-22px, 0); } 50% { transform: translate(22px, 0); } 75% { transform: translate(-22px, 0); } }
@keyframes b-turn { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } 75% { transform: rotate(-4deg); } }
@keyframes b-wave { 0%, 100% { transform: rotate(0); } 20%, 50%, 80% { transform: rotate(-150deg); } 35%, 65% { transform: rotate(-118deg); } }

/* Vonkjes bij een trucje */
.spark { position: absolute; left: 62%; top: 52%; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--c); pointer-events: none; animation: b-spark 900ms cubic-bezier(.2, .8, .3, 1) both; }
.spark-dot { border-radius: 50%; }
.spark-blok { border-radius: 3px; }
.spark-ruit { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.spark-ster { clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); width: 18px; height: 18px; }
.spark-hart { clip-path: polygon(50% 100%, 6% 52%, 0 30%, 8% 10%, 27% 2%, 50% 18%, 73% 2%, 92% 10%, 100% 30%, 94% 52%); width: 18px; height: 16px; }
.spark-vink { clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 24%, 86% 10%, 38% 72%); width: 18px; height: 16px; }
.spark-bliksem { clip-path: polygon(60% 0, 10% 58%, 44% 58%, 34% 100%, 90% 38%, 56% 38%, 72% 0); width: 14px; height: 22px; }
@keyframes b-spark {
  0% { opacity: 0; transform: translate(0, 0) scale(.3) rotate(0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(var(--s, 1)) rotate(var(--r, 90deg)); }
}

/* Tekstballon */
.bubble { position: absolute; top: 5%; left: 5%; z-index: 2; max-width: 46%; margin: 0; padding: 14px 18px; border-radius: 18px 18px 18px 4px; background: var(--cream); color: var(--navy); font-size: 15px; font-weight: 500; line-height: 1.45; box-shadow: 0 18px 40px -18px rgb(0 0 0 / .6); animation: b-bubble 600ms 900ms cubic-bezier(.3, 1.4, .5, 1) both; }
.bubble::after { content: ""; position: absolute; right: -10px; bottom: 14px; border-width: 8px 0 8px 12px; border-style: solid; border-color: transparent transparent transparent var(--cream); }
.bubble-ghost { visibility: hidden; }
.bubble-typed { position: absolute; inset: 14px 18px; }
@keyframes b-bubble { 0% { opacity: 0; transform: scale(.6) translateY(10px); } 100% { opacity: 1; transform: none; } }
@media (max-width: 600px) { .bubble { max-width: 52%; padding: 10px 12px; font-size: 13px; } .bubble-typed { inset: 10px 12px; } }

/* Informatie naast de robot */
.bot-info > * { animation: b-up 700ms cubic-bezier(.2, .8, .2, 1) both; }
.bot-info > :nth-child(2) { animation-delay: 80ms; }
.bot-info > :nth-child(3) { animation-delay: 160ms; }
.bot-info > :nth-child(4) { animation-delay: 220ms; }
.bot-info > :nth-child(5) { animation-delay: 280ms; }
.bot-info > :nth-child(6) { animation-delay: 340ms; }
@keyframes b-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.bot-kicker { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.bot-kicker::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.bot-title { margin: 12px 0 18px; font-size: clamp(64px, 9vw, 104px); line-height: 1; letter-spacing: .16em; }
.bot-info .bot-role { margin-top: 16px; }
.bot-lead { margin: 10px 0 0; font-size: 20px; color: var(--cream); }
.bot-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn.bot-btn { background: var(--c); border-color: var(--c); color: var(--navy); }
.btn.bot-btn:hover { filter: brightness(1.08); }

/* Blokken onder de robot */
.bot-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 80px; }
@media (max-width: 820px) { .bot-sections { grid-template-columns: 1fr; } }
.bot-panel { padding: 28px; border: 1px solid #252B40; border-radius: 24px; background: #141A2E; }
.bot-panel h2 { margin: 0 0 18px; font-size: 24px; }
.bot-checks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.bot-checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--cream); }
.bot-check { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); }
.bot-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bot-chips li { padding: 8px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); color: var(--cream); font-size: 15px; }
.bot-small { margin: 20px 0 0; font-size: 15px; }
.bot-small a { color: var(--cream); }

.bot-steps-wrap h2 { margin-top: 80px; }
.bot-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 820px) { .bot-steps { grid-template-columns: 1fr; } }
.bot-steps li { padding: 26px; border-radius: 24px; border: 1px solid #252B40; }
.bot-step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: var(--navy); font-weight: 600; }
.bot-steps h3 { margin: 16px 0 6px; font-size: 18px; }
.bot-steps p { margin: 0; }

/* Vorige en volgende bot */
.bot-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 80px; }
@media (max-width: 600px) { .bot-pager { grid-template-columns: 1fr; } }
.bot-pager-link { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-radius: 24px; border: 1px solid #252B40; text-decoration: none; transition: border-color 250ms, transform 250ms; }
.bot-pager-link:hover { border-color: var(--c); transform: translateY(-4px); }
.bot-pager-link.is-next { justify-content: flex-end; text-align: right; }
.bot-pager-link img { width: 72px; height: auto; transition: transform 400ms cubic-bezier(.3, 1.5, .5, 1); }
.bot-pager-link:hover img { transform: translateY(-6px) rotate(-4deg); }
.bot-pager-text { display: grid; gap: 2px; }
.bot-pager-label { font-size: 13px; color: var(--muted); }
.bot-pager-text strong { font-size: 20px; letter-spacing: .14em; }
.bot-pager-text span:last-child { font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .bot-drop, .bubble, .bot-info > *, .bot-stage-big::before { animation: none; }
  .bot-figure .robot, .bot-figure .shadow, .bot-figure .eye, .bot-figure .glow, .bot-figure .brow, .bot-figure .knop { animation: none; }
  .trick-hop, .trick-flip, .trick-flip .b-rings circle, .trick-shake .b-head, .trick-nod .b-head, .trick-scan .b-eyes, .trick-scan .b-head, .trick-wave .b-arm { animation: none; }
  .bot-pager-link, .bot-pager-link:hover, .bot-pager-link:hover img { transform: none; }
}
