/* Previzualizarea publica a unei lectii (templates/front/lesson_preview.html).
   Baza e scena „theater” din profesio.css (.theater, .pmain, .pside, .vid, .reader, .article);
   aici doar ce lipseste: bara de sus, scena pentru prezentare/test, cardul CTA, lista din dreapta. */

.lpv-bar { background: var(--navy); color: #fff; }
.lpv-bar .wrap { max-width: none; padding-block: 10px; min-height: 54px; }
.lpv-back { color: #fff; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 0; overflow: hidden; }
.lpv-back:hover { color: #fff; }
.lpv-ct { font-weight: 500; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Scena: video, prezentare, test blocat */
.lpv-vid { width: 100%; }
.lpv-video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.lpv-stage { display: grid; place-items: center; min-height: clamp(320px, 62vh, 720px); padding: 28px 24px; }
.lpv-empty { color: #cbd5e1; text-align: center; padding: 48px 20px; margin: 0; display: grid; gap: 10px; justify-items: center; }
.lpv-empty i { font-size: 32px; color: #7dd3fc; }
.lpv-empty[hidden], .lpv-pdf-page[hidden] { display: none; }
.lpv-th .reader { border-bottom: 1px solid var(--line); }

.lpv-pdf { width: min(100%, 980px); display: grid; gap: 12px; outline: none; }
.lpv-pdf:focus-visible { box-shadow: 0 0 0 3px rgba(56, 189, 248, .55); border-radius: 12px; }
.lpv-pdf-bar { display: flex; align-items: center; justify-content: center; gap: 14px; color: #e5e9f2; }
.lpv-pdf-bar .btn { min-width: 44px; min-height: 40px; }
.lpv-pdf-page { width: 100%; }
.lpv-pdf-page canvas { display: block; width: 100%; height: auto; background: #fff; border-radius: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.lpv-pdf-page .lpv-pdf-img { display: block; width: 100%; height: auto; background: #fff; border-radius: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.lpv-pdf-page .lpv-pdf-img[hidden] { display: none; }

.lpv-lock-in { max-width: 520px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.lpv-lock-in h2 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); }
.lpv-lock-in p { color: #a9b6d3; margin: 0; }
.lpv-lock-ic { width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #7dd3fc; display: grid; place-items: center; font-size: 30px; }

/* Articolul: continut Quill sanitizat */
.lpv-article img, .lpv-article video, .lpv-article iframe { max-width: 100%; height: auto; border-radius: 10px; }
.lpv-article img { display: block; margin: 16px auto; }
.lpv-article iframe.ql-video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; margin: 18px 0; }
.lpv-article h1, .lpv-article h2, .lpv-article h3 { margin: 24px 0 10px; }
.lpv-article ul, .lpv-article ol { padding-left: 1.3em; margin: 12px 0; }
.lpv-article pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--soft); padding: 14px; border-radius: 10px; }

/* Sub scena: titlu, meta, CTA */
.lpv-info { max-width: 1000px; padding-block: 28px 48px; }
.lpv-h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
.lpv-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 20px; align-items: center; background: linear-gradient(180deg, var(--tint), var(--card)); }
.lpv-cta h2 { font-size: 20px; }
.lpv-cta p { margin: 0; }
.lpv-cta .enroll-zone { display: grid; gap: 8px; }
.lpv-cta .enroll-note { text-align: center; margin: 0; }

/* Coloana din dreapta */
.lpv-sh { border-bottom: 1px solid var(--line); }
.pside .lpv-it { gap: 2px; min-width: 0; }
.pside div.it { display: flex; gap: 12px; padding: 12px 18px; color: var(--text); font-size: 14px; border-bottom: 1px solid var(--line-2); }
.pside a.it { min-height: 44px; }
.pside a.it .ck { border-color: var(--blue); color: var(--blue-t); }
.lpv-all > summary { cursor: pointer; list-style: none; align-items: center; min-height: 48px; }
.lpv-all > summary::-webkit-details-marker { display: none; }
.lpv-all > summary::after { content: "\F282"; font-family: "bootstrap-icons"; font-weight: 400; transition: transform .2s; }
.lpv-all[open] > summary::after { transform: rotate(180deg); }
.lpv-all > summary > span:first-child { margin-right: auto; }
.lpv-sec { padding: 10px 18px; border-bottom: 1px solid var(--line-2); color: var(--ink); }

@media (max-width: 1000px) {
  .lpv-stage { min-height: 280px; }
}
@media (max-width: 640px) {
  .lpv-bar .wrap, .lpv-info { padding-inline: 16px; }
  .lpv-stage { padding: 20px 12px; }
  .lpv-cta { grid-template-columns: 1fr; }
  .reader .lpv-article { padding: 28px 16px; font-size: 16px; }
}

/* Articolul: titlul si meta deasupra textului (R-12). */
.lpv-ahead { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.lpv-article .lpv-ahead h1.lpv-h1 { margin: 0; }
