/*
 * Sürü simülasyonu — yalnızca bu simülasyona özgü stiller (öğretici mod renkleri, sahne
 * imleci, renk açıklaması örnekleri, kod bloğu rengi). Düzen, kontroller, açıklama kutusu,
 * renk açıklaması kabı ve kod vurgusu çekirdekte (core/theme.css).
 */

/* ---------------------------------------- öğretici mod kural renkleri */

.lab {
  --lab-boid-separation: #1d1d1f;
  --lab-boid-alignment: var(--lab-accent);
  --lab-boid-cohesion: #7f9bc4;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lab:not([data-theme="light"]) {
    --lab-boid-separation: #f5f5f7;
    --lab-boid-alignment: var(--lab-accent);
    --lab-boid-cohesion: #9fb9e3;
  }
}

:root[data-theme="dark"] .lab:not([data-theme="light"]),
.lab[data-theme="dark"] {
  --lab-boid-separation: #f5f5f7;
  --lab-boid-alignment: var(--lab-accent);
  --lab-boid-cohesion: #9fb9e3;
}

/* ------------------------------------------------------------- sahne */

/* Dokunmatikte sürüyü çekerken sayfa kaymasın, yakınlaşmasın. */
.boids-stage {
  touch-action: none;
  cursor: crosshair;
}

.boids-legend__arrow {
  width: 16px;
  height: 3px;
  border-radius: 2px;
}
.boids-legend__arrow--separation {
  background: var(--lab-boid-separation);
}
.boids-legend__arrow--alignment {
  background: var(--lab-boid-alignment);
}
.boids-legend__arrow--cohesion {
  background: var(--lab-boid-cohesion);
}
.boids-legend__ring {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--lab-accent);
  border-radius: 50%;
}
.boids-legend__circle {
  width: 12px;
  height: 12px;
  border: 1.5px dashed var(--lab-text-2);
  border-radius: 50%;
  background: var(--lab-accent-soft);
}

/* ---------------------------------------------------------- kod panelleri */
/* Düzen ve vurgu çekirdekte (.lab-codes--scroll, .is-focused); burada yalnızca boids'e özgü kısımlar. */

/* Yalnızca ilk panelde "KOD" etiketi görünsün. */
.boids-codes > .lab-code:not(:first-child) .lab-code__eyebrow {
  display: none;
}

.boids-codes > .lab-code:not(:first-child) {
  padding-top: 12px;
}

.boids-codes > .lab-code.is-focused .lab-code__line {
  background: var(--lab-accent-soft);
}
