/* ============================================================
   LEAG 2026 – Escape Room / KI Dark Presentation Theme
   ============================================================ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121c;
  --bg-card: rgba(18, 18, 30, 0.85);
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff00c8;
  --neon-green: #39ff14;
  --text-primary: #e8e8f0;
  --text-muted: #8888aa;
  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.4), 0 0 60px rgba(0, 240, 255, 0.15);
  --glow-magenta: 0 0 20px rgba(255, 0, 200, 0.4), 0 0 60px rgba(255, 0, 200, 0.15);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* --- Reveal.js Overrides --- */

.reveal-viewport {
  background: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(0, 240, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(255, 0, 200, 0.04) 0%, transparent 60%);
}

.reveal {
  font-family: var(--font-body);
  font-size: 32px;
  color: var(--text-primary);
}

.reveal h1, .reveal h2, .reveal h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}

.reveal h1 {
  font-size: 2.4em;
  margin-bottom: 0.3em;
}

.reveal h2 {
  font-size: 1.6em;
  margin-bottom: 0.4em;
}

.reveal h3 {
  font-size: 1.1em;
  color: var(--neon-magenta);
  text-shadow: var(--glow-magenta);
}

.reveal p, .reveal li {
  line-height: 1.6;
  color: var(--text-primary);
}

.reveal ul {
  list-style: none;
  padding-left: 0;
}

.reveal ul li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 0.5em;
}

.reveal ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--neon-cyan);
  font-weight: bold;
}

.reveal a {
  color: var(--neon-cyan);
  text-decoration: none;
}

.reveal strong {
  color: var(--neon-magenta);
  font-weight: 700;
}

.reveal code {
  font-family: var(--font-mono);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  font-size: 0.85em;
  color: var(--neon-green);
}

.reveal pre {
  width: 100%;
  box-shadow: none;
}

.reveal pre code {
  background: var(--bg-secondary);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 8px;
  padding: 1em;
  font-size: 0.65em;
  max-height: 500px;
  display: block;
}

/* --- Slide Layouts --- */

.slide-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.slide-title .subtitle {
  font-family: var(--font-body);
  font-size: 0.55em;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
  margin-top: 0.4em;
  text-shadow: none;
}

.slide-title .event-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.38em;
  color: var(--neon-magenta);
  border: 1px solid rgba(255, 0, 200, 0.3);
  padding: 0.3em 1em;
  border-radius: 999px;
  text-shadow: var(--glow-magenta);
  margin-bottom: 1.5em;
  letter-spacing: 0.12em;
}

.slide-title .speaker {
  font-family: var(--font-body);
  font-size: 0.42em;
  color: var(--text-muted);
  margin-top: 1.5em;
  text-shadow: none;
  text-transform: none;
  letter-spacing: 0;
}

/* --- Poll Slide --- */

.slide-poll {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  grid-template-rows: auto 1fr;
  gap: 1.5em;
  height: 100%;
  align-items: start;
  padding: 1em 0;
}

.slide-poll h2 {
  grid-column: 1 / -1;
  text-align: center;
  margin: 0;
  font-size: 1.3em;
}

.poll-qr-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1em;
}

.poll-qr-area img {
  width: 250px;
  height: 250px;
  border: 2px solid rgba(0, 240, 255, 0.2);
  border-radius: 12px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.4);
}

.poll-qr-area .qr-label {
  font-family: var(--font-display);
  font-size: 0.45em;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.poll-qr-area .qr-url {
  font-family: var(--font-mono);
  font-size: 0.4em;
  color: var(--text-muted);
}

.poll-chart-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.poll-chart-area canvas {
  max-height: 400px;
  width: 100% !important;
}

.poll-vote-count {
  font-family: var(--font-display);
  font-size: 0.5em;
  color: var(--text-muted);
  margin-top: 0.8em;
  letter-spacing: 0.1em;
}

.poll-vote-count span {
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  font-size: 1.4em;
}

/* --- Content Slide --- */

.slide-content {
  text-align: left;
  padding: 0.5em 1em;
}

.slide-content h2 {
  text-align: left;
  border-bottom: 2px solid rgba(0, 240, 255, 0.15);
  padding-bottom: 0.3em;
  margin-bottom: 0.8em;
}

/* --- Particles Background --- */

#particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Animations --- */

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

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

.reveal .slides section.present h1,
.reveal .slides section.present h2 {
  animation: fadeInUp 0.8s ease-out;
}

.reveal .slides section.present .poll-qr-area {
  animation: fadeInUp 1s ease-out 0.2s both;
}

.reveal .slides section.present .poll-chart-area {
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* --- Progress Bar --- */

.reveal .progress span {
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
}

/* --- Controls --- */

.reveal .controls .navigate-left,
.reveal .controls .navigate-right,
.reveal .controls .navigate-up,
.reveal .controls .navigate-down {
  color: var(--neon-cyan);
}

/* --- Slide Number --- */

.reveal .slide-number {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-muted);
  background: transparent;
}
