/* Presentation mode overlay styles */

.pres-toggle {
  position: fixed;
  top: 16px;
  right: 56px;
  z-index: 999;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.pres-toggle:hover { opacity: 1; }

#pres-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px;
  background: var(--bg);
  border-top: 1px solid var(--border-bright);
  font-family: 'DM Sans', sans-serif;
}
#pres-bar button {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  color: var(--text);
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
#pres-bar button:hover {
  background: var(--surface-elevated);
}
#pres-counter {
  color: var(--text-dim);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  min-width: 60px;
  text-align: center;
}

/* Presentation mode body state */
body.presentation-mode .toc { display: none; }
body.presentation-mode .main {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 60px;
  padding-bottom: 80px;
}
body.presentation-mode .wrap {
  display: block;
}
body.presentation-mode .main > hr { display: none; }
body.presentation-mode .main > section {
  display: none;
}
body.presentation-mode .main > section.slide-active {
  display: block;
}

/* Kill page-load fadeUp animations — slides appear instantly */
body.presentation-mode .anim {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Smooth transitions for slides */
body.presentation-mode section,
body.presentation-mode .main > [id] {
  animation: slideIn 0.2s ease-out;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1000px) {
  body.presentation-mode .main {
    padding-top: 20px;
  }
  .pres-toggle { top: 12px; right: 52px; }
}
