@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Color Palette - Light / Clean Tech */
  --bg-dark-1: #eef4fb;
  --bg-dark-2: #f8fbff;
  --bg-card: rgba(255, 255, 255, 0.72);
  --bg-card-hover: rgba(255, 255, 255, 0.96);
  --border-card: rgba(15, 50, 130, 0.14);
  --border-card-glow: rgba(8, 145, 178, 0.5);

  --accent-cyan: #0891b2;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-magenta: #db2777;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --glow-cyan: 0 0 25px rgba(8, 145, 178, 0.25);
  --glow-purple: 0 0 25px rgba(124, 58, 237, 0.25);
}

/* Base Reveal Override */
.reveal-viewport {
  background: radial-gradient(circle at 50% 0%, #ffffff 0%, #eef4fb 55%, #e3ecf7 100%) !important;
  color: var(--text-main);
  font-family: var(--font-body);
}

.reveal {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 400;
  color: var(--text-main);
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  font-family: var(--font-heading);
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.reveal h1 {
  font-weight: 800;
  font-size: 2.5em;
  background: linear-gradient(135deg, #0f172a 25%, var(--accent-cyan) 80%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.3em;
  line-height: 1.15;
}

.reveal h2 {
  font-weight: 700;
  font-size: 1.8em;
  color: var(--text-main);
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.reveal pre {
  box-shadow: none;
  margin: 0;
  padding: 5px;
  width: 98%;
  border: #aaa 1px solid;
}

.reveal h2::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 1.1em;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
  border-radius: 4px;
}

.reveal h3 {
  font-weight: 600;
  font-size: 1.05em;
  color: var(--accent-cyan);
  margin-bottom: 0.4em;
}

/* Custom Slide Header / Subtitle */
.slide-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #0e7490;
  background: rgba(8, 145, 178, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(8, 145, 178, 0.3);
  display: inline-block;
  margin-bottom: 8px;
  float: right;
}

/* Header & Footer Persistent Overlays */
.presentation-header {
  position: fixed;
  top: 18px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  pointer-events: none;
  font-family: var(--font-body);
}

.presentation-header .logo-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.presentation-header .logo-badge span.highlight {
  color: var(--accent-cyan);
  font-weight: 700;
}

.presentation-header .cvut-tag {
  background: rgba(8, 145, 178, 0.12);
  color: #0e7490;
  border: 1px solid rgba(8, 145, 178, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Layout Grids */
.slide-grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  text-align: left;
}

.slide-grid-2.equal {
  grid-template-columns: 1fr 1fr;
}

.slide-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.slide-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  text-align: left;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 10px 30px rgba(30, 60, 120, 0.12);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-glow);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(30, 60, 120, 0.2), var(--glow-cyan);
}

.glass-card.accent-purple:hover {
  box-shadow: 0 15px 35px rgba(30, 60, 120, 0.2), var(--glow-purple);
}

/* Highlight boxes */
.highlight-card {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.85), rgba(237, 233, 254, 0.85));
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 14px 0;
}

.highlight-card.alert {
  background: linear-gradient(135deg, rgba(254, 226, 232, 0.85), rgba(254, 243, 199, 0.85));
  border-color: rgba(225, 29, 72, 0.35);
}

/* List Styling */
.reveal ul.custom-list,
.reveal ol.custom-list {
  list-style: none;
  padding-left: 0;
  margin: 0.6em 0;
}



.reveal ul.custom-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.45;
  font-size: 0.86em;
}

.reveal ul.custom-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-cyan);
  font-size: 1.2em;
  font-weight: 700;
}

.reveal ul.custom-list li.sub-item {
  padding-left: 44px;
  font-size: 0.88em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.reveal ul.custom-list li.sub-item::before {
  content: '▪';
  left: 24px;
  color: var(--accent-purple);
  font-size: 0.9em;
}

/* Spec Badges */
.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid rgba(100, 116, 139, 0.25);
  color: #334155;
}

.spec-badge-big {
  font-size: 1.5rem;
}

.spec-badge.cyan {
  background: rgba(8, 145, 178, 0.1);
  border-color: rgba(8, 145, 178, 0.35);
  color: #0e7490;
}

.spec-badge.purple {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.35);
  color: #6d28d9;
}

.spec-badge.emerald {
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.35);
  color: #047857;
}

.spec-badge.amber {
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.35);
  color: #b45309;
}

.spec-badge.rose {
  background: rgba(255, 92, 92, 0.1);
  border-color: rgba(255, 16, 16, 0.35);
  color: #ff0000;
}

/* Images and Figure Containers */
.image-showcase {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(100, 116, 139, 0.2);
  box-shadow: 0 12px 24px rgba(30, 60, 120, 0.14);
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-showcase img {
  max-height: 480px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 !important;
  display: block;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.image-showcase:hover img {
  transform: scale(1.02);
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 14px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0) 100%);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

/* Hero / Title Slide */
.title-hero {
  padding: 40px;
  text-align: center;
}

.title-hero .vr-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0e7490;
  background: linear-gradient(90deg, rgba(8, 145, 178, 0.15), rgba(124, 58, 237, 0.15));
  border: 1px solid rgba(8, 145, 178, 0.4);
  box-shadow: 0 8px 20px rgba(30, 60, 120, 0.12);
  margin-bottom: 24px;
}

.title-hero h1 {
  font-size: 3.6em;
  margin-bottom: 0.2em;
}

.title-hero .authors {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.title-hero .author-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  padding: 12px 24px;
  text-align: left;
}

.title-hero .author-name {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--text-main);
}

.title-hero .course-name {
  font-size: 0.85em;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

/* Video Card & Interactive Links */
.video-card {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(241, 245, 249, 0.9));
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.video-card:hover {
  border-color: rgba(225, 29, 72, 0.6);
  box-shadow: 0 8px 25px rgba(225, 29, 72, 0.18);
  transform: translateY(-2px);
}

.video-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.video-details {
  flex-grow: 1;
  text-align: left;
}

.video-title {
  font-weight: 700;
  font-size: 0.95em;
  color: var(--text-main);
  margin-bottom: 2px;
}

.video-url {
  font-family: var(--font-mono);
  font-size: 0.75em;
  color: var(--text-muted);
}

/* Comparison Grids */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.85em;
}

.comparison-table th {
  background: rgba(226, 232, 240, 0.8);
  color: var(--accent-cyan);
  padding: 10px 14px;
  border-bottom: 2px solid rgba(8, 145, 178, 0.45);
  font-weight: 700;
  text-align: left;
}

.comparison-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
}

.comparison-table tr:hover td {
  background: rgba(15, 23, 42, 0.03);
}

/* Custom Navigation Controls in Footer */
.presentation-footer {
  position: fixed;
  bottom: 16px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  pointer-events: none;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.presentation-footer .help-keys {
  display: flex;
  gap: 12px;
}

.presentation-footer kbd {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text-muted);
  font-size: 11px;
}

/* Progress bar customization */
.reveal .progress {
  height: 4px !important;
  background: rgba(15, 23, 42, 0.08) !important;
}

.reveal .progress span {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple)) !important;
}

/* Slide numbers */
.reveal .slide-number {
  background: rgba(255, 255, 255, 0.85) !important;
  color: var(--accent-cyan) !important;
  font-family: var(--font-mono) !important;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 4px 8px;
  bottom: 18px !important;
  right: 24px !important;
}

/* Milgram Reality-Virtuality Continuum */
.continuum-container {
  margin: 24px 0 16px 0;
  position: relative;
}

.continuum-bar {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #059669 0%, #0891b2 35%, #7c3aed 70%, #db2777 100%);
  box-shadow: 0 0 15px rgba(8, 145, 178, 0.3);
  margin: 14px 0;
}

.continuum-labels {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr 1fr;
  gap: 12px;
}

.continuum-node {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  transition: all 0.3s ease;
}

.continuum-node:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

.continuum-title {
  font-weight: 700;
  font-size: 0.95em;
  color: var(--text-main);
  margin-bottom: 4px;
}

.continuum-desc {
  font-size: 0.75em;
  color: var(--text-muted);
  line-height: 1.35;
}

/* DoF (Degrees of Freedom) comparison */
.dof-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8em;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.7);
  margin: 3px;
}

.dof-pill.rot {
  border-left: 3px solid var(--accent-amber);
  color: #b45309;
}

.dof-pill.trans {
  border-left: 3px solid var(--accent-cyan);
  color: #0e7490;
}

/* Application Domain Cards */
.app-domain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  transition: all 0.3s ease;
}

.app-domain-card:hover {
  border-color: var(--border-card-glow);
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

.app-domain-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.app-domain-title {
  font-weight: 700;
  font-size: 1em;
  color: var(--text-main);
  margin-bottom: 4px;
}

.app-domain-list {
  font-size: 0.78em;
  color: var(--text-muted);
  margin: 0;
  padding-left: 16px;
  line-height: 1.4;
}

/* Notice & Callout Badges */
.notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: #be123c;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75em;
  font-weight: 600;
}

/* Interactive Acronym Tooltip System */
.abbr-tag,
abbr[title] {
  text-decoration: underline dotted var(--accent-cyan) 1.5px;
  text-underline-offset: 3px;
  cursor: help;
  color: inherit;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.abbr-tag:hover,
abbr[title]:hover {
  color: var(--accent-cyan);
  text-decoration-color: #0e7490;
}

/* Links (light theme: default #42affa z black.css je na bílém pozadí málo kontrastní) */
.reveal a {
  color: var(--accent-blue);
}

.reveal a:hover {
  color: var(--accent-cyan);
}

#global-tooltip {
  position: fixed;
  z-index: 999999;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(8, 145, 178, 0.5);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18), 0 0 20px rgba(8, 145, 178, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  color: #1e293b;
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  text-align: left;
}

#global-tooltip.active {
  opacity: 1;
  transform: translateY(0);
}

#global-tooltip .tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent-cyan);
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  padding-bottom: 4px;
}

#global-tooltip .tooltip-abbr {
  background: rgba(8, 145, 178, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #0e7490;
}

#global-tooltip .tooltip-body {
  color: #334155;
  font-size: 0.74rem;
}

/* ============================================================
   MVT: Věda — doplňkové styly (přesunuto z mvt-veda.html)
   ============================================================ */

/* Vložená videa & obrázkové galerie */
.video-embed {
  width: 100%;
  max-width: 720px;
  border-radius: 12px;
  border: 1px solid rgba(100, 116, 139, 0.25);
  box-shadow: 0 12px 30px rgba(30, 60, 120, 0.14);
  margin: 8px 0 4px 0;
  background: #000;
  display: block;
}

.video-note {
  font-size: 0.72em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 10px;
  text-align: center;
}

.media-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}

.media-row .image-showcase {
  max-width: 340px;
  flex: 1 1 180px;
}

.media-row .image-showcase img {
  max-height: 300px;
}

.side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 12px;
  align-items: center;
  text-align: left;
}

.side-by-side .image-showcase img {
  max-height: 340px;
}

.mini-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.mini-strip .image-showcase img {
  max-height: 200px;
}

/* Menší nadpisy tam, kde je slide plný obrázků */
.dense h2 {
  font-size: 1.5em;
  margin-bottom: 0.3em;
}

/* Matematické / vědecké symboly */
.sym {
  font-family: 'Cambria Math', 'STIX Two Math', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  color: var(--accent-cyan);
}

.sym.tens {
  font-style: normal;
  font-weight: 800;
}

.field-viz {
  font-size: 0.72em;
  color: var(--text-muted);
  border-top: 1px dashed rgba(15, 23, 42, 0.2);
  padding-top: 8px;
  margin-top: 10px;
  line-height: 1.4;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 10px;
  text-align: left;
}

.fmt-desc {
  display: block;
  font-size: 0.72em;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.35;
}

/* Větší karty potřebují méně vnitřního vysazení, aby se vešly na slide */
.fields .glass-card,
.grids .glass-card {
  padding: 14px 18px;
}

.fields h3,
.grids h3 {
  margin-top: 6px;
  margin-bottom: 2px;
}

.fields .badge-group {
  margin: 6px 0;
}

.fields .custom-list li {
  margin-bottom: 6px;
}

.grids svg {
  height: 88px !important;
}

.grids .fmt-desc {
  font-size: 0.68em;
  margin-top: 2px;
}

.grids .glass-card h3 {
  font-size: 1.05em;
}

.glass-card p,
.highlight-card p {
  font-size: 0.86em;
}