/* =====================================================================
   present.css - mod prezentare pentru proiector
   ===================================================================== */

/* butonul de pornire, asezat intre chip-urile din antet */
.pv-launch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--c-mc);
  background: var(--c-mc);
  color: #fff;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.pv-launch:hover { filter: brightness(1.08); transform: translateY(-1px); }
.pv-launch span { font-size: 0.9em; }

/* ---------- bara de comanda ---------- */
.pv-bar { display: none; }

body.pv-on .pv-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10000;
  padding: 9px 16px;
  background: rgba(18,53,38, 0.96);
  color: #f2f1eb;
  font-family: var(--mono);
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
body.pv-on .pv-bar .pv-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #b2c5d2;
}
body.pv-on .pv-bar .pv-pos { min-width: 62px; text-align: center; color: #ffd08a; font-weight: 600; }
body.pv-on .pv-bar .pv-clock { color: #a5d3b7; font-variant-numeric: tabular-nums; }
body.pv-on .pv-bar .pv-plan { color: #d5d2c4; font-size: 0.78rem; white-space: nowrap; }

.pv-b {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f2f1eb;
  border-radius: 7px;
  padding: 4px 11px;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
}
.pv-b:hover:not(:disabled) { background: rgba(255, 255, 255, 0.2); }
.pv-b:disabled { opacity: 0.32; cursor: default; }

/* ---------- pagina in mod prezentare ---------- */
body.pv-on { overflow: hidden; background: #fff; }
body.pv-on .site-header,
body.pv-on .lab-hero,
body.pv-on .lab-toc,
body.pv-on .site-footer,
body.pv-on .lab-nav,
body.pv-on .lab-lead { display: none !important; }

body.pv-on .lab-layout { display: block; margin: 0; padding: 0; max-width: none; }
body.pv-on .lab-body { max-width: none; margin: 0; padding: 0; }

/* ascunde tot, arata doar sectiunea curenta */
body.pv-on .lab-body > section[id] { display: none; }

body.pv-on .lab-body > section.pv-cur {
  display: block;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 46px;
  overflow-y: auto;
  padding: 30px clamp(28px, 6vw, 92px) 40px;
  background: #fff;
  animation: pv-in 0.22s ease;
}
@keyframes pv-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* tipografie marita pentru sala */
body.pv-on .lab-body > section.pv-cur { font-size: clamp(1.02rem, 1.34vw, 1.42rem); line-height: 1.62; }
body.pv-on .lab-body > section.pv-cur h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  margin: 0 0 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-mc);
}
body.pv-on .lab-body > section.pv-cur h2 .h-min { display: none; }
body.pv-on .lab-body > section.pv-cur h3 { font-size: clamp(1.14rem, 1.7vw, 1.66rem); margin-top: 22px; }
body.pv-on .lab-body > section.pv-cur li { margin-bottom: 8px; }
body.pv-on .lab-body > section.pv-cur table { font-size: 0.86em; }
body.pv-on .lab-body > section.pv-cur pre { font-size: 0.8em; line-height: 1.5; }
body.pv-on .lab-body > section.pv-cur .viz-stage svg { max-height: 54vh; }

/* rezolvarile ascunse se deschid la clic, ca in mod normal */
body.pv-on .lab-body > section.pv-cur details { font-size: 0.94em; }

/* ---------- vedere de ansamblu (G) ---------- */
body.pv-grid .lab-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 46px;
  overflow-y: auto;
  padding: 18px;
  background: #f3f2ee;
}
body.pv-grid .lab-body > section.pv-cur {
  position: static;
  display: block;
  height: 168px;
  overflow: hidden;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  font-size: 0.74rem;
  line-height: 1.4;
  cursor: pointer;
  animation: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent);
  mask-image: linear-gradient(180deg, #000 68%, transparent);
}
body.pv-grid .lab-body > section.pv-cur:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
body.pv-grid .lab-body > section.pv-cur h2 {
  font-size: 0.86rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 8px;
}
/* in miniaturi coloana e prea ingusta pentru aliniere pe ambele margini */
body.pv-grid .lab-body > section.pv-cur p,
body.pv-grid .lab-body > section.pv-cur li,
body.pv-grid .lab-body > section.pv-cur figcaption { text-align: left; }

body.pv-grid .lab-body > section.pv-cur .viz,
body.pv-grid .lab-body > section.pv-cur pre,
body.pv-grid .lab-body > section.pv-cur table { display: none; }

@media print { .pv-launch, .pv-bar { display: none !important; } }
