/* NodaGuard hareket katmanı (motion.js ile birlikte). site.css'e dokunmaz.
   Kural: JS çalışmazsa ya da hareket azaltılmışsa her şey son hâliyle görünür;
   gizleme/sıralama yalnız motion.js bir bloğa .mo-ready eklediğinde başlar. */

/* "canlı" noktası gerçekten atsın */
@keyframes moPulse {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, .5); }
  70% { box-shadow: 0 0 0 7px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}
.pulse-dot { animation: moPulse 2.2s ease-out infinite; }

/* skor simülatörü halkası tıklamada yumuşak dolsun */
@property --pct { syntax: '<number>'; inherits: true; initial-value: 38; }
.rp-ring { transition: --pct .6s cubic-bezier(.2, .7, .2, 1); }

/* yönetilen bloklarda paketler yalnız sırası gelince, tek sefer ve doğru yönde gider */
.mo-ready .pkt { animation: none; opacity: 0; }
.mo-ready .pkt.mo-fwd { animation: pktMove var(--mo-d, .9s) linear 1 both; }
.mo-ready .pkt.mo-rev { animation: pktMoveRev var(--mo-d, .9s) linear 1 both; }

/* akış düğümleri: sırası gelmeyen soluk, çalışan vurgulu */
.mo-ready .pipe-node { transition: opacity .35s ease; }
.mo-ready .pipe-node small, .mo-ready .pipe-node strong { transition: color .3s ease; }
.pipe-node.mo-dim { opacity: .38; }
.pipe-node.mo-act small { color: #7DD3FC; }
.pipe-node.mo-bad small, .pipe-node.mo-bad strong { color: #FCA5A5; }
.pipe-node.mo-good small { color: #6EE7B7; }

/* giriş rapor kartı: örnek taramanın yeniden oynatımı.
   Bulgular geldikçe liste uzar (satırlar 0 boydan kendi boyuna açılır); başta boş alan beklemez.
   Sayfa zıplamasın diye kartın son boyu .rc-wrap'te ayrılır (motion.js ölçer). */
.mo-ready .rc-row, .mo-ready .rc-fixwrap { transition: grid-template-rows .32s ease, opacity .3s ease; }
.mo-ready .rc-row.mo-hide, .mo-ready .rc-fixwrap.mo-hide { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
.rc.rc-still .rc-row, .rc.rc-still .rc-fixwrap { transition: none !important; grid-template-rows: 1fr !important; }
.mo-ready .rc-status { transition: opacity .3s ease; }
.rc.is-playing .rc-status { opacity: 1; }
.mo-ready .rc-bar i { transition: width .4s ease; }
.mo-ready [data-mo-after] { transition: opacity .5s ease; }
.mo-ready [data-mo-after].mo-hide { opacity: 0; }
[data-mo-score] { transition: color .3s ease; }

/* laboratuvar: sıra aktif risk noktasına gelince kısa vurgu */
@keyframes moFlash {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); }
  100% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); }
}
.hotspot-btn.mo-flash { animation: moFlash .8s ease-out 1; }

/* bot / NodaGuard şeritleri: istek hep istemciden sunucuya gider; bot sık ve hızlı, NodaGuard seyrek */
.tv-track .pkt { animation: pktMove 3.4s linear infinite; }
.tv-lane:first-child .tv-track .pkt { animation-duration: .85s; }
.tv-lane:first-child .tv-track .pkt:nth-child(2) { animation-delay: .28s; }
.tv-lane:first-child .tv-track .pkt:nth-child(3) { animation-delay: .56s; }

/* zaman çizelgesi */
.mo-ready [data-mo-dot] { transform-box: fill-box; transform-origin: center; transition: transform .28s cubic-bezier(.3, 1.6, .5, 1), opacity .2s ease; }
[data-mo-dot].mo-off { opacity: 0; transform: scale(.2); }
.mo-ready .time-pill { transition: opacity .3s ease, color .3s ease, border-color .3s ease, background-color .3s ease; }
.time-pill.mo-dim { opacity: .32; }
.time-pill.mo-hit { color: #FCA5A5; border-color: rgba(239, 68, 68, .6); background: rgba(239, 68, 68, .12); }
.mo-axis { font: 500 8px var(--mono); fill: rgba(148, 163, 184, .7); }

/* yüzey skor çubukları: önce (kırmızı) → sonra (yeşil) */
.mo-ready [data-mo-bar] { transition: width 1.1s cubic-bezier(.2, .7, .2, 1), background-color .9s ease; }
[data-mo-bar].mo-before { background: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  .pulse-dot, .hotspot-btn.mo-flash { animation: none; }
  .rp-ring { transition: none; }
}

