/* ========================================================
   Valná hromada SDH Baška - Hlavní prémiový styl (Dark Mode)
   ======================================================== */

:root {
  --bg-primary: #07090e;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(31, 41, 55, 0.9);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(239, 68, 68, 0.5);
  
  --fire-red: #ef4444;
  --fire-red-dark: #b91c1c;
  --fire-gold: #f59e0b;
  --fire-gold-glow: rgba(245, 158, 11, 0.2);
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition-speed: 0.35s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Glassmorphism panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Tlačítka */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-size: 1.1rem;
  padding: 14px 28px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--fire-red), var(--fire-red-dark));
  color: #fff;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #f87171, var(--fire-red));
  box-shadow: 0 6px 25px rgba(239, 68, 68, 0.6);
}

.btn-gold {
  background: linear-gradient(135deg, #fbbf24, var(--fire-gold));
  color: #000;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-green {
  background: linear-gradient(135deg, #34d399, var(--accent-green));
  color: #fff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ========================================================
   PROJEKTOR CANVAS (16:9 Fullscreen)
   ======================================================== */
.projector-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.projector-canvas {
  width: 100vw;
  height: 56.25vw; /* 16:9 aspect ratio */
  max-height: 100vh;
  max-width: 177.78vh; /* 16:9 aspect ratio */
  position: relative;
  background: radial-gradient(circle at 50% 20%, #151c2e 0%, #07090e 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Jemné Fade přechody */
.fade-container {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-speed) ease-in-out, visibility var(--transition-speed);
  display: flex;
  flex-direction: column;
}

.fade-container.active {
  opacity: 1;
  visibility: visible;
}

/* ========================================================
   PASIVNÍ REŽIM - SCÉNY
   ======================================================== */

/* 1. Titulní scéna */
.scene-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 40px;
}
.sdh-crest {
  width: 150px;
  height: 150px;
  margin-bottom: 30px;
  filter: drop-shadow(0 10px 25px rgba(245, 158, 11, 0.4));
}
.meeting-heading {
  font-size: 4.2vw;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff 40%, var(--fire-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.meeting-subheading {
  font-size: 2.2vw;
  color: var(--text-muted);
  margin-bottom: 25px;
}
.meeting-badge {
  display: inline-block;
  padding: 10px 24px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: 9999px;
  font-size: 1.3vw;
  font-weight: 600;
  letter-spacing: 1px;
}

/* 2. Program schůze na plátně */
.scene-agenda {
  padding: 3.5vw 5vw;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.agenda-header {
  font-size: 2.5vw;
  font-weight: 800;
  color: var(--fire-gold);
  margin-bottom: 2vw;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1vw;
}
.agenda-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2vw 2.5vw;
  flex: 1;
}
.agenda-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0.8vw 1.2vw;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid transparent;
  transition: all 0.3s;
}
.agenda-row.active {
  background: rgba(239, 68, 68, 0.18);
  border-left-color: var(--fire-red);
  transform: translateX(8px);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}
.agenda-row.done {
  opacity: 0.55;
  border-left-color: var(--accent-green);
}
.agenda-num {
  font-size: 1.3vw;
  font-weight: 800;
  width: 2.2vw;
  color: var(--fire-gold);
}
.agenda-text {
  flex: 1;
  font-size: 1.35vw;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.agenda-status-badge {
  font-size: 0.95vw;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}
.agenda-status-badge.active {
  background: var(--fire-red);
  color: #fff;
  animation: pulse 1.5s infinite;
}
.agenda-status-badge.done {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
}

/* 3. Fotogalerie na plátně */
.scene-photos {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.photo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.photo-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5vw 4vw;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  color: #fff;
}
.photo-caption-text {
  font-size: 2vw;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* 4. Sponzoři (jednotná mřížka) */
.scene-sponsors {
  padding: 3vw 5vw;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.sponsors-title {
  text-align: center;
  font-size: 2.6vw;
  font-weight: 800;
  margin-bottom: 2.5vw;
  color: var(--fire-gold);
}
.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8vw;
  flex: 1;
  align-items: center;
}
.sponsor-card {
  height: 9vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1vw;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  text-align: center;
  transition: transform 0.3s;
}
.sponsor-logo-img {
  max-width: 80%;
  max-height: 5vw;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}
.sponsor-name-fallback {
  font-size: 1.2vw;
  font-weight: 700;
  color: #e2e8f0;
}

/* Informační lišta: Příprava další prezentace */
.prep-banner {
  position: absolute;
  top: 2vw;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(185, 28, 28, 0.95));
  padding: 1vw 2.5vw;
  border-radius: 9999px;
  color: #fff;
  font-size: 1.3vw;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 50;
  animation: slideDown 0.4s ease-out;
}

/* ========================================================
   SLIDES ENGINE - MODERNÍ SNÍMKY PREZENTACE
   ======================================================== */
.slide-content {
  width: 100%;
  height: 100%;
  padding: 4vw 6vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-title-header {
  margin-bottom: 2.5vw;
}
.slide-main-title {
  font-size: 3.2vw;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}
.slide-subtitle {
  font-size: 1.6vw;
  color: var(--text-muted);
  margin-top: 0.5vw;
}

/* Stats Slide */
.stats-grid-slide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2vw;
  margin-top: 1vw;
}
.stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 2.5vw 1.5vw;
  border-radius: 18px;
  text-align: center;
}
.stat-number {
  font-size: 4.8vw;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1vw;
}
.stat-number.red { color: var(--fire-red); }
.stat-number.orange { color: #fb923c; }
.stat-number.blue { color: var(--accent-blue); }
.stat-number.gold { color: var(--fire-gold); }
.stat-label {
  font-size: 1.3vw;
  color: var(--text-muted);
  font-weight: 600;
}

/* Columns Slide */
.cols-slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3vw;
}
.col-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2vw;
}
.col-title {
  font-size: 1.8vw;
  font-weight: 800;
  color: var(--fire-gold);
  margin-bottom: 1.5vw;
  display: flex;
  align-items: center;
  gap: 10px;
}
.col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1vw;
}
.col-item {
  font-size: 1.25vw;
  line-height: 1.4;
  color: #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.col-item::before {
  content: "•";
  color: var(--fire-red);
  font-size: 1.8vw;
  line-height: 1;
}

/* Video Slide */
.video-slide-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2vw;
}
.video-player {
  max-width: 85%;
  max-height: 70%;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.8);
  border: 1px solid var(--border-color);
  background: #000;
}

/* Thank you Slide */
.thankyou-slide {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.thankyou-title {
  font-size: 5vw;
  font-weight: 900;
  color: var(--fire-gold);
  margin-bottom: 1vw;
}
.thankyou-sub {
  font-size: 2.4vw;
  color: #e2e8f0;
  font-style: italic;
  margin-bottom: 3vw;
}

/* Animace */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(0.97); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
