/* ============================================
   SABET BLUEPRINT — LESSON SLIDESHOW
   Full-screen immersive slideshow for lessons
   Scoped under .slideshow-overlay
   ============================================ */

.slideshow-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0a0a0a;
  animation: ss-fade-in 0.25s ease;
}
@keyframes ss-fade-in { from { opacity: 0; } to { opacity: 1; } }

.slideshow-overlay *,
.slideshow-overlay *::before,
.slideshow-overlay *::after { box-sizing: border-box; }

/* Header: progress + close */
.slideshow-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 28px;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(250,250,250,0.95), rgba(250,250,250,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.slideshow-progress {
  flex: 1;
  height: 4px;
  background: #e5e5e5;
  border-radius: 999px;
  overflow: hidden;
}
.slideshow-progress-bar {
  height: 100%;
  background: #0a0a0a;
  border-radius: 999px;
  transition: width 0.3s ease;
  width: 0%;
}
.slideshow-counter {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #525252;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  text-align: right;
}
.slideshow-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: #0a0a0a;
  border: 1px solid #e5e5e5;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  font-family: inherit;
  line-height: 1;
  padding: 0;
  transition: background 0.15s, border-color 0.15s;
}
.slideshow-close:hover { background: #f3f4f6; border-color: #0a0a0a; }

/* Slides container */
.slideshow-slides {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* Individual slide */
.ss-slide {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 100px 80px 120px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(30px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.ss-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.ss-slide.previous {
  transform: translateX(-30px);
}

/* Slide body layout — split left (graphic) / right (content) */
.ss-slide-inner {
  display: flex;
  gap: 60px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

/* Graphic panel (left side) */
.ss-graphic {
  flex: 0 0 42%;
  aspect-ratio: 1;
  max-width: 480px;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.ss-graphic-type-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  color: #0a0a0a;
  z-index: 2;
}
.ss-graphic-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.85;
  text-align: center;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 1;
}
.ss-graphic-icon {
  font-size: 8rem;
  line-height: 1;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.1));
}
.ss-graphic-subtitle {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(0,0,0,0.7);
  z-index: 2;
}

/* Decorative blob shapes */
.ss-graphic::before,
.ss-graphic::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  filter: blur(30px);
  opacity: 0.6;
}
.ss-graphic::before { width: 70%; height: 70%; top: -20%; right: -20%; }
.ss-graphic::after { width: 60%; height: 60%; bottom: -15%; left: -15%; }

/* Graphic color themes */
.ss-graphic.theme-yellow { background: #fef9c3; color: #713f12; }
.ss-graphic.theme-yellow::before { background: #facc15; }
.ss-graphic.theme-yellow::after { background: #fbbf24; }

.ss-graphic.theme-blue { background: #dbeafe; color: #1e3a8a; }
.ss-graphic.theme-blue::before { background: #3b82f6; }
.ss-graphic.theme-blue::after { background: #60a5fa; }

.ss-graphic.theme-red { background: #fee2e2; color: #7f1d1d; }
.ss-graphic.theme-red::before { background: #ef4444; }
.ss-graphic.theme-red::after { background: #f87171; }

.ss-graphic.theme-green { background: #dcfce7; color: #14532d; }
.ss-graphic.theme-green::before { background: #10b981; }
.ss-graphic.theme-green::after { background: #34d399; }

.ss-graphic.theme-purple { background: #fce7f3; color: #831843; }
.ss-graphic.theme-purple::before { background: #ec4899; }
.ss-graphic.theme-purple::after { background: #f472b6; }

.ss-graphic.theme-dark { background: #1a1a1a; color: #fafafa; }
.ss-graphic.theme-dark::before { background: #ef4444; }
.ss-graphic.theme-dark::after { background: #facc15; }

/* Content panel (right side) */
.ss-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding-right: 8px;
}
.ss-content::-webkit-scrollbar { width: 6px; }
.ss-content::-webkit-scrollbar-track { background: transparent; }
.ss-content::-webkit-scrollbar-thumb { background: #d4d4d4; border-radius: 3px; }
.ss-content::-webkit-scrollbar-thumb:hover { background: #a3a3a3; }

.ss-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ef4444;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fef2f2;
  align-self: flex-start;
}
.ss-kicker.kicker-yellow { color: #854d0e; background: #fef3c7; }
.ss-kicker.kicker-blue { color: #1d4ed8; background: #dbeafe; }
.ss-kicker.kicker-green { color: #047857; background: #dcfce7; }
.ss-kicker.kicker-red { color: #b91c1c; background: #fee2e2; }
.ss-kicker.kicker-purple { color: #831843; background: #fce7f3; }

.ss-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #0a0a0a;
  margin: 0;
}
.ss-title.big {
  font-size: 3.4rem;
  letter-spacing: -0.035em;
}

.ss-subtitle {
  font-size: 1.1rem;
  color: #525252;
  line-height: 1.5;
  margin: 4px 0 0;
}

.ss-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.ss-body p {
  font-size: 1rem;
  line-height: 1.65;
  color: #262626;
  margin: 0;
}

.ss-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.ss-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.ss-btn:active { transform: scale(0.98); }
.ss-btn-primary { background: #0a0a0a; color: #fff; }
.ss-btn-primary:hover { background: #262626; }
.ss-btn-yellow { background: #facc15; color: #0a0a0a; }
.ss-btn-yellow:hover { background: #fde047; }
.ss-btn-blue { background: #3b82f6; color: #fff; }
.ss-btn-blue:hover { background: #2563eb; }
.ss-btn-green { background: #10b981; color: #fff; }
.ss-btn-green:hover { background: #059669; }
.ss-btn-outline { background: transparent; color: #0a0a0a; border: 1px solid #d4d4d4; }
.ss-btn-outline:hover { border-color: #0a0a0a; }
.ss-btn-done { background: #d1fae5; color: #047857; cursor: default; }

/* Quote slide (full bleed) */
.ss-slide-quote {
  padding: 60px;
  align-items: center;
  justify-content: center;
}
.ss-quote-wrap {
  max-width: 900px;
  text-align: center;
  width: 100%;
}
.ss-quote-marks {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 8rem;
  font-weight: 900;
  color: #facc15;
  line-height: 1;
  margin-bottom: -20px;
}
.ss-quote-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: #0a0a0a;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.ss-quote-attribution {
  font-size: 1rem;
  color: #737373;
  font-weight: 500;
}
.ss-quote-kicker {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b91c1c;
  background: #fee2e2;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

/* Cover slide */
.ss-slide-cover {
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: linear-gradient(135deg, #fafafa 0%, #f3f4f6 100%);
}
.ss-cover-inner {
  max-width: 800px;
  text-align: center;
}
.ss-cover-part-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ef4444;
  margin-bottom: 16px;
}
.ss-cover-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.85;
  color: #0a0a0a;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #ef4444 0%, #facc15 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ss-cover-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #0a0a0a;
  margin: 0 0 16px;
}
.ss-cover-subtitle {
  font-size: 1.25rem;
  color: #525252;
  line-height: 1.5;
  margin-bottom: 32px;
}

/* Finish slide */
.ss-slide-finish {
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: linear-gradient(135deg, #dcfce7 0%, #fafafa 100%);
}
.ss-finish-inner {
  max-width: 640px;
  text-align: center;
}
.ss-finish-icon {
  font-size: 8rem;
  margin-bottom: 20px;
  display: block;
}
.ss-finish-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #0a0a0a;
  margin: 0 0 14px;
}
.ss-finish-sub {
  font-size: 1.1rem;
  color: #525252;
  line-height: 1.55;
  margin-bottom: 28px;
}

/* Video slide */
.ss-video-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  background: #0a0a0a;
}
.ss-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Task slide — specific styling */
.ss-task-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: #737373;
  margin-top: 4px;
}
.ss-task-xp {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef9c3;
  color: #713f12;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* Prev / Next buttons */
.ss-nav {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 3;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.ss-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  color: #0a0a0a;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background 0.15s;
}
.ss-nav-btn:hover { background: #f3f4f6; }
.ss-nav-btn:disabled { color: #d4d4d4; cursor: not-allowed; }
.ss-nav-btn:disabled:hover { background: transparent; }
.ss-nav-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 0 12px;
  max-width: 400px;
  overflow-x: auto;
}
.ss-nav-dots::-webkit-scrollbar { display: none; }
.ss-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4d4d4;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.ss-nav-dot:hover { background: #737373; }
.ss-nav-dot.active { background: #0a0a0a; transform: scale(1.4); }

.ss-hint {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: #a3a3a3;
  letter-spacing: 0.04em;
  z-index: 3;
  pointer-events: none;
}
.ss-hint kbd {
  display: inline-block;
  padding: 2px 6px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #0a0a0a;
  margin: 0 2px;
}

/* Trigger button (appears in quest header for hard-truth) */
.ss-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #ef4444 0%, #facc15 100%);
  color: #0a0a0a;
  border: none;
  border-radius: 999px;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  margin: 12px 0 6px;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(239,68,68,0.2);
}
.ss-trigger:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(239,68,68,0.3); }
.ss-trigger:active { transform: scale(0.98); }

/* Responsive */
@media (max-width: 900px) {
  .ss-slide { padding: 80px 24px 140px; }
  .ss-slide-inner { flex-direction: column; gap: 24px; }
  .ss-graphic { flex: 0 0 auto; width: 100%; max-width: 360px; aspect-ratio: 1.4; }
  .ss-graphic-number { font-size: 9rem; }
  .ss-graphic-icon { font-size: 5.5rem; }
  .ss-title { font-size: 1.8rem; }
  .ss-title.big { font-size: 2.4rem; }
  .ss-cover-number { font-size: 10rem; }
  .ss-cover-title { font-size: 2.5rem; }
  .ss-quote-text { font-size: 2rem; }
  .ss-finish-title { font-size: 2.2rem; }
  .ss-nav-dots { max-width: 200px; }
  .slideshow-header { padding: 16px 20px; }
}
