/*!
 * NosoniTrack — mini fabrika sahnesi (Pages/Shared/_FactoryScene.cshtml): giriş ekranı marka paneli + tanıtım sitesi.
 * Lacivert zemin üzerinde tasarlandı (kapsayıcı .nt-scene; boyut kapsayıcıya göre). Hareket prefers-reduced-motion'da durur.
 * Not: 1em = 13px portalda, 16px sitede — ölçüler rem; site .nt-scene'ye font-size ile ölçek verir.
 */

/* ── Sahne: izometrik mini saha + üstünde kartlar ── */
.nt-scene {
    position: relative;
    font-size: 13px;   /* ölçek: bütün ölçüler em — kapsayıcı bu değeri değiştirerek sahneyi büyütür / küçültür */
    z-index: 1;
    display: grid;
    flex: 1 1 auto;
    place-items: center;
    min-height: 22em;
}

.nt-scene-iso { width: 100%; max-width: 50em; height: auto; overflow: visible; }
.nt-scene-iso .iso-floor { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .22); stroke-width: 1.2; }
.nt-scene-iso .iso-grid line { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.nt-scene-iso .iso-route { fill: none; stroke: #FFD27F; stroke-width: 2.4; stroke-dasharray: 3 7; stroke-linecap: round; opacity: .75; }
.nt-scene-iso .iso-label rect { fill: #fff; filter: drop-shadow(0 3px 6px rgba(3, 20, 45, .3)); }
.nt-scene-iso .iso-label text { fill: #0E4D92; font: 700 10.5px Inter, "Segoe UI", Arial, sans-serif; letter-spacing: .03em; }
.nt-scene-iso .iso-bubble rect { fill: #fff; filter: drop-shadow(0 4px 10px rgba(3, 20, 45, .35)); }
.nt-scene-iso .iso-bubble text { fill: #0F2747; font: 500 11.5px Inter, "Segoe UI", Arial, sans-serif; }
.nt-scene-iso .iso-bubble { animation: nt-scene-bubble 9s ease-in-out infinite; }
.nt-scene-iso .iso-lamp--pulse { animation: nt-scene-lamp 1.6s ease-in-out infinite; }

/* Yüzen kartlar (beyaz cam) */
.nt-scene-card,
.nt-scene-phone,
.nt-scene-oee {
    position: absolute;
    color: #0F2747;
    border-radius: 1.1em;
    box-shadow: 0 18px 40px rgba(3, 20, 45, .38);
    animation: nt-scene-float 7s ease-in-out infinite;
}

.nt-scene-card {
    top: 0;
    right: 1%;
    width: 17.5em;
    padding: .95em 1.1em;
    background: rgba(255, 255, 255, .97);
}

.nt-scene-card-top { display: flex; align-items: center; justify-content: space-between; gap: .5em; }
.nt-scene-code { font-weight: 700; font-size: 1em; letter-spacing: .02em; }
.nt-scene-badge { display: inline-flex; align-items: center; gap: .2em; padding: .1em .5em; border-radius: 999px; background: #FFF4DB; color: #B45309; font-size: .85em; font-weight: 700; }
.nt-scene-badge .nt-scene-ico { width: .95em; height: .95em; }
.nt-scene-card-title { margin: .25em 0 .6em; font-size: 1.05em; font-weight: 600; color: #52637A; }
.nt-scene-progress { height: .5em; overflow: hidden; border-radius: 999px; background: #E3E9F1; }
.nt-scene-progress span { display: block; width: 67%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #10B981, #34D399); }
.nt-scene-card-meta { margin-top: .5em; color: #7A8BA3; font-size: .88em; }

/* Operatör telefonu (basit mod sonucu) */
.nt-scene-phone {
    left: 1%;
    bottom: 0;
    width: 14em;
    padding: .7em .7em 1em;
    border: 3px solid #0B1A33;
    border-radius: 1.6em;
    background: #F4F7FB;
    animation-delay: -2.3s;
}

.nt-scene-phone-bar { width: 3.2em; height: .35em; margin: 0 auto .7em; border-radius: 999px; background: #0B1A33; opacity: .85; }
.nt-scene-phone-band { display: flex; align-items: center; gap: .6em; padding: .7em .8em; border-radius: .8em; background: #10B981; color: #fff; }
.nt-scene-phone-band .nt-scene-ico { flex: none; width: 2.1em; height: 2.1em; color: #fff; }
.nt-scene-phone-band b { display: block; font-size: 1.35em; line-height: 1.1; }
.nt-scene-phone-band span { font-size: .95em; opacity: .95; white-space: nowrap; }
.nt-scene-phone-item { margin: .7em .2em .55em; font-size: .92em; line-height: 1.35; }
.nt-scene-phone-item b { display: block; font-size: 1em; }
.nt-scene-phone-item span { color: #7A8BA3; }
.nt-scene-phone-scan { display: flex; align-items: center; justify-content: center; gap: .35em; padding: .5em; border-radius: .7em; background: #0E4D92; color: #fff; font-size: .92em; font-weight: 600; }
.nt-scene-phone-scan .nt-scene-ico { width: 1.25em; height: 1.25em; color: #FFD27F; }

/* OEE göstergesi */
.nt-scene-oee {
    right: 3%;
    bottom: 4%;
    display: flex;
    align-items: center;
    gap: .65em;
    padding: .6em .95em .6em .6em;
    background: rgba(255, 255, 255, .97);
    animation-delay: -4.6s;
}

.nt-scene-oee svg { width: 2.9em; height: 2.9em; transform: rotate(-90deg); }
.nt-scene-oee-bg { fill: none; stroke: #E3E9F1; stroke-width: 4; }
.nt-scene-oee-val { fill: none; stroke: #0E4D92; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 77.3 94.3; }
.nt-scene-oee b { display: block; font-size: 1.3em; line-height: 1.1; }
.nt-scene-oee span { color: #7A8BA3; font-size: .85em; }

@keyframes nt-scene-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.45em); } }
@keyframes nt-scene-lamp { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes nt-scene-bubble { 0%, 12% { opacity: 0; transform: translate(470px, 128px); } 18%, 70% { opacity: 1; transform: translate(470px, 120px); } 78%, 100% { opacity: 0; transform: translate(470px, 116px); } }

/* Dar panelde (992–1199px) iş emri kartı gizli — sahne sıkışmasın */
@media (max-width: 1199.98px) {
    .nt-scene-card { display: none; }
    .nt-scene-phone { width: 12.5em; }
}

@media (prefers-reduced-motion: reduce) {
    .nt-scene-card, .nt-scene-phone, .nt-scene-oee, .nt-scene-iso .iso-bubble, .nt-scene-iso .iso-lamp--pulse { animation: none; }
    .nt-scene-iso .iso-item { display: none; }
}

