/* Woka HTML Slides — 16:9 (1920×1080) */

:root {
  --bg-dark: #1F1F1F;
  --bg-light: #FFFFFF;
  --bg-cream: #FFF8F0;
  --orange: #F26B1F;
  --orange-strong: #F26522;
  --orange-tint: #FFF4E6;
  --text-dark: #111111;
  --text-white: #FFFFFF;
  --text-muted: #888888;

  --slide-w: 1920px;
  --slide-h: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #2a2a2a;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

.deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
  gap: 24px;
}

/* ============================================================
   Slide base — fixed 1920×1080
   ============================================================ */
.slide {
  width: 1920px;
  height: 1080px;
  position: relative;
  overflow: hidden;
  font-family: 'Pretendard', sans-serif;
  page-break-after: always;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.slide.dark {
  background: var(--bg-dark);
  color: var(--text-white);
}

.slide.light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.slide.cream {
  background: var(--bg-cream);
  color: var(--text-dark);
}

.notes {
  display: none;
}

/* ============================================================
   Logo / Footer
   ============================================================ */
.logo {
  height: 32px;
  width: auto;
}

.slide.dark .slide-header {
  position: absolute;
  bottom: 60px;
  left: 80px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.slide.dark .slide-header .tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.slide.light .slide-header {
  position: absolute;
  top: 60px;
  right: 80px;
}

.slide.light .slide-footer {
  position: absolute;
  bottom: 60px;
  left: 80px;
  right: 80px;
}

.slide.light .divider {
  width: 80%;
  height: 1px;
  background: var(--orange);
  margin-bottom: 16px;
}

.slide.light .footer-text {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   Cover (A)
   ============================================================ */
.slide.cover .slide-body {
  position: absolute;
  top: 50%;
  left: 80px;
  right: 80px;
  transform: translateY(-50%);
}

.slide.cover .main-title {
  font-size: 80px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 32px;
}

.slide.cover .main-title .accent {
  color: var(--orange);
}

.slide.cover .subtitle {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 80px;
}

.slide.cover .meta {
  font-size: 20px;
  color: var(--text-white);
}

.slide.cover .updated-at {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 700;
  color: #A6ADB7;
}

.slide.cover .cover-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.slide.cover .cover-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.slide.cover .cover-link.primary {
  background: var(--orange);
  border-color: var(--orange);
}

.slide.cover .cover-link:hover {
  background: rgba(242,107,31,0.86);
  border-color: var(--orange);
}

.slide.cover .cover-link-note {
  width: 100%;
  margin-top: 2px;
  font-size: 16px;
  font-weight: 600;
  color: #8A8F98;
}

/* ============================================================
   Section Divider (B)
   ============================================================ */
.slide.section-divider .slide-body {
  position: absolute;
  top: 50%;
  left: 80px;
  right: 80px;
  transform: translateY(-50%);
}

.slide.section-divider .section-number {
  font-size: 56px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 24px;
}

.slide.section-divider .section-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.2;
}

/* Section Divider - Numbered (B') */
.slide.section-divider-numbered .slide-body {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  padding: 0 80px;
  gap: 80px;
}

.slide.section-divider-numbered .big-number {
  font-size: 200px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.slide.section-divider-numbered .section-title {
  font-size: 56px;
  font-weight: 700;
  color: var(--text-white);
}

/* ============================================================
   Content (C)
   ============================================================ */
.slide.content .slide-body {
  position: absolute;
  top: 160px;
  left: 80px;
  right: 80px;
  bottom: 160px;
}

.slide.content .slide-title {
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 48px;
  line-height: 1.3;
}

.slide.content .slide-title .accent {
  color: var(--orange);
}

.slide.content .slide-bullets {
  list-style: none;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.8;
}

.slide.content .slide-bullets li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
}

.slide.content .slide-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 12px;
  height: 12px;
  background: var(--orange);
  border-radius: 2px;
}

/* ============================================================
   Proposition (D)
   ============================================================ */
.slide.proposition .slide-body {
  position: absolute;
  top: 50%;
  left: 80px;
  right: 80px;
  transform: translateY(-50%);
  text-align: center;
}

.slide.proposition .proposition-text {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 32px;
}

.slide.proposition .proposition-sub {
  font-size: 24px;
  font-weight: 600;
  color: #3A3D44;
}

/* ============================================================
   Compare (J)
   ============================================================ */
.slide.compare .compare-grid {
  position: absolute;
  top: 200px;
  left: 80px;
  right: 80px;
  bottom: 160px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.slide.compare .compare-card {
  padding: 48px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.slide.compare .compare-card.left {
  background: #F3F4F6;
  color: #374151;
}

.slide.compare .compare-card.right {
  background: var(--orange-tint);
  color: var(--text-dark);
  border: 2px solid var(--orange);
}

.slide.compare .compare-card h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

.slide.compare .compare-card p {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.6;
}

/* ============================================================
   Feature Grid (K) — 3×3
   ============================================================ */
.slide.feature-grid .grid {
  position: absolute;
  top: 200px;
  left: 80px;
  right: 80px;
  bottom: 160px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 24px;
}

.slide.feature-grid .feature-card {
  padding: 32px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide.feature-grid .feature-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.slide.feature-grid .feature-card p {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

/* ============================================================
   Process (L) — 4 step cards
   ============================================================ */
.slide.process .steps {
  position: absolute;
  top: 280px;
  left: 80px;
  right: 80px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.slide.process .step {
  flex: 1;
  padding: 40px 32px;
  border-radius: 8px;
  text-align: center;
}

.slide.process .step.s1 { background: #F3F4F6; color: #374151; }
.slide.process .step.s2 { background: #DCE8FB; color: #2B5CE6; }
.slide.process .step.s3 { background: #FFF4E6; color: #9A3412; }
.slide.process .step.s4 { background: var(--orange-strong); color: var(--text-white); }

.slide.process .step .num {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  opacity: 0.7;
}

.slide.process .step .label {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.slide.process .step .desc {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.slide.process .arrow {
  font-size: 24px;
  color: var(--text-muted);
}

/* ============================================================
   Practice (N)
   ============================================================ */
.slide.practice .slide-body {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  padding: 0 80px;
  gap: 64px;
}

.slide.practice .practice-num {
  font-size: 120px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  white-space: nowrap;
}

.slide.practice .practice-content h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 32px;
}

.slide.practice .practice-content ul {
  list-style: none;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.8;
}

.slide.practice .practice-content ul li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
}

.slide.practice .practice-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--orange);
}

/* ============================================================
   Screenshot (G)
   ============================================================ */
.slide.screenshot .slide-body {
  position: absolute;
  top: 200px;
  left: 80px;
  right: 80px;
  bottom: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.slide.screenshot img {
  max-width: 100%;
  max-height: 100%;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.slide.screenshot .highlight-box {
  position: absolute;
  border: 2px solid var(--orange);
  border-radius: 4px;
  pointer-events: none;
}

/* ============================================================
   Prompt Box (H)
   ============================================================ */
.slide.prompt-box .prompt {
  position: absolute;
  top: 240px;
  left: 80px;
  right: 80px;
  bottom: 200px;
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 48px 56px;
  border-radius: 8px;
  font-family: 'D2Coding', 'JetBrains Mono', 'Menlo', monospace;
  font-size: 22px;
  line-height: 1.7;
  position: relative;
}

.slide.prompt-box .prompt-label {
  position: absolute;
  top: 200px;
  left: 80px;
  font-size: 16px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 2px;
}

/* ============================================================
   Print — PDF export
   ============================================================ */
@media print {
  @page {
    size: 1920px 1080px;
    margin: 0;
  }

  html, body {
    background: white;
  }

  .deck {
    display: block;
    padding: 0;
    gap: 0;
  }

  .slide {
    margin: 0;
    box-shadow: none;
    page-break-after: always;
    width: 1920px;
    height: 1080px;
  }
}

/* ============================================================
   Responsive — scale down for smaller screens
   ============================================================ */
@media screen and (max-width: 1920px) {
  .deck {
    transform: scale(calc((100vw - 40px) / 1920));
    transform-origin: top center;
  }
}

/* ============================================================
   페이지 번호 (nav.js가 자동 삽입)
   ============================================================ */
.page-number {
  position: absolute;
  bottom: 32px;
  right: 80px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Pretendard', sans-serif;
  letter-spacing: 1px;
  z-index: 100;
  pointer-events: none;
}

.slide.dark .page-number {
  color: rgba(255, 255, 255, 0.5);
}

.slide.light .page-number,
.slide.cream .page-number {
  color: rgba(0, 0, 0, 0.4);
}

@media print {
  .page-number {
    color: rgba(0, 0, 0, 0.5) !important;
  }
}

/* ============================================================
   목차 (TOC) — 화이트
   ============================================================ */
.slide.toc .slide-body {
  position: absolute;
  top: 200px;
  left: 80px;
  right: 80px;
  bottom: 200px;
}

.slide.toc .slide-title {
  font-size: 56px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 56px;
}

.slide.toc .toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.slide.toc .toc-item {
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 16px 0;
  border-bottom: 1px solid #E5E7EB;
}

.slide.toc .toc-item .num {
  font-size: 48px;
  font-weight: 800;
  color: var(--orange);
  min-width: 100px;
}

.slide.toc .toc-item .title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  flex: 1;
}

.slide.toc .toc-item .duration {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ============================================================
   프레젠테이션 모드 — 한 슬라이드씩 표시
   ============================================================ */
html, body {
  overflow: hidden;
  background: #0a0a0a;
  height: 100vh;
}

.deck {
  position: fixed;
  inset: 0;
  display: block;
  padding: 0;
  gap: 0;
  align-items: stretch;
}

.slide {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  box-shadow: 0 16px 64px rgba(0,0,0,0.5);
  /* nav.js가 --slide-scale 변수를 viewport 크기에 맞춰 주입 */
  transform: translate(-50%, -50%) scale(var(--slide-scale, 1));
  transform-origin: center center;
}

.slide.active {
  display: block;
}

@media screen and (max-width: 1920px) {
  .deck {
    transform: none;
  }
}

@media print {
  html, body {
    overflow: visible;
    background: white;
    height: auto;
  }
  .deck {
    position: static;
    display: block;
  }
  .slide {
    display: block !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    margin: 0;
    page-break-after: always;
    box-shadow: none;
    width: 1920px;
    height: 1080px;
  }
}

/* ============================================================
   목차 (TOC) — 좌측 거대한 "목차" / 우측 번호 리스트
   ============================================================ */
.slide.toc .toc-grid {
  position: absolute;
  top: 50%;
  left: 80px;
  right: 80px;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.slide.toc .toc-title {
  font-size: 144px;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  letter-spacing: -4px;
  margin: 0;
}

.slide.toc .toc-list {
  list-style: none;
  font-size: 30px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0;
  margin: 0;
}

.slide.toc .toc-list li {
  display: flex;
  align-items: baseline;
  gap: 28px;
  color: var(--text-dark);
}

.slide.toc .toc-list li .num {
  font-weight: 700;
  min-width: 48px;
}
