:root {
  --color-app: #3b82f6;
  --color-app-bg: rgba(59, 130, 246, 0.12);
  --color-sim: #8b5cf6;
  --color-sim-bg: rgba(139, 92, 246, 0.12);
  --color-ml: #10b981;
  --color-ml-bg: rgba(16, 185, 129, 0.12);
  --color-warn: #f59e0b;
  --color-warn-bg: rgba(245, 158, 11, 0.12);
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-bg: #0f172a;
  --color-surface: #1e293b;
  --color-border: #334155;
}

.reveal {
  font-family: 'Segoe UI', 'Noto Sans KR', Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
}

.reveal .slides section {
  text-align: left;
}

/* 타이틀 슬라이드 */
.reveal .slides section.title-slide {
  text-align: center;
}

.reveal h1 {
  font-size: 2.2em;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
  margin-bottom: 0.4em;
}

.reveal h2 {
  font-size: 1.5em;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.5em;
}

.reveal h3 {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.4em;
}

.reveal ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.reveal ul li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.5em;
  font-size: 0.85em;
  line-height: 1.5;
  color: var(--color-text);
}

.reveal ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
}

/* 슬라이드 번호 뱃지 */
.slide-num {
  display: inline-block;
  font-size: 0.6em;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  vertical-align: middle;
  margin-right: 0.4em;
}

/* 핵심 메시지 배너 */
.key-message {
  background: var(--color-surface);
  border-left: 4px solid var(--color-ml);
  padding: 0.6em 1em;
  border-radius: 0 6px 6px 0;
  margin: 0.6em 0 1em;
  font-size: 0.9em;
  color: #f1f5f9;
  font-weight: 500;
}

/* 아키텍처 다이어그램 */
.arch-diagram {
  display: flex;
  gap: 1em;
  margin-top: 0.8em;
}

.arch-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.arch-col-title {
  font-size: 0.65em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3em 0.6em;
  border-radius: 4px;
  text-align: center;
  margin-bottom: 0.2em;
}

.arch-box {
  padding: 0.4em 0.7em;
  border-radius: 6px;
  font-size: 0.7em;
  font-family: 'Consolas', monospace;
  text-align: center;
  border: 1px solid transparent;
}

/* 영역별 색상 */
.area-app .arch-col-title  { background: var(--color-app-bg); color: var(--color-app); border: 1px solid var(--color-app); }
.area-app .arch-box        { background: var(--color-app-bg); color: #93c5fd; border-color: rgba(59,130,246,0.3); }

.area-sim .arch-col-title  { background: var(--color-sim-bg); color: var(--color-sim); border: 1px solid var(--color-sim); }
.area-sim .arch-box        { background: var(--color-sim-bg); color: #c4b5fd; border-color: rgba(139,92,246,0.3); }

.area-ml .arch-col-title   { background: var(--color-ml-bg); color: var(--color-ml); border: 1px solid var(--color-ml); }
.area-ml .arch-box         { background: var(--color-ml-bg); color: #6ee7b7; border-color: rgba(16,185,129,0.3); }

/* 화살표 */
.arch-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  color: var(--color-text-muted);
  padding-top: 1.5em;
}

/* 테이블 */
.reveal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78em;
  margin: 0.6em 0;
}

.reveal table th {
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-weight: 600;
  padding: 0.5em 0.8em;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.reveal table td {
  padding: 0.45em 0.8em;
  border-bottom: 1px solid rgba(51,65,85,0.5);
  vertical-align: top;
}

.reveal table tr:hover td {
  background: var(--color-surface);
}

/* 태그 */
.tag {
  display: inline-block;
  font-size: 0.65em;
  font-family: 'Consolas', monospace;
  padding: 1px 7px;
  border-radius: 3px;
  font-weight: 600;
}

.tag-app  { background: var(--color-app-bg);  color: var(--color-app);  border: 1px solid rgba(59,130,246,0.4); }
.tag-sim  { background: var(--color-sim-bg);  color: var(--color-sim);  border: 1px solid rgba(139,92,246,0.4); }
.tag-ml   { background: var(--color-ml-bg);   color: var(--color-ml);   border: 1px solid rgba(16,185,129,0.4); }
.tag-warn { background: var(--color-warn-bg); color: var(--color-warn); border: 1px solid rgba(245,158,11,0.4); }

/* 코드 블록 */
.reveal pre {
  background: #0d1117;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.8em 1em;
  font-size: 0.7em;
  box-shadow: none;
  margin: 0.5em 0;
}

.reveal code {
  font-family: 'Consolas', 'Courier New', monospace;
  color: #a5d6ff;
  background: rgba(165, 214, 255, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.9em;
}

.reveal pre code {
  background: none;
  padding: 0;
  font-size: 1em;
  color: #e2e8f0;
}

/* 파이프라인 플로우 */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  margin: 0.5em 0;
}

.pipeline-step {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.4em 0.8em;
  border-radius: 5px;
  font-size: 0.75em;
  font-family: 'Consolas', monospace;
}

.pipeline-arrow {
  color: var(--color-text-muted);
  font-size: 0.8em;
  padding-left: 1em;
}

/* 2열 레이아웃 */
.two-col {
  display: flex;
  gap: 1.5em;
  align-items: flex-start;
}

.two-col > div {
  flex: 1;
}

/* 발표자 A/B 뱃지 */
.presenter-badge {
  display: inline-block;
  font-size: 0.55em;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  vertical-align: middle;
  margin-left: 0.5em;
}
.badge-a { background: rgba(59,130,246,0.2); color: var(--color-app); border: 1px solid var(--color-app); }
.badge-b { background: rgba(139,92,246,0.2); color: var(--color-sim); border: 1px solid var(--color-sim); }

/* placeholder 이미지 */
.img-placeholder {
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.7em;
  padding: 1em;
  min-height: 120px;
  text-align: center;
}

.img-placeholder span { font-size: 1.8em; margin-bottom: 0.3em; }

/* shadow mode 강조 */
.shadow-box {
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(139,92,246,0.1));
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 8px;
  padding: 0.7em 1em;
  margin: 0.5em 0;
  font-size: 0.82em;
}

/* 타이틀 슬라이드 서브타이틀 */
.subtitle {
  font-size: 1em;
  color: var(--color-text-muted);
  margin-top: 0.3em;
}

.title-tags {
  display: flex;
  gap: 0.5em;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1em;
}

.title-tags .tag {
  font-size: 0.8em;
  padding: 4px 12px;
}

/* 타이머 힌트 */
.time-hint {
  font-size: 0.55em;
  color: var(--color-warn);
  float: right;
  margin-top: 0.2em;
}

/* Reveal.js 오버라이드 */
.reveal .progress {
  color: var(--color-ml);
}

.reveal .controls button {
  color: var(--color-text-muted);
}

.reveal .slide-number {
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.55em;
  padding: 4px 8px;
  border-radius: 4px;
}
