/* AutoSVF.ro — ghidul ilustrat al autopatcher-ului (incarcat doar pe paginile ghidului) */
.guide-meta { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.guide-meta li { font: 500 .85rem var(--body); color: var(--soft); border: 1px solid var(--edge-hi); border-radius: 999px; padding: .35rem .85rem; background: rgba(255,255,255,.03); }
.guide-meta b { color: #fff; }
.prose .step { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-right: 12px; vertical-align: 4px; border-radius: 12px; background: var(--fire);
  color: #fff; font: 600 .95rem/1 var(--mono); box-shadow: 0 8px 20px -8px rgba(255,106,43,.7); }
.prose h2 { scroll-margin-top: 96px; }
.prose ol.do { list-style: none; padding: 0; counter-reset: d; display: grid; gap: .7em; }
.prose ol.do > li { counter-increment: d; position: relative; padding-left: 40px; min-width: 0; }
.prose ol.do > li::before { content: counter(d); position: absolute; left: 0; top: .05em; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 600 .8rem var(--mono); color: var(--ember-soft); border: 1px solid rgba(255,138,76,.5); background: rgba(255,106,43,.08); }
.ui { font: 600 .88em var(--body); color: #fff; background: var(--ink-2); border: 1px solid var(--edge-hi); border-bottom-width: 2px; border-radius: 7px; padding: .08em .5em; white-space: nowrap; }

/* Capturi cu legenda numerotata */
.shot { margin: 1.4em 0 1.8em; }
.shot a.zoom { display: block; border: 1px solid var(--edge-hi); border-radius: var(--r-lg); overflow: hidden; background: var(--ink-1); cursor: zoom-in;
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.9); transition: border-color .2s; }
.shot a.zoom:hover { border-color: rgba(255,138,76,.55); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: 12px; font-size: .95rem; color: var(--muted); }
.shot.app a.zoom { max-width: 760px; }
.prose .legend { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.legend li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--soft); }
.legend .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--fire); color: #fff; font: 700 .8rem var(--body); border: 2px solid #fff; }
.zoom-dlg { padding: 0; border: 0; background: transparent; max-width: min(1400px, 96vw); max-height: 94vh; overflow: auto; }
.zoom-dlg::backdrop { background: rgba(4,5,7,.9); backdrop-filter: blur(4px); }
.zoom-dlg img { display: block; max-width: 100%; height: auto; border-radius: var(--r-md); cursor: zoom-out; }
.zoom-x { position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--edge-hi); background: rgba(20,22,28,.92); color: #fff; font-size: 1.6rem; cursor: pointer; }

/* Prezentarea (ca un video) */
.walk { position: relative; margin: 34px 0 0; border: 1px solid var(--edge-hi); border-radius: var(--r-xl); overflow: hidden; background: var(--ink-1); outline-offset: 4px;
  box-shadow: 0 50px 120px -50px rgba(255,106,43,.45); }
.walk-stage { position: relative; aspect-ratio: 16 / 10; background: #050608; overflow: hidden; }
/* slide-urile ascunse nu primesc click-uri si nu ies din scena (altfel acopera butoanele de sub ea) */
.walk-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .5s var(--ease), visibility 0s linear .5s; }
.walk-slide.on { opacity: 1; visibility: visible; transition: opacity .5s var(--ease), visibility 0s; }
.walk-slide img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center top; }
.walk-big { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 10px; border: 0; cursor: pointer; color: #fff;
  background: radial-gradient(closest-side, rgba(7,8,11,.35), rgba(7,8,11,.82)); font: 600 1.2rem var(--body); }
.walk-big .pl { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--fire); box-shadow: 0 20px 50px -14px rgba(255,106,43,.9); }
.walk-big .pl svg { width: 34px; height: 34px; margin-left: 5px; fill: #fff; }
.walk-big small { color: var(--soft); font-weight: 400; font-size: .95rem; }
.walk-ctrl { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--edge); }
.walk-ctrl button { width: 44px; height: 44px; flex: none; border-radius: 12px; border: 1px solid var(--edge-hi); background: rgba(255,255,255,.03); color: #fff; cursor: pointer; display: grid; place-items: center; }
.walk-ctrl button:hover { border-color: var(--ember-soft); }
.walk-ctrl svg { width: 18px; height: 18px; fill: currentColor; }
.walk-play[data-state="play"] .i-pause, .walk-play[data-state="pause"] .i-play { display: none; }
.walk-cap { flex: 1; min-width: 0; color: var(--text); font-size: .98rem; line-height: 1.35; }
.walk-count { font: 500 .8rem var(--mono); color: var(--muted); flex: none; }
.walk-bar { height: 3px; background: var(--ink-3); }
.walk-bar i { display: block; height: 100%; width: 0; background: var(--fire); }
@media (max-width: 600px) { .walk-cap { font-size: .88rem; } .walk-count { display: none; } }

/* Schema: host -> AutoSVF -> jucatori */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; margin: 1.4em 0; }
.flow .fbox { border: 1px solid var(--edge-hi); border-radius: var(--r-lg); padding: 18px; background: var(--ink-1); }
.flow .fbox b { display: block; color: #fff; margin-bottom: 4px; }
.flow .fbox small { color: var(--muted); font-size: .9rem; line-height: 1.45; display: block; }
.flow .fbox .k { font: 500 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ember-hi); margin-bottom: 8px; display: block; }
.flow .arr { display: grid; place-items: center; color: var(--ember-hi); font-size: 1.4rem; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; } .flow .arr { transform: rotate(90deg); } }

/* Structura de foldere */
.tree { font: 500 .88rem/1.9 var(--mono); background: var(--deep); border: 1px solid var(--edge-hi); border-radius: var(--r-lg); padding: 16px 20px; margin: 1.2em 0; overflow-x: auto; white-space: pre; color: var(--soft); }
.tree .d { color: var(--ember-soft); } .tree .f { color: #fff; } .tree .c { color: #7d776f; }

/* Cod / terminal cu buton de copiere */
.code { position: relative; max-width: 100%; min-width: 0; margin: 1em 0 1.4em; border: 1px solid var(--edge-hi); border-radius: var(--r-lg); background: var(--deep); overflow: hidden; }
.code .code-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--edge); font: 500 .78rem var(--mono); color: var(--muted); }
.code .code-h button { font: 600 .8rem var(--body); color: #fff; background: rgba(255,255,255,.05); border: 1px solid var(--edge-hi); border-radius: 8px; padding: 5px 10px; min-height: 32px; cursor: pointer; }
.code .code-h button:hover { border-color: var(--ember-soft); }
.code pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 400 .86rem/1.7 var(--mono); color: var(--soft); white-space: pre; }
.code pre .add { display: inline-block; min-width: 100%; background: rgba(70,211,154,.12); color: #c6f5df; box-shadow: inset 3px 0 0 var(--jade); margin: 0 -16px; padding: 0 16px; }
.code pre .cm { color: #7d776f; }
.code.term pre { color: #d8d2c8; }
.code.term pre .p { color: var(--ember-hi); user-select: none; }
.code.term pre .o { color: #8f887e; }
.code.term pre .ok { color: var(--jade); }

/* Alegere A / B */
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.2em 0 1.6em; }
.choose > div { border: 1px solid var(--edge-hi); border-radius: var(--r-lg); padding: 20px 22px; background: var(--ink-1); }
.choose .tag { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--fire); color: #fff; font: 700 1rem var(--body); margin-bottom: 10px; }
.choose h3 { margin: 0 0 .4em; font-size: 1.2rem; }
.choose p { margin: 0 0 .5em; }
.choose ul { margin: .4em 0 0; }
@media (max-width: 760px) { .choose { grid-template-columns: 1fr; } }

.callout.warn { border-color: rgba(255,107,107,.45); background: radial-gradient(420px 160px at 0% 0%, rgba(224,51,74,.14), transparent 70%), var(--ink-1); }
.callout.ok { border-color: rgba(70,211,154,.4); background: radial-gradient(420px 160px at 0% 0%, rgba(70,211,154,.1), transparent 70%), var(--ink-1); }
.callout.tip::before, .callout.warn::before, .callout.ok::before { display: block; font: 600 .74rem var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.callout.tip::before { content: 'Sfat'; color: var(--ember-hi); }
.callout.warn::before { content: 'Atenție'; color: #ff8f9c; }
.callout.ok::before { content: 'Verificare'; color: var(--jade); }
:lang(en) .callout.tip::before { content: 'Tip'; }
:lang(en) .callout.warn::before { content: 'Careful'; }
:lang(en) .callout.ok::before { content: 'Check'; }
