/* Hareketli sahneler (:::scene), rehberli ekran turu (:::tour) ve süreç adımı kartı (:::stage).
   Renkler docs.css belirteçlerinden; koyu temada SVG çizimleri de belirteçlerle döner. */

/* ===== Sahne ===== */
.scene{margin:22px 0 28px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow);overflow:hidden}
.scene-head{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:12px 16px;border-bottom:1px solid var(--line)}
.scene-label,.tour-label{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--teal)}
.scene-head b,.tour-head b{font-size:15px}
.scene-note{margin-left:auto;font-size:12px;color:var(--muted);border:1px dashed var(--line-2);border-radius:999px;padding:2px 9px}
.scene-canvas{position:relative;background:linear-gradient(180deg,var(--surface-2),var(--surface))}
.scene-canvas svg{display:block;width:100%;height:auto;font-family:var(--font)}
.scene-play{position:absolute;right:12px;bottom:14px;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1px solid var(--line-2);background:var(--surface);color:var(--text);box-shadow:var(--shadow);cursor:pointer}
.scene-play .i-pause{display:none}.scene-play.show-pause .i-pause{display:block}.scene-play.show-pause .i-play{display:none}
/* Altyazı: o anki adım */
.scene-subtitle{display:flex;align-items:flex-start;gap:14px;padding:16px 18px 6px;border-top:1px solid var(--line)}
.scene-subtitle-no{display:grid;place-items:center;flex:0 0 auto;width:34px;height:34px;border-radius:50%;background:var(--accent);color:var(--accent-text);font-size:15px;font-weight:800}
.scene-subtitle-text{flex:1;margin:0;min-height:3.2em;font-size:16px;line-height:1.6;color:var(--text)}
.scene-subtitle-nav{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.scene-subtitle-count{font-size:12.5px;color:var(--muted);margin-right:4px;white-space:nowrap}
.scene-step-btn{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;border:1px solid var(--line-2);background:var(--surface);color:var(--text-2);cursor:pointer}
.scene-step-btn:hover{border-color:var(--accent);color:var(--accent)}
/* Bölüm çubuğu: eşit aralıklı numaralı noktalar */
.scene-track{position:relative;height:30px;margin:6px 32px 8px}
.scene-track-line{position:absolute;left:0;right:0;top:50%;height:4px;margin-top:-2px;border-radius:2px;background:var(--line)}
.scene-track-line i{display:block;height:100%;width:0;border-radius:2px;background:var(--teal)}
.scene-chapter{position:absolute;top:50%;width:24px;height:24px;margin:-12px 0 0 -12px;padding:0;display:grid;place-items:center;border-radius:50%;border:2px solid var(--line-2);background:var(--surface);color:var(--muted);font:inherit;font-size:11px;font-weight:800;cursor:pointer;transition:transform .2s,background .2s,border-color .2s,color .2s}
.scene-chapter:hover{border-color:var(--accent);color:var(--accent)}
.scene-chapter.done{background:var(--teal);border-color:var(--teal);color:#fff}
.scene-chapter.current{background:var(--accent);border-color:var(--accent);color:var(--accent-text);transform:scale(1.2);box-shadow:0 0 0 4px var(--accent-soft)}
/* Tüm adımlar (açılır liste) */
.scene-all{margin:0 18px 14px;border-top:1px dashed var(--line)}
.scene-all summary{padding:10px 0 4px;font-size:13px;font-weight:700;color:var(--text-2);cursor:pointer}
.scene-steps{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:2px}
.scene-steps li{display:flex;gap:10px;align-items:flex-start;padding:7px 8px;border-radius:8px;font-size:13.5px;line-height:1.5;color:var(--text-2);cursor:pointer}
.scene-steps li:hover{background:var(--surface-2)}
.scene-steps li.current{background:var(--accent-soft);color:var(--text)}
.scene-step-no{display:grid;place-items:center;flex:0 0 auto;width:20px;height:20px;border-radius:50%;background:var(--line);color:var(--text-2);font-size:11px;font-weight:700}
.scene-steps li.current .scene-step-no{background:var(--accent);color:var(--accent-text)}
@media (max-width:700px){.scene-subtitle{flex-wrap:wrap;gap:10px}.scene-subtitle-text{font-size:15px;min-height:4.8em}.scene-subtitle-nav{margin-left:auto}.scene-track{margin:6px 16px 8px}.scene-chapter{width:20px;height:20px;margin:-10px 0 0 -10px;font-size:10px}}

/* SVG çizim paleti */
.scene svg [data-anim]{transform-box:fill-box;transform-origin:center}
.scene:not(.ready) svg [data-anim].start-hidden{opacity:0}
.fill-surface{fill:var(--surface)}.fill-surface-2{fill:var(--surface-2)}.stroke-line{stroke:var(--line-2)}.fill-line{fill:var(--line-2)}
.fill-text{fill:var(--text)}.fill-text-2{fill:var(--text-2)}.fill-muted{fill:var(--muted)}
.fill-navy{fill:#16325c}.fill-blue{fill:#2563eb}.fill-blue-light{fill:#dbeafe}.fill-teal{fill:#14b8a6}.fill-teal-light{fill:#ccfbf1}.fill-purple{fill:#7c3aed}
.fill-orange{fill:#f97316}.fill-red{fill:#ef4444}.fill-green{fill:#22c55e}.fill-yellow{fill:#facc15}.fill-white{fill:#fff}
.fill-cardboard{fill:#d6a467}.fill-cardboard-dark{fill:#b9864a}.fill-shelf{fill:#94a3b8}.fill-shelf-dark{fill:#64748b}
.stroke-blue{stroke:#2563eb}.stroke-purple{stroke:#7c3aed}.stroke-navy{stroke:#16325c}.stroke-teal{stroke:#14b8a6}.stroke-red{stroke:#ef4444}.stroke-text{stroke:var(--text)}.stroke-muted{stroke:var(--muted)}
.fill-beam{fill:#ef4444;opacity:.85}
.text-md{font-size:13px;font-weight:600}.text-sm{font-size:11px}.text-lg{font-size:16px;font-weight:700}.text-xl{font-size:28px;font-weight:800}
:root[data-theme="dark"] .fill-navy{fill:#93c5fd}:root[data-theme="dark"] .fill-blue-light{fill:rgb(96 165 250/.25)}:root[data-theme="dark"] .fill-teal-light{fill:rgb(20 184 166/.25)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .fill-navy{fill:#93c5fd}:root:not([data-theme="light"]) .fill-blue-light{fill:rgb(96 165 250/.25)}:root:not([data-theme="light"]) .fill-teal-light{fill:rgb(20 184 166/.25)}}

/* ===== Rehberli tur ===== */
.tour{margin:22px 0 28px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow);overflow:hidden;outline:none}
.tour-head{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;padding:12px 16px;border-bottom:1px solid var(--line)}
.tour-counter{margin-left:auto;font-size:13px;color:var(--muted)}
.tour-images{background:var(--surface-2);padding:12px}
.tour-image{position:relative;overflow:hidden;border-radius:10px;border:1px solid var(--line);background:#fff;margin:0 auto}
.tour-inner{position:absolute;inset:0;transform-origin:0 0;transition:transform .85s cubic-bezier(.4,0,.2,1)}
.tour-inner img{display:block;width:100%;height:100%;object-fit:contain}
.tour-focus{position:absolute;border-radius:6px;box-shadow:0 0 0 9999px rgb(15 23 42/.42);outline:calc(3px / var(--scale,1)) solid #2563eb;outline-offset:calc(3px / var(--scale,1));transition:left .6s,top .6s,width .6s,height .6s}
.tour-focus::after{content:attr(data-n);position:absolute;right:calc(-14px / var(--scale,1));top:calc(-14px / var(--scale,1));display:grid;place-items:center;width:calc(26px / var(--scale,1));height:calc(26px / var(--scale,1));border-radius:50%;background:#2563eb;color:#fff;font-weight:700;font-size:calc(13px / var(--scale,1));box-shadow:0 0 0 calc(3px / var(--scale,1)) #fff;animation:tour-pulse 1.6s ease-out infinite}
@keyframes tour-pulse{0%{box-shadow:0 0 0 calc(3px / var(--scale,1)) #fff,0 0 0 0 rgb(37 99 235/.6)}100%{box-shadow:0 0 0 calc(3px / var(--scale,1)) #fff,0 0 0 calc(16px / var(--scale,1)) rgb(37 99 235/0)}}
.tour-texts{padding:14px 16px 4px;min-height:92px}
.tour-text{display:flex;gap:12px;align-items:flex-start}
.tour-text b{font-size:15.5px}
.tour-text p{margin:4px 0 6px;color:var(--text-2);font-size:14.5px;line-height:1.6}
.tour-no{display:grid;place-items:center;flex:0 0 auto;width:30px;height:30px;border-radius:50%;background:#2563eb;color:#fff;font-weight:700}
.tour-no-overview{background:var(--surface-2);color:var(--text-2);border:1px solid var(--line-2)}
.tour-guide-link{font-size:13.5px}
.tour-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 16px 14px}
.tour-foot .series-dots{flex:1;justify-content:center}
@media (prefers-reduced-motion:reduce){.tour-inner,.tour-focus{transition:none}.tour-focus::after{animation:none}}

/* ===== Süreç adımı kartı ===== */
.stage-card{--lane:var(--blue);margin:6px 0 26px;border:1px solid var(--line);border-top:4px solid var(--lane);border-radius:16px;background:var(--surface);box-shadow:var(--shadow);overflow:hidden}
.stage-card.lane-setup,.step-bar-item.lane-setup{--lane:var(--navy)}.stage-card.lane-stock,.step-bar-item.lane-stock{--lane:var(--teal)}.stage-card.lane-fulfillment,.step-bar-item.lane-fulfillment{--lane:var(--blue)}
:root[data-theme="dark"] .lane-setup{--lane:#93c5fd}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .lane-setup{--lane:#93c5fd}}
.step-bar{display:grid;grid-template-columns:repeat(var(--steps,10),minmax(0,1fr));gap:4px;padding:12px 14px 10px;background:var(--surface-2);border-bottom:1px solid var(--line)}
.step-bar-item{display:flex;flex-direction:column;align-items:center;gap:5px;text-decoration:none;color:var(--muted);font-size:11px;text-align:center;line-height:1.25;position:relative}
.step-bar-item span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:2px solid var(--lane);background:var(--surface);color:var(--lane);font-weight:700;font-size:12px;position:relative;z-index:1}
.step-bar-item::before{content:"";position:absolute;top:13px;left:-50%;width:100%;height:2px;background:var(--line-2)}
.step-bar-item:first-child::before{display:none}
.step-bar-item.done span{background:var(--lane);color:#fff}
:root[data-theme="dark"] .step-bar-item.done span{color:#0b1220}
.step-bar-item.current span{background:var(--lane);color:#fff;box-shadow:0 0 0 4px var(--accent-soft);transform:scale(1.15)}
:root[data-theme="dark"] .step-bar-item.current span{color:#0b1220}
.step-bar-item.current em{color:var(--text);font-weight:700}
.step-bar-item em{font-style:normal}
.step-bar-item:hover em{color:var(--accent)}
.stage-card-body{display:flex;gap:18px;align-items:flex-start;padding:18px 18px 8px}
.stage-card-no{display:grid;place-items:center;flex:0 0 auto;width:58px;height:58px;border-radius:16px;background:var(--lane);color:#fff;font-size:28px;font-weight:800}
:root[data-theme="dark"] .stage-card-no{color:#0b1220}
.stage-card-lane{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--lane)}
.stage-card-summary{margin:4px 0 10px;font-size:16.5px;line-height:1.5;color:var(--text)}
.stage-card-chips{display:flex;flex-wrap:wrap;gap:6px}
.stage-chip{display:inline-flex;align-items:center;gap:7px;padding:4px 10px;border-radius:999px;border:1px solid var(--line-2);font-size:12.5px;color:var(--text-2)}
.stage-chip.highlighted{border-style:dashed;border-color:var(--accent)}
.stage-card-foot{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;padding:10px 18px 14px}
.stage-nav{display:flex;flex-direction:column;font-size:14px;font-weight:600;text-decoration:none;color:var(--text)}
.stage-nav span{font-size:12px;font-weight:500;color:var(--muted)}
.stage-nav.next{text-align:right}
.stage-nav:hover{color:var(--accent)}
.stage-board-link{font-size:13px}
@media (max-width:760px){
  .step-bar{grid-template-columns:repeat(var(--steps,10),minmax(0,1fr));gap:2px}.step-bar-item em{display:none}
  .stage-card-body{gap:12px}.stage-card-no{width:44px;height:44px;font-size:22px;border-radius:12px}
  .stage-card-foot{grid-template-columns:1fr 1fr}.stage-board-link{display:none}
  .scene-note{display:none}
}
.tour-text[hidden],.tour-image[hidden],.tour-focus[hidden]{display:none}
