/* =====================================================================
   FSD Yazılım — ürün görselleri (stilize "sahne" ekranları + gerçek
   ekran görüntüsü sarmalayıcı). ui_kits/website/visuals.jsx portu.
   Tüm sınıflar .vz-* ön ekli. Sahne kökü, çağıran tarafın
   position:relative + belirli yükseklikteki kabına yerleşir
   (position:absolute; inset:0).
   ===================================================================== */

/* ---- gerçek ekran görüntüsü (Shot) ---- */
.vz-shot { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-subtle); background: #fff; }
.vz-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.vz-shot--left img { object-position: left; }

/* ---- teknik ızgara arka planı (gridBg) ---- */
.vz-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* ---- AppWindow çerçevesi ---- */
.vz-win { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; box-sizing: border-box; }
.vz-win--dark { background: var(--surface-inverse); border: 1px solid var(--border-on-dark); }
.vz-win--light { background: var(--surface-card); border: 1px solid var(--border-subtle); }
.vz-win__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; flex: none; }
.vz-win--dark .vz-win__bar { border-bottom: 1px solid var(--border-on-dark); background: var(--surface-inverse-raised); }
.vz-win--light .vz-win__bar { border-bottom: 1px solid var(--border-subtle); background: var(--surface-subtle); }
.vz-win__dots { display: flex; gap: 5px; }
.vz-win__dot { width: 8px; height: 8px; border-radius: 4px; }
.vz-win--dark .vz-win__dot { background: rgba(255,255,255,0.18); }
.vz-win--light .vz-win__dot { background: var(--ink-200); }
.vz-win__title { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vz-win--dark .vz-win__title { color: var(--blue-400); }
.vz-win--light .vz-win__title { color: var(--brand-primary); }
.vz-win__body { flex: 1; position: relative; overflow: hidden; }
.vz-win__foot { display: flex; gap: 18px; padding: 9px 14px; font-family: var(--font-mono); font-size: 10.5px; flex: none; flex-wrap: wrap; }
.vz-win--dark .vz-win__foot { border-top: 1px solid var(--border-on-dark); color: var(--text-on-dark-muted); }
.vz-win--light .vz-win__foot { border-top: 1px solid var(--border-subtle); color: var(--text-muted); }
.vz-win__foot b { font-weight: 500; }
.vz-win--dark .vz-win__foot b { color: var(--text-on-dark); }
.vz-win--light .vz-win__foot b { color: var(--text-heading); }

/* ---- TableScene ---- */
.vz-table { position: absolute; inset: 0; display: flex; flex-direction: column; }
.vz-table__head { display: flex; padding: 8px 14px; flex: none; }
.vz-table--dark .vz-table__head, .vz-table--dark .vz-table__row { border-bottom: 1px solid var(--border-on-dark); }
.vz-table--light .vz-table__head, .vz-table--light .vz-table__row { border-bottom: 1px solid var(--ink-100); }
.vz-table__h { font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.vz-table--dark .vz-table__h { color: var(--text-on-dark-muted); }
.vz-table--light .vz-table__h { color: var(--text-faint); }
.vz-table__row { display: flex; align-items: center; padding: 9px 14px; }
.vz-table__cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 8px; }
.vz-table__cell--c0 { font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; }
.vz-table__cell--c1 { font-family: var(--font-body); font-size: 12px; font-weight: 500; }
.vz-table__cell--cn { font-family: var(--font-body); font-size: 12px; font-weight: 400; }
.vz-table--dark .vz-table__cell--c0 { color: var(--text-on-dark-muted); }
.vz-table--dark .vz-table__cell--c1, .vz-table--dark .vz-table__cell--cn { color: var(--text-on-dark); }
.vz-table--light .vz-table__cell--c0 { color: var(--text-muted); }
.vz-table--light .vz-table__cell--c1, .vz-table--light .vz-table__cell--cn { color: var(--text-heading); }
.vz-pill { font-family: var(--font-mono); font-size: 9.5px; padding: 2px 8px; border-radius: 999px; }
.vz-barcell { display: flex; align-items: center; gap: 8px; }
.vz-bar { flex: 1; height: 5px; border-radius: 3px; }
.vz-table--dark .vz-bar { background: rgba(255,255,255,0.09); }
.vz-table--light .vz-bar { background: var(--ink-100); }
.vz-bar__fill { display: block; height: 100%; border-radius: 3px; background: var(--blue-500); }
.vz-barval { font-family: var(--font-mono); font-size: 9.5px; }
.vz-table--dark .vz-barval { color: var(--text-on-dark); }
.vz-table--light .vz-barval { color: var(--text-muted); }

/* ---- NestingScene ---- */
.vz-nest { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; }
.vz-nest__plate { position: relative; width: 86%; height: 84%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.22); border-radius: 3px; }
.vz-nest__dim { position: absolute; left: 0; right: 0; top: -13px; border-top: 1px solid var(--amber-500); }
.vz-nest__dim span { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 9px; color: var(--amber-400); letter-spacing: 0.08em; }
/* parça dikdörtgeni (NestingScene + PressScene ortak) */
.vz-part { position: absolute; display: flex; align-items: flex-end; padding: 3px; box-sizing: border-box; border-radius: 2px; }
.vz-part--blue { background: rgba(45,114,245,0.16); border: 1px solid var(--blue-400); }
.vz-part--amber { background: rgba(232,131,12,0.18); border: 1px solid var(--amber-500); }
.vz-part__lbl { font-family: var(--font-mono); font-size: 8px; }
.vz-part--blue .vz-part__lbl { color: var(--blue-200); }
.vz-part--amber .vz-part__lbl { color: var(--amber-400); }

/* ---- DoorScene (kullanılmıyor; tamlık için) ---- */
.vz-door { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.vz-door__panel { position: relative; width: 38%; height: 74%; }
.vz-door__b1 { position: absolute; inset: 0; border: 1.5px solid var(--blue-400); border-radius: 3px; }
.vz-door__b2 { position: absolute; inset: 13%; border: 1px solid rgba(94,148,248,0.55); border-radius: 2px; }
.vz-door__b3 { position: absolute; inset: 24%; border: 1px solid rgba(94,148,248,0.3); border-radius: 2px; }
.vz-door__dim-t { position: absolute; left: 0; right: 0; top: -14px; border-top: 1px solid var(--amber-500); }
.vz-door__dim-t span { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 9px; color: var(--amber-400); letter-spacing: 0.08em; }
.vz-door__dim-l { position: absolute; top: 0; bottom: 0; left: -14px; border-left: 1px solid var(--amber-500); }
.vz-door__dim-l span { position: absolute; left: -12px; top: 50%; transform: rotate(-90deg) translateX(-50%); transform-origin: 0 0; font-family: var(--font-mono); font-size: 9px; color: var(--amber-400); letter-spacing: 0.08em; white-space: nowrap; }

/* ---- LabelScene (kullanılmıyor; tamlık için) ---- */
.vz-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px; }
.vz-label__plate { position: relative; width: 34%; height: 78%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.22); border-radius: 3px; flex: none; }
.vz-label__part { position: absolute; border-radius: 2px; }
.vz-label__part--blue { background: rgba(45,114,245,0.15); border: 1px solid var(--blue-400); }
.vz-label__part--amber { background: rgba(232,131,12,0.2); border: 1px solid var(--amber-500); }
.vz-label__tag { width: 44%; background: #fff; border-radius: 6px; padding: 12px 14px; box-shadow: var(--shadow-raised); display: flex; flex-direction: column; gap: 6px; }
.vz-label__sub { font-family: var(--font-mono); font-size: 9px; color: var(--ink-500); }
.vz-label__title { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink-900); }
.vz-label__bars { margin-top: 4px; }
.vz-label__bar { display: inline-block; height: 16px; background: var(--ink-900); margin-right: 2px; }

/* ---- GCodeScene ---- */
.vz-gcode { position: absolute; inset: 0; padding: 12px 16px; }
.vz-gcode__line { display: flex; gap: 12px; padding: 3px 0; }
.vz-gcode__n { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.25); }
.vz-gcode__code { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-on-dark); }

/* ---- PressScene (kullanılmıyor; tamlık için) ---- */
.vz-press { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.vz-press__plate { position: relative; width: 88%; height: 72%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.22); border-radius: 3px; }
.vz-press__cap { position: absolute; top: -16px; left: 0; font-family: var(--font-mono); font-size: 9px; color: var(--text-on-dark-muted); letter-spacing: 0.08em; }

/* ---- CatalogScene ---- */
.vz-cat { position: absolute; inset: 0; background: var(--surface-subtle); display: flex; gap: 10px; padding: 12px; align-items: stretch; }
.vz-cat__card { flex: 1; background: #fff; border: 1px solid var(--ink-200); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.vz-cat__card--active { border-color: var(--blue-400); box-shadow: var(--shadow-card); }
.vz-cat__thumb { height: 74px; border-radius: 4px; border: 1px solid var(--ink-200); position: relative; }
.vz-cat__thumb::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,0.5); border-radius: 2px; }
.vz-cat__name { font-family: var(--font-body); font-size: 10.5px; font-weight: 600; color: var(--ink-800); }
.vz-cat__swatches { display: flex; gap: 4px; }
.vz-cat__sw { width: 10px; height: 10px; border-radius: 5px; border: 1px solid rgba(0,0,0,0.12); }

/* ---- DashScene ---- */
.vz-dash { position: absolute; inset: 0; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.vz-dash--light { background: var(--surface-subtle); }
.vz-dash__tiles { display: flex; gap: 10px; flex: none; min-height: 0; }
.vz-dash__tile { flex: 1; background: #fff; border: 1px solid var(--ink-200); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow: hidden; }
.vz-dash__tile-l { font-family: var(--font-mono); font-size: 8.5px; color: var(--ink-400); }
.vz-dash__tile-v { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--ink-900); letter-spacing: -0.02em; }
.vz-dash__bars { flex: 1; background: #fff; border: 1px solid var(--ink-200); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.vz-dash__bar { display: flex; align-items: center; gap: 10px; }
.vz-dash__bar-l { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-500); width: 74px; flex: none; }
.vz-dash__bar-track { flex: 1; height: 7px; background: var(--ink-100); border-radius: 4px; }
.vz-dash__bar-fill { display: block; height: 100%; border-radius: 4px; background: var(--blue-500); }
.vz-dash__bar-p { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-700); }

/* ---- CabinetScene ---- */
.vz-cab { position: absolute; inset: 0; background: var(--surface-subtle); display: flex; align-items: center; justify-content: center; }
.vz-cab__stage { position: relative; width: 84%; height: 76%; }
.vz-cab__box { position: absolute; border-radius: 2px; background: #fff; border: 1px solid var(--ink-300); }
.vz-cab__box--a { background: rgba(45,114,245,0.1); border-color: var(--ink-300); }
.vz-cab__box--b { background: rgba(232,131,12,0.12); border-color: var(--amber-500); }
.vz-cab__shelf { position: absolute; left: 0; right: 0; height: 5px; background: var(--ink-300); border-radius: 2px; }
.vz-cab__rail { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--amber-500); }
.vz-cab__dim { position: absolute; font-family: var(--font-mono); font-size: 9px; color: var(--amber-600); }

/* ---- ToolpathScene ---- */
.vz-tool { position: absolute; inset: 0; }
.vz-tool__plate { position: absolute; left: 12%; top: 18%; width: 56%; height: 58%; border: 1px solid rgba(255,255,255,0.25); border-radius: 3px; }
.vz-tool__arc { position: absolute; }
.vz-tool__code { position: absolute; right: 10%; top: 20%; font-family: var(--font-mono); font-size: 9.5px; color: var(--text-on-dark-muted); text-align: right; line-height: 1.7; }
.vz-tool__cross { position: absolute; left: 63%; top: 69%; width: 14px; height: 14px; }
.vz-tool__cross span { position: absolute; background: var(--amber-400); }
.vz-tool__cross span:first-child { left: 6px; top: 0; width: 2px; height: 14px; }
.vz-tool__cross span:last-child { top: 6px; left: 0; height: 2px; width: 14px; }
