/* ============================================================
   present.css — Presentation mode: full-screen slide deck.
   ============================================================ */

/* ---------- Presentation mode ---------- */

#present-overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  outline: none;
}

#present-overlay.hidden {
  display: none;
}

.pres-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 10px 16px;
}

.pres-counter {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.pres-close {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.pres-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pres-stage {
  flex: 1;
  overflow-y: auto;
  width: min(880px, calc(100% - 120px));
  margin: 0 auto;
  padding: 28px 10px 40px;
  font-size: 1.25rem;
}

.pres-stage.pres-in {
  animation: presIn 0.22s ease-out;
}

@keyframes presIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.pres-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--text-muted);
  border-radius: var(--radius-lg);
  cursor: pointer;
  user-select: none;
  opacity: 0.35;
}

.pres-nav:hover {
  opacity: 1;
  background: var(--bg-panel);
  color: var(--text);
}

.pres-prev { left: 8px; }
.pres-next { right: 8px; }

.pres-progress {
  height: 3px;
  background: var(--bg-panel);
}

.pres-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.2s ease;
}

#present-overlay[dir="rtl"] .pres-bar {
  margin-inline-start: auto;
}
