/* ─────────────────────────────────────────────────────────
   AI 문의 응대 자동화 — 강의 교안 디자인 시스템
   톤: 소상공인·1인 운영자 친화 · 틸(teal)+앰버
   (구조는 claude-cowork shared.css와 동일, 팔레트만 변경)
   ───────────────────────────────────────────────────────── */

:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-soft: #ccfbf1;
  --accent: #f59e0b;
  --accent-soft: #fef3c7;
  --wow: #ec4899;
  --wow-soft: #fce7f3;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;

  --bg: #fafaf9;
  --bg-card: #ffffff;
  --bg-soft: #f4f4f5;
  --bg-code: #0f172a;

  --text: #1e293b;
  --text-soft: #475569;
  --text-muted: #94a3b8;

  --border: #e2e8f0;
  --border-soft: #f1f5f9;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow: 0 4px 12px rgba(15,23,42,0.08);
  --shadow-md: 0 10px 30px rgba(15,23,42,0.10);
  --shadow-lg: 0 20px 60px rgba(15,23,42,0.18);

  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --font-mono: 'JetBrains Mono', 'D2Coding', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ── 공통 컴포넌트 ── */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
.tag.wow { background: var(--wow-soft); color: var(--wow); }
.tag.primary { background: var(--primary-soft); color: var(--primary-dark); }
.tag.accent { background: var(--accent-soft); color: var(--warn); }
.tag.ok { background: #dcfce7; color: var(--ok); }

.kbd { display: inline-block; padding: 2px 8px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; background: var(--bg-card); font-family: var(--font-mono); font-size: 11px; color: var(--text-soft); }

.code-block { background: var(--bg-code); color: #f1f5f9; padding: 14px 18px; border-radius: var(--radius); font-family: var(--font-mono); font-size: 13px; line-height: 1.6; overflow-x: auto; }
.code-block .c-hl { color: var(--accent); }
.code-block .c-mute { color: #64748b; }

.prompt-box { background: var(--primary-soft); border-left: 4px solid var(--primary); padding: 14px 18px; border-radius: var(--radius); font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--text); white-space: pre-wrap; }
.prompt-box .label { display: block; font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--primary-dark); margin-bottom: 6px; text-transform: uppercase; }

.wow-callout { background: linear-gradient(135deg, var(--wow-soft), var(--accent-soft)); border-radius: var(--radius-lg); padding: 18px 22px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 12px; }
.wow-callout .emoji { font-size: 28px; flex-shrink: 0; }

.tip { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 10px 14px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 13px; color: var(--text-soft); }
.tip strong { color: var(--text); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 14px; }
.checklist li::before { content: '☐'; font-size: 16px; color: var(--primary); flex-shrink: 0; margin-top: -1px; }

/* ── 슬라이드 시스템 (16:9 · scroll-snap) ── */
.slide-deck { scroll-snap-type: y mandatory; overflow-y: auto; height: 100vh; }
.slide { scroll-snap-align: start; width: 100%; height: 100vh; min-height: 720px; display: flex; flex-direction: column; background: var(--bg-card); position: relative; padding: 60px 80px 48px; border-bottom: 1px dashed var(--border); opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.slide.is-visible { opacity: 1; transform: translateY(0); }
.slide.is-visible .slide-inner > * { animation: slideInner-rise 0.6s ease both; }
.slide.is-visible .slide-inner > *:nth-child(2) { animation-delay: 0.08s; }
.slide.is-visible .slide-inner > *:nth-child(3) { animation-delay: 0.16s; }
.slide.is-visible .slide-inner > *:nth-child(4) { animation-delay: 0.24s; }
.slide.is-visible .slide-inner > *:nth-child(5) { animation-delay: 0.32s; }
@keyframes slideInner-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.slide-inner { flex: 1; display: flex; flex-direction: column; gap: 24px; max-width: 1100px; margin: 0 auto; width: 100%; }
.slide-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 2px solid var(--text); }
.slide-header .left { display: flex; align-items: baseline; gap: 12px; }
.slide-header .period { font-size: 12px; font-family: var(--font-mono); color: var(--text-muted); letter-spacing: 0.08em; }
.slide-header .chapter { font-size: 13px; font-weight: 700; color: var(--primary); }
.slide-header .num { font-size: 13px; color: var(--text-muted); font-family: var(--font-mono); }
.slide h1.title { font-size: 44px; font-weight: 900; letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
.slide h1.title .em { color: var(--primary); }
.slide h1.title .wow-em { color: var(--wow); }
.slide h2.subtitle { font-size: 22px; font-weight: 700; color: var(--text-soft); margin: 0; letter-spacing: -0.01em; }
.slide h3.section { font-size: 28px; font-weight: 800; margin: 0; letter-spacing: -0.02em; }
.slide p.body { font-size: 17px; color: var(--text-soft); margin: 0; }
.slide p.body strong { color: var(--text); }

.slide-footer { position: absolute; bottom: 18px; left: 80px; right: 80px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

.slide.title-slide { background: linear-gradient(135deg, #042f2e 0%, #0f766e 100%); color: white; }
.slide.title-slide h1.title { color: white; font-size: 64px; }
.slide.title-slide h2.subtitle { color: #99f6e4; }
.slide.title-slide .slide-header { border-bottom-color: #2dd4bf; }
.slide.title-slide .slide-header .chapter { color: #fcd34d; }
.slide.title-slide .slide-header .period, .slide.title-slide .slide-header .num, .slide.title-slide .slide-footer { color: #5eead4; }

.slide.wow-slide { background: linear-gradient(135deg, var(--wow-soft) 0%, var(--accent-soft) 100%); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.split-7-5 { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; }

.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.card.elev { box-shadow: var(--shadow-md); }
.card h4 { font-size: 16px; margin: 0 0 10px; font-weight: 700; }
.card .icon { font-size: 36px; margin-bottom: 8px; }

.step-list { display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.step-list .step { display: flex; gap: 16px; align-items: flex-start; padding: 14px 18px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); counter-increment: step; }
.step-list .step::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: white; font-weight: 800; font-family: var(--font-mono); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-list .step .body { flex: 1; font-size: 15px; }
.step-list .step .body strong { display: block; margin-bottom: 4px; font-size: 16px; }

@media print {
  body { background: white; }
  .slide { page-break-after: always; min-height: auto; height: auto; padding: 40px 50px; }
  .slide.title-slide { background: white; color: var(--text); }
  .slide.title-slide h1.title { color: var(--text); }
  .slide.title-slide h2.subtitle { color: var(--text-soft); }
}
