/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%; width: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #FFFFFF;
  overflow: hidden;
}

/* === SLIDE CONTAINER === */
#slide-container {
  width: 100vw; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: #FFFFFF;
}

.slide {
  width: 100%; max-width: 1200px;
  height: 100vh;
  background: #FFFFFF;
  padding: 60px 80px;
  display: flex; flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* === TYPOGRAPHY === */
.slide h1 {
  font-size: clamp(48px, 5vw, 80px);
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.1;
  margin-bottom: 24px;
}

.slide h3 {
  font-size: clamp(24px, 2.5vw, 40px);
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.slide p, .slide .body {
  font-size: clamp(28px, 3vw, 44px);
  color: #2d2d2d;
  line-height: 1.4;
}

.slide .subtitle {
  font-size: clamp(24px, 2.5vw, 40px);
  color: #6b7280;
  margin-top: 16px;
}

.slide .footer {
  font-size: clamp(18px, 1.5vw, 28px);
  color: #9ca3af;
  margin-top: 24px;
}

.slide-title .footer {
  margin-top: auto;
}

.slide small {
  font-size: clamp(14px, 1.2vw, 20px);
  color: #9ca3af;
}

.slide code {
  background: #f3f4f6;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  color: #1a1a2e;
}

.slide .attribution {
  font-size: clamp(16px, 1.5vw, 24px);
  color: #9ca3af;
  font-style: italic;
  margin-top: 12px;
}

/* === TITLE LAYOUT === */
.slide-title {
  text-align: center;
  justify-content: center;
  align-items: center;
}

/* === STATS LAYOUT === */
.slide-stats { text-align: center; justify-content: center; align-items: center; }

.stats-row {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 5vw, 80px);
  margin: 32px 0;
}

.stat-item { text-align: center; }

.stat-value {
  display: block;
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 800;
  color: #3b82f6;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: clamp(20px, 2vw, 32px);
  color: #6b7280;
  margin-top: 8px;
}

/* === IMAGE LAYOUT === */
.slide-image { align-items: center; text-align: center; }

.image-container {
  width: 100%; max-height: 55vh;
  display: flex; align-items: center; justify-content: center;
  margin: 24px 0;
}

.image-container img {
  max-width: 100%; max-height: 55vh;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.image-placeholder {
  display: flex; align-items: center; justify-content: center;
  width: 80%; height: 40vh;
  background: #f3f4f6; border: 3px dashed #d1d5db;
  border-radius: 12px;
  font-size: clamp(24px, 2.5vw, 40px);
  color: #9ca3af; text-align: center; padding: 24px;
}

/* === INTERACTIVE LAYOUT === */
.slide-interactive { align-items: center; text-align: center; }

.scale-visual {
  display: flex; gap: 16px;
  justify-content: center;
  margin: 32px 0;
}

.scale-item {
  width: clamp(60px, 8vw, 100px);
  height: clamp(60px, 8vw, 100px);
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 700;
  background: #f0f4ff;
  color: #3b82f6;
  border: 3px solid #3b82f6;
  transition: transform 0.2s;
}

.scale-item:hover { transform: scale(1.1); }

.interactive-question {
  font-size: clamp(28px, 3vw, 44px) !important;
  color: #3b82f6 !important;
  font-weight: 600;
  margin-bottom: 16px;
}

/* === LEVELS LAYOUT === */
.slide-levels { align-items: center; }

.levels-indicator {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}

.level-box {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: clamp(80px, 10vw, 140px);
  height: clamp(60px, 7vw, 100px);
  border-radius: 12px;
  background: #f3f4f6;
  color: #9ca3af;
  transition: all 0.3s;
}

.level-box.active {
  background: #dbeafe;
  color: #3b82f6;
}

.level-box.current {
  background: #3b82f6;
  color: #FFFFFF;
  transform: scale(1.15);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
}

.level-box[data-level="4"].current {
  background: #8b5cf6;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
  transform: scale(1.25);
}

.level-num {
  font-size: clamp(20px, 2.5vw, 36px);
  font-weight: 800;
  line-height: 1;
}

.level-name {
  font-size: clamp(10px, 1vw, 16px);
  font-weight: 600;
  margin-top: 4px;
  text-align: center;
}

.level-description {
  font-size: clamp(28px, 3vw, 44px);
  color: #6b7280;
  text-align: center;
  margin-bottom: 16px;
}

.level-analogy {
  font-size: clamp(22px, 2.2vw, 36px) !important;
  color: #9ca3af !important;
  font-style: italic;
  margin-top: 12px;
}

/* === COLUMNS LAYOUT === */
.slide-columns { align-items: center; justify-content: center; }

.columns {
  display: grid;
  gap: 32px;
  margin: 24px 0;
  align-items: stretch;
}

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

.column {
  padding: 24px;
  background: #f9fafb;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.column-icon {
  font-size: clamp(32px, 4vw, 56px);
  margin-bottom: 12px;
}

.column h3 {
  font-size: clamp(20px, 2vw, 32px);
  color: #1a1a2e;
  margin-bottom: 12px;
}

.column-body {
  font-size: clamp(18px, 1.8vw, 28px);
  color: #4b5563;
  line-height: 1.5;
}

.column-body p { margin-bottom: 8px; font-size: inherit; color: inherit; }

/* === CONTENT LAYOUT === */
.slide-content .body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* === UTILITY CLASSES === */
.timeline {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; flex-wrap: wrap;
  margin: 16px 0;
}

.timeline .timeline-item {
  padding: 10px 16px; background: #f0f4ff; border-radius: 8px;
  font-size: clamp(14px, 1.6vw, 22px); font-weight: 600; color: #1a1a2e;
  text-align: center; white-space: nowrap;
}

.timeline .timeline-arrow {
  font-size: clamp(16px, 2vw, 28px); color: #3b82f6;
  margin: 0 6px; flex-shrink: 0;
}

.quote-block {
  border-left: 4px solid #3b82f6; padding: 16px 24px; margin: 20px 0;
  font-style: italic; font-size: clamp(24px, 2.8vw, 40px); color: #2d2d2d;
}

.quote-block .quote-author {
  font-style: normal; font-size: clamp(16px, 1.5vw, 24px);
  color: #6b7280; margin-top: 8px; display: block;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }

.highlight-box {
  padding: 20px; border-radius: 12px; margin: 8px 0;
  font-size: clamp(20px, 2vw, 32px);
}

.highlight-box.green { background: #ecfdf5; border-left: 4px solid #10b981; }
.highlight-box.orange { background: #fff7ed; border-left: 4px solid #f59e0b; }
.highlight-box.red { background: #fef2f2; border-left: 4px solid #ef4444; }

.highlight-box strong { display: block; margin-bottom: 4px; }

.bullet-list { list-style: none; padding: 0; text-align: left; display: inline-block; }

.bullet-list li {
  padding: 12px 0; font-size: clamp(22px, 2.5vw, 36px);
  border-bottom: 1px solid #e5e7eb; position: relative; padding-left: 48px;
}

.bullet-list li::before {
  content: "→"; position: absolute; left: 0; color: #3b82f6; font-weight: 700;
}

.stat-inline {
  display: inline-flex; align-items: baseline; gap: 8px; margin: 8px 16px;
}

.stat-inline .stat-number {
  font-size: clamp(36px, 4vw, 64px); font-weight: 800; color: #3b82f6;
}

.stat-inline .stat-label {
  font-size: clamp(18px, 2vw, 28px); color: #6b7280;
}

/* === PROGRESS BAR === */
#progress-bar {
  position: fixed; bottom: 0; left: 0;
  height: 4px; background: #3b82f6;
  transition: width 0.3s ease;
  z-index: 100;
}

/* === SECTION BADGE === */
#section-badge {
  position: fixed; top: 16px; right: 16px;
  background: #f0f4ff; color: #3b82f6;
  padding: 6px 16px; border-radius: 20px;
  font-size: 14px; font-weight: 600;
  z-index: 100;
}

/* === SLIDE COUNTER === */
#slide-counter {
  position: fixed; bottom: 12px; right: 16px;
  color: #9ca3af; font-size: 14px; font-weight: 500;
  z-index: 100;
}

/* === BLACK SCREEN OVERLAY === */
#black-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
}

#black-overlay.active {
  opacity: 1; pointer-events: all;
}
