/**
 * Slide Deck Framework — Terminal Noir Theme
 * A professional cybersecurity-styled presentation framework
 * with presenter mode, BroadcastChannel sync, and speaker notes.
 *
 * Usage:
 *   <link rel="stylesheet" href="slides.css">
 *   <script src="slides.js"></script>
 *
 * Required HTML structure:
 *   - .deck container with .slide children
 *   - #progress, #counter, #notes, #help elements
 *   - See template.html for full example
 */

/* ═══════════════════════════════════════════════════════════════════
   CSS VARIABLES — Terminal Noir Palette
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Core palette - deep blacks with electric accents */
  --bg-primary: #05080f;
  --bg-secondary: #0a0f1a;
  --bg-card: #0d1420;
  --bg-code: #080c14;
  --surface: #111827;

  /* Text hierarchy */
  --text-primary: #e8edf5;
  --text-secondary: #8b9bb4;
  --text-muted: #4a5568;

  /* Accent colors - electric cyber palette */
  --accent: #00f5d4;
  --accent-dim: rgba(0, 245, 212, 0.15);
  --accent-glow: rgba(0, 245, 212, 0.2);
  --cyan: #00f5d4;
  --cyan-dim: rgba(0, 245, 212, 0.08);
  --cyan-glow: rgba(0, 245, 212, 0.15);

  /* Status colors */
  --red: #ff3860;
  --red-dim: rgba(255, 56, 96, 0.1);
  --red-glow: rgba(255, 56, 96, 0.2);
  --green: #00ff88;
  --green-dim: rgba(0, 255, 136, 0.08);
  --green-glow: rgba(0, 255, 136, 0.15);
  --blue: #3a86ff;
  --blue-dim: rgba(58, 134, 255, 0.1);
  --yellow: #ffbe0b;
  --yellow-dim: rgba(255, 190, 11, 0.08);
  --amber: #ffbe0b;
  --amber-dim: rgba(255, 190, 11, 0.08);
  --purple: #9d4edd;
  --purple-dim: rgba(157, 78, 221, 0.1);

  /* Borders and lines */
  --border: rgba(0, 245, 212, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.05);

  /* Typography */
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-display: "Outfit", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

/* ═══════════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════════ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* Scanline overlay effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

/* ═══════════════════════════════════════════════════════════════════
   SLIDE CONTAINER & ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */

.deck {
  /* Design resolution - slides are authored at this size */
  --design-width: 1920px;
  --design-height: 1080px;

  width: var(--design-width);
  height: var(--design-height);
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  /* Scale is set by JavaScript based on viewport */
  transform: translate(-50%, -50%) scale(var(--slide-scale, 1));
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  /* Fixed padding at design resolution - generous top/bottom for corner brackets */
  padding: 100px 120px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  overflow: hidden;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Corner decorations for slides */
.slide::before,
.slide::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid var(--cyan);
  opacity: 0.3;
  pointer-events: none;
}

.slide::before {
  top: 80px;
  left: 80px;
  border-right: none;
  border-bottom: none;
}

.slide::after {
  bottom: 80px;
  right: 80px;
  border-left: none;
  border-top: none;
}

/* Entrance animations */
.slide.active .animate-in {
  animation: slideUp 0.5s ease forwards;
}

.slide.active .animate-in:nth-child(2) { animation-delay: 0.08s; }
.slide.active .animate-in:nth-child(3) { animation-delay: 0.16s; }
.slide.active .animate-in:nth-child(4) { animation-delay: 0.24s; }
.slide.active .animate-in:nth-child(5) { animation-delay: 0.32s; }
.slide.active .animate-in:nth-child(6) { animation-delay: 0.4s; }
.slide.active .animate-in:nth-child(7) { animation-delay: 0.48s; }
.slide.active .animate-in:nth-child(8) { animation-delay: 0.56s; }

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════════ */

h1 {
  font-family: var(--font-display);
  font-size: 86px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.4em;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5em;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 0.5em;
  color: var(--text-secondary);
}

p, li {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
}

.subtitle {
  font-size: 36px;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1em;
}

code {
  font-family: var(--font-mono);
  background: var(--bg-code);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--cyan);
  border: 1px solid var(--border);
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* Color utility classes */
.accent { color: var(--accent); }
.cyan { color: var(--cyan); }
.red { color: var(--red); }
.green { color: var(--green); }
.blue { color: var(--blue); }
.yellow { color: var(--yellow); }
.purple { color: var(--purple); }
.muted { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════
   SECTION LABEL — Cyber Terminal Style
   ═══════════════════════════════════════════════════════════════════ */

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 1.5em;
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.section-label::before {
  content: "▸";
  font-size: 1em;
  animation: blink 1s step-end infinite;
}

.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  max-width: 200px;
}

/* ═══════════════════════════════════════════════════════════════════
   DANGER LIST (for warnings/horror stories)
   ═══════════════════════════════════════════════════════════════════ */

.danger-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65em;
  margin-top: 0.5em;
}

.danger-list li {
  padding: 0.6em 1em;
  background: linear-gradient(135deg, var(--red-dim) 0%, transparent 100%);
  border-left: 3px solid var(--red);
  border-radius: 0 6px 6px 0;
  font-size: 28px;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(10px);
}

.slide.active .danger-list li {
  animation: slideUp 0.4s ease forwards;
}
.slide.active .danger-list li:nth-child(1) { animation-delay: 0.15s; }
.slide.active .danger-list li:nth-child(2) { animation-delay: 0.25s; }
.slide.active .danger-list li:nth-child(3) { animation-delay: 0.35s; }
.slide.active .danger-list li:nth-child(4) { animation-delay: 0.45s; }
.slide.active .danger-list li:nth-child(5) { animation-delay: 0.55s; }
.slide.active .danger-list li:nth-child(6) { animation-delay: 0.65s; }

/* ═══════════════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════════════ */

.layer-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1em;
  font-size: 26px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.layer-table th {
  text-align: left;
  padding: 0.8em 1.2em;
  background: var(--bg-card);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  border-bottom: 2px solid var(--cyan);
}

.layer-table th:first-child { border-radius: 8px 0 0 0; }
.layer-table th:last-child { border-radius: 0 8px 0 0; }

.layer-table td {
  padding: 0.8em 1.2em;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.layer-table tr:last-child td { border-bottom: none; }
.layer-table tr:last-child td:first-child { border-radius: 0 0 0 8px; }
.layer-table tr:last-child td:last-child { border-radius: 0 0 8px 0; }
.layer-table tr:hover td { background: var(--bg-card); }

.layer-table .layer-name {
  font-weight: 600;
  color: var(--text-primary);
}

.tool-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 0.8em;
  font-size: 24px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.tool-table th {
  text-align: left;
  padding: 0.6em 1em;
  background: var(--bg-card);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--cyan);
}

.tool-table td {
  padding: 0.6em 1em;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.tool-table tr:last-child td { border-bottom: none; }

.tool-table .tool-name {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════════
   CODE BLOCKS — Terminal Style
   ═══════════════════════════════════════════════════════════════════ */

.code-block {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5em 1.8em 1.4em 1.8em;
  margin: 0.8em 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1.8;
  color: var(--text-secondary);
  position: relative;
}

.code-block::before {
  content: "●  ●  ●";
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--text-muted);
  opacity: 0.5;
}

.code-block .comment { color: #5c6773; font-style: italic; }
.code-block .keyword { color: var(--red); }
.code-block .string { color: var(--green); }
.code-block .func { color: var(--cyan); }
.code-block .attr { color: var(--blue); }
.code-block .value { color: var(--yellow); }
.code-block .type { color: var(--purple); }

.code-block .highlight-line {
  background: var(--accent-glow);
  display: block;
  margin: 0 -1.8em;
  padding: 0 1.8em;
  border-left: 3px solid var(--accent);
}

/* Compact code block for slides with lots of content */
.code-block.compact {
  font-size: 18px;
  line-height: 1.5;
  padding: 2em 1.4em 1em 1.4em;
}

.code-block.compact::before {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT: COLUMNS & SPLIT
   ═══════════════════════════════════════════════════════════════════ */

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  margin-top: 1em;
}

.columns.three {
  grid-template-columns: 1fr 1fr 1fr;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5em;
  align-items: start;
  margin-top: 0.5em;
}

.split-wide-right {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2.5em;
  align-items: start;
  margin-top: 0.5em;
}

/* ═══════════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════════ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5em;
  position: relative;
  overflow: hidden;
}

.card h3 {
  font-size: 28px;
  color: var(--text-primary);
  margin-bottom: 0.4em;
}

.card p {
  font-size: 24px;
  color: var(--text-muted);
}

.card.accent-border {
  border-color: var(--accent);
  box-shadow: 0 0 20px -10px var(--accent);
}
.card.accent-border::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.card.red-border {
  border-color: var(--red);
  box-shadow: 0 0 20px -10px var(--red);
}
.card.red-border::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
}

.card.green-border {
  border-color: var(--green);
  box-shadow: 0 0 20px -10px var(--green);
}
.card.green-border::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--green);
}

.card.blue-border {
  border-color: var(--blue);
  box-shadow: 0 0 20px -10px var(--blue);
}
.card.blue-border::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
}

/* ═══════════════════════════════════════════════════════════════════
   CALLOUT / QUOTE
   ═══════════════════════════════════════════════════════════════════ */

.callout {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.3;
  color: var(--text-primary);
  border-left: 4px solid var(--accent);
  padding-left: 1em;
  margin: 0.8em 0;
}

blockquote {
  border-left: 3px solid var(--cyan);
  padding: 0.8rem 1.2rem;
  margin: 1rem 0;
  font-style: italic;
  color: var(--text-secondary);
  background: linear-gradient(90deg, var(--cyan-dim), transparent);
  border-radius: 0 8px 8px 0;
}

/* ═══════════════════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════════════════ */

.badge {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8em;
  font-weight: 600;
}

.badge.red { background: var(--red-dim); color: var(--red); }
.badge.green { background: var(--green-dim); color: var(--green); }
.badge.blue { background: var(--blue-dim); color: var(--blue); }
.badge.yellow { background: var(--yellow-dim); color: var(--yellow); }
.badge.accent { background: var(--accent-glow); color: var(--accent); }
.badge.purple { background: var(--purple-dim); color: var(--purple); }

/* ═══════════════════════════════════════════════════════════════════
   TAKEAWAY STRIP
   ═══════════════════════════════════════════════════════════════════ */

.takeaway {
  background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 100%);
  border: 1px solid var(--accent-dim);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 1em 1.5em;
  margin-top: 1em;
  font-size: 28px;
  color: var(--text-primary);
}

.takeaway::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.5em;
}

/* ═══════════════════════════════════════════════════════════════════
   COMPACT LIST
   ═══════════════════════════════════════════════════════════════════ */

.compact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.compact-list li {
  padding-left: 1.2em;
  position: relative;
  font-size: 26px;
}

.compact-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════
   VULNERABILITY EXAMPLE
   ═══════════════════════════════════════════════════════════════════ */

.vuln-example {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5em;
  margin-top: 0.8em;
}

.vuln-example .vuln-header {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-bottom: 0.8em;
}

.vuln-example .vuln-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════════════
   COST GRID
   ═══════════════════════════════════════════════════════════════════ */

.cost-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  margin-top: 1em;
}

.cost-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2em 1.5em;
}

.cost-card h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.6em;
}

.cost-card .cost-items {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.cost-item .cost-value {
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   ADOPTION PATH
   ═══════════════════════════════════════════════════════════════════ */

.adoption-path {
  display: flex;
  gap: 1em;
  margin-top: 1.5em;
  align-items: stretch;
}

.adoption-step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5em;
  position: relative;
}

.adoption-step .step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.adoption-step h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.3em;
}

.adoption-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.adoption-arrow {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════
   SLIDE VARIANTS
   ═══════════════════════════════════════════════════════════════════ */

/* Title slide */
.slide.title-slide {
  justify-content: center;
  text-align: left;
}

.title-slide h1 {
  font-size: 100px;
  max-width: 85%;
  line-height: 1.05;
}

.title-slide .subtitle {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.title-meta {
  display: flex;
  gap: 2em;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  align-items: center;
}

.title-meta span {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-muted);
}

/* Section divider slide */
.slide.section-slide {
  justify-content: center;
  background:
    radial-gradient(ellipse at 30% 50%, var(--cyan-dim) 0%, transparent 50%),
    var(--bg-primary);
}

.section-slide .section-number {
  font-family: var(--font-display);
  font-size: 200px;
  font-weight: 900;
  color: var(--cyan);
  opacity: 0.08;
  position: absolute;
  top: 80px;
  right: 100px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-slide h2 {
  font-size: 72px;
  background: none;
  -webkit-text-fill-color: var(--text-primary);
}

.section-slide h2::after {
  display: none;
}

.section-slide .subtitle {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--cyan);
  text-transform: none;
  letter-spacing: 0.02em;
}

/* Centered slide */
.slide.centered {
  align-items: center;
  text-align: center;
}

.slide.centered h2 { max-width: 80%; }
.slide.centered p { max-width: 65%; }

/* Demo badge */
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.8em;
  background: var(--green-dim);
  border: 1px solid var(--green);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1em;
}

.demo-badge::before {
  content: "▶";
  font-size: 0.65em;
}

/* ═══════════════════════════════════════════════════════════════════
   UI ELEMENTS
   ═══════════════════════════════════════════════════════════════════ */

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  box-shadow: 0 0 10px var(--cyan);
  transition: width 0.4s ease;
  z-index: 100;
}

/* Slide counter - UI overlay, positioned relative to viewport */
.slide-counter {
  position: fixed;
  bottom: 20px;
  right: 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.4em 0.8em;
  border-radius: 4px;
  border: 1px solid var(--border);
  z-index: 100;
}

/* Speaker notes */
.speaker-notes {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 15, 26, 0.97);
  border-top: 2px solid var(--accent);
  padding: 1.5em 3em;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-height: 30vh;
  overflow-y: auto;
  z-index: 200;
  backdrop-filter: blur(10px);
}

.speaker-notes.visible {
  display: block;
}

.speaker-notes strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Background grid */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 245, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 212, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

/* ═══════════════════════════════════════════════════════════════════
   HELP OVERLAY
   ═══════════════════════════════════════════════════════════════════ */

.help-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 8, 15, 0.95);
  z-index: 300;
  justify-content: center;
  align-items: center;
}

.help-overlay.visible {
  display: flex;
}

.help-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5em;
  max-width: 500px;
}

.help-content h3 {
  color: var(--text-primary);
  margin-bottom: 1em;
  font-size: 1.3rem;
}

.help-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5em 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.help-row:last-child {
  border: none;
}

.help-key {
  font-family: var(--font-mono);
  background: var(--bg-primary);
  padding: 0.15em 0.5em;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════
   PRESENTER MODE
   ═══════════════════════════════════════════════════════════════════ */

.presenter-mode .speaker-notes {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 300px;
  max-height: 25vh;
}

.presenter-info {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 2px solid var(--accent);
  padding: 1.5em;
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  z-index: 200;
}

/* Presenter mode: deck stays same size, just positioned differently */
.presenter-mode .deck {
  left: calc((100vw - 300px) / 2);
}

.presenter-timer {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 0.8em 1em;
  text-align: center;
  border: 1px solid var(--border);
}

.presenter-time {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.presenter-current,
.presenter-next {
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1em;
  border: 1px solid var(--border);
}

.presenter-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5em;
}

.presenter-slide-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.presenter-next-title {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════════
   DISPLAY MODE
   ═══════════════════════════════════════════════════════════════════ */

.display-mode .progress-bar {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════════
   LINKS
   ═══════════════════════════════════════════════════════════════════ */

a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

a:hover {
  border-bottom-color: var(--cyan);
}

/* ═══════════════════════════════════════════════════════════════════
   CUSTOM SCROLLBAR
   ═══════════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}
