/* ═══════════════════════════════════════════════════════════════════════
   📖 PAMOKOS (js/lessons.js) — video + žingsniai. Kaip svetainė (Domantas 2026-10-02 #101): visada tamsus langas,
   atsiranda su suliejimu ir pakilimu, aktyvi pamoka — oranžinė su švytėjimu, žingsniai pasirodo po vieną.
   Klasės nekeistos (js/lessons.js).
   ═══════════════════════════════════════════════════════════════════════ */
#lessons-modal {
    --l-fonas: #0A0E13; --l-pav: #0E1319; --l-pav2: #131A22; --l-lin: rgba(255,255,255,.07); --l-lin2: rgba(255,255,255,.12);
    --l-tekst: #ECF0F4; --l-tekst2: #95A3B0; --l-blank: #75838F; --l-oranz: #E85D2A; --l-oranz2: #FF7A45; --l-lenk: cubic-bezier(.2,.8,.2,1);
    position: fixed; inset: 0; z-index: 99100; display: none; align-items: center; justify-content: center;
    font-family: 'Archivo', var(--font, system-ui), sans-serif; color: var(--l-tekst);
}
#lessons-modal .ls-backdrop { position: absolute; inset: 0; background: rgba(6, 8, 11, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: lsFade .35s ease both; }
#lessons-modal .ls-card {
    position: relative; width: min(1060px, calc(100vw - 32px)); height: min(730px, calc(100vh - 48px)); display: flex; flex-direction: column;
    background: radial-gradient(70% 50% at 70% 0%, rgba(232,93,42,.10), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--l-pav);
    color: var(--l-tekst); border: 1px solid var(--l-lin2); border-radius: 24px; overflow: hidden;
    box-shadow: 0 50px 120px -40px rgba(0,0,0,1), 0 0 0 1px rgba(255,255,255,.03) inset, 0 0 90px -40px rgba(232,93,42,.55);
    animation: lsIn .6s var(--l-lenk) both;
}
@keyframes lsFade { from { opacity: 0; } }
@keyframes lsIn { from { opacity: 0; transform: translateY(26px) scale(.97); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
:where(#lessons-modal) button { font: inherit; color: inherit; cursor: pointer; border: 0; background: transparent; text-align: left; }
:where(#lessons-modal) * { box-sizing: border-box; }

/* Antraštė */
.ls-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--l-lin); }
.ls-title { font-size: 17px; font-weight: 720; letter-spacing: -.01em; font-variation-settings: 'wdth' 108; }
.ls-sub { font-size: 12px; color: #FFB08F; font-family: var(--font-mono, ui-monospace, monospace); padding: 2px 9px; border-radius: 999px; background: rgba(232,93,42,.14); border: 1px solid rgba(232,93,42,.35); }
.ls-x { margin-left: auto; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; color: var(--l-tekst2); border: 1px solid var(--l-lin2) !important; transition: background .2s ease, color .2s ease, transform .3s var(--l-lenk); }
.ls-x:hover { background: rgba(255,255,255,.08); color: var(--l-tekst); transform: rotate(90deg); }

/* Kūnas: kairėje sąrašas, dešinėje pamoka */
.ls-body { flex: 1; min-height: 0; display: flex; }
.ls-nav { width: 262px; flex: none; overflow-y: auto; padding: 12px 10px; border-right: 1px solid var(--l-lin); background: rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 3px; }
.ls-item { display: flex; align-items: center; gap: 9px; padding: 10px 11px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--l-tekst2); width: 100%; transition: background .2s ease, color .2s ease, transform .3s var(--l-lenk); }
.ls-item:hover { background: rgba(255,255,255,.05); color: var(--l-tekst); transform: translateX(3px); }
.ls-item.active { background: linear-gradient(90deg, #E85D2A, #F0753F); color: #0B0F13; box-shadow: 0 10px 28px -12px rgba(232,93,42,.9); }
.ls-item.active .ls-num { border-color: rgba(11,15,19,.5); color: #0B0F13; }
.ls-num { flex: none; width: 22px; height: 22px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.2); font: 700 11px/19px var(--font-mono, ui-monospace, monospace); text-align: center; }
.ls-item.seen:not(.active) .ls-num { border-color: #3FD08A; color: #6EE2A6; }
.ls-ico { flex: none; font-size: 15px; }
.ls-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ls-vid { flex: none; font-size: 10px; opacity: .7; }
.ls-main { flex: 1; min-width: 0; overflow-y: auto; padding: 22px 26px 26px; }
.ls-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; animation: lsIn .55s var(--l-lenk) both; }
.ls-h-ico { font-size: 30px; line-height: 1; margin-top: 2px; filter: drop-shadow(0 6px 14px rgba(232,93,42,.35)); }
.ls-h h2 { margin: 0 0 6px; font-size: 24px; font-weight: 740; letter-spacing: -.015em; font-variation-settings: 'wdth' 110;
    background: linear-gradient(180deg, #FFFFFF 35%, #A9B8C5 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ls-intro { margin: 0; font-size: 14px; color: var(--l-tekst2); line-height: 1.5; }

/* Video — rėmas su švytėjimu */
.ls-video { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 360px; border-radius: 16px; overflow: hidden; background: #040507; margin-bottom: 20px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 30px 70px -40px rgba(0,0,0,1), 0 0 70px -36px rgba(232,93,42,.6); animation: lsIn .6s var(--l-lenk) both .08s; }
.ls-video iframe, .ls-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.ls-novideo { background: rgba(255,255,255,.03); border: 1px dashed rgba(255,255,255,.16); display: grid; place-items: center; color: var(--l-tekst2); text-align: center; font-size: 13.5px; max-height: 120px; aspect-ratio: auto; height: 110px; box-shadow: none; }
.ls-novideo small { display: block; margin-top: 2px; color: var(--l-blank); }
.ls-novideo-ico { font-size: 22px; margin-bottom: 4px; }

/* Žingsniai — pasirodo po vieną */
.ls-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ls-step { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--l-lin); background: rgba(255,255,255,.02); animation: lsIn .55s var(--l-lenk) both; }
.ls-step:nth-child(1) { animation-delay: .14s; } .ls-step:nth-child(2) { animation-delay: .2s; } .ls-step:nth-child(3) { animation-delay: .26s; }
.ls-step:nth-child(4) { animation-delay: .32s; } .ls-step:nth-child(5) { animation-delay: .38s; } .ls-step:nth-child(n+6) { animation-delay: .44s; }
.ls-step-n { flex: none; width: 28px; height: 28px; border-radius: 999px; border: 1.5px solid rgba(232,93,42,.6); color: #FFB08F; font: 700 13px/25px var(--font-mono, ui-monospace, monospace); text-align: center; box-shadow: 0 0 18px -6px rgba(232,93,42,.8) inset; }
.ls-step-b { flex: 1; min-width: 0; }
.ls-step-t { font-size: 14.5px; line-height: 1.55; color: #D3DBE2; }
.ls-step-t b { font-weight: 700; color: #fff; }
.ls-step-t kbd { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); border-bottom-width: 2px; padding: 0 6px; border-radius: 6px; font: 12px var(--font-mono, ui-monospace, monospace); color: #ECF0F4; }
.ls-step-img { display: block; width: 100%; max-width: 560px; margin-top: 8px; border-radius: 12px; border: 1px solid var(--l-lin2); }
.ls-tips { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(232,93,42,.06); border: 1px solid rgba(232,93,42,.22); animation: lsIn .55s var(--l-lenk) both .4s; }
.ls-cap { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #FFB08F; margin-bottom: 6px; font-weight: 650; }
.ls-tip { font-size: 13.5px; line-height: 1.5; padding: 3px 0; color: #D3DBE2; }

/* Poraštė */
.ls-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px 20px; border-top: 1px solid var(--l-lin); background: rgba(0,0,0,.2); flex-wrap: wrap; }
.ls-chk { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--l-tekst2); }
.ls-chk input { accent-color: var(--l-oranz); width: 15px; height: 15px; }
.ls-chk small { color: var(--l-blank); }
.ls-foot-btns { display: flex; gap: 8px; margin-left: auto; }
.ls-btn { position: relative; overflow: hidden; isolation: isolate; padding: 0 18px; min-height: 42px; display: inline-flex; align-items: center; border-radius: 999px;
    background: rgba(255,255,255,.045); border: 1px solid var(--l-lin2) !important; color: var(--l-tekst); font-size: 14px; font-weight: 650; white-space: nowrap; max-width: 340px; overflow: hidden; text-overflow: ellipsis;
    transition: background .2s ease, transform .25s var(--l-lenk), box-shadow .25s ease; }
.ls-btn::after { content: ''; position: absolute; inset: -2px; z-index: -1; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s var(--l-lenk); }
.ls-btn:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }
.ls-btn:hover::after { transform: translateX(120%); }
.ls-btn[disabled] { opacity: .4; cursor: default; transform: none; }
.ls-btn.primary { background: var(--l-oranz); border-color: transparent !important; color: #0B0F13; box-shadow: 0 10px 30px -10px rgba(232,93,42,.85); }
.ls-btn.primary::after { background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); }
.ls-btn.primary:hover { background: var(--l-oranz2); box-shadow: 0 16px 44px -10px rgba(255,122,69,.95); }

/* Slinkties juostos tamsiame lange */
#lessons-modal .ls-nav::-webkit-scrollbar, #lessons-modal .ls-main::-webkit-scrollbar { width: 10px; }
#lessons-modal .ls-nav::-webkit-scrollbar-thumb, #lessons-modal .ls-main::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }

@media (max-width: 760px) {
    #lessons-modal .ls-card { height: calc(100vh - 16px); width: calc(100vw - 16px); border-radius: 18px; }
    .ls-body { flex-direction: column; }
    .ls-nav { width: 100%; flex-direction: row; overflow-x: auto; overflow-y: hidden; border-right: 0; border-bottom: 1px solid var(--l-lin); padding: 8px; }
    .ls-nav { gap: 6px; }
    .ls-item { flex: none; width: auto; padding: 8px 10px; }
    .ls-item:hover { transform: none; }
    .ls-vid { display: none; }
    .ls-name { display: none; }
    .ls-main { padding: 14px; }
    .ls-btn { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
}
