/* nx-build — ön durumlar ve katman stilleri (R08 §5).
   Ön durumlar yalnız <html class="nx-build"> iken geçerlidir; sınıf yoksa (JS yok, kapı kapalı, 2,5 sn emniyeti)
   içerik olduğu gibi görünür. */

.nx-build [data-build-section] [data-build]:not([data-build-done]):not([data-build-skip] *),
.nx-build [data-build-section] [data-build-clone-item]:not([data-build-done]):not([data-build-skip] *) {
  opacity: 0;
}
.nx-build [data-build-section] [data-build="type"]:not([data-build-done]):not([data-build-skip] *) {
  opacity: 1;
  clip-path: inset(0 100% 0 0);
}
.nx-build [data-build-lcp] { opacity: 1 !important; clip-path: none !important; }

/* Light: yalnız hero inşa edilir; diğer bölümler baştan açık. */
.nx-build[data-build-mode="light"] [data-build-section]:not([data-build-hero]) [data-build],
.nx-build[data-build-mode="light"] [data-build-section]:not([data-build-hero]) [data-build-clone-item] {
  opacity: 1 !important;
  clip-path: none !important;
}

/* Katman: header (60) ve menü (70) altında; etkileşimi asla engellemez. */
#nx-build-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}
.nxb-world { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.nxb-svg { position: absolute; left: 0; top: 0; overflow: visible; }
.nxb-ghosts, .nxb-cursors { position: absolute; left: 0; top: 0; }
.nxb-ghost {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.6;
  background: transparent !important;
  will-change: transform;
}
.nxb-label { font: 500 10px/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: 0.02em; }
.nxb-mark { font: 500 12px/1 "JetBrains Mono", ui-monospace, monospace; text-anchor: middle; dominant-baseline: central; }

.nxb-cursor {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  transform-origin: 0 0;
  will-change: transform, opacity;
}
/* base.css: svg { max-width: 100% } — 0 genişlikli kapsayıcıda SVG 0 px olur ve kırpılır. */
#nx-build-layer svg { max-width: none; }
.nxb-cursor svg { display: block; overflow: visible; filter: drop-shadow(0 1px 1px rgb(4 10 23 / 0.35)); }
.nxb-tag {
  position: absolute;
  left: 14px;
  top: 16px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--c);
  color: #040A17;
  font: 500 10px/1.2 "JetBrains Mono", ui-monospace, monospace;
  white-space: nowrap;
}

/* "Animasyonu durdur" — sol alt, klavyeyle erişilir. */
.nxb-stop {
  position: fixed;
  left: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 950;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgb(124 200 255 / 0.35);
  border-radius: 8px;
  background: rgb(7 22 49 / 0.88);
  color: #E6EDF7;
  font: 600 0.875rem/1 "Plus Jakarta Sans", system-ui, sans-serif;
  cursor: pointer;
}
body:has([data-cookie-banner]:not([hidden])) .nxb-stop { bottom: auto; top: calc(var(--nx-header-h, 64px) + 16px); }
.nxb-stop:hover { border-color: #3AA0FF; }
.nxb-stop:focus-visible { outline: 2px solid #3AA0FF; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .nx-build [data-build],
  .nx-build [data-build-clone-item] { opacity: 1 !important; clip-path: none !important; transform: none !important; }
  #nx-build-layer, .nxb-stop { display: none !important; }
}
