/* Tailwind CSS CDN */
@import url('https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css');

/* 커스텀 스타일 */
.reveal {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.67em; /* 기본 폰트 크기를 2/3로 축소 */
}

.reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
  font-weight: 700;
  color: #f8fafc;
}

.reveal .slides section {
  text-align: left;
}

.reveal .slides section.center {
  text-align: center;
}

/* 목차 스타일 */
.reveal .incremental > * {
  opacity: 0.5;
}

.reveal .incremental > *.current-fragment {
  opacity: 1;
}

/* 코드 블록 스타일 */
.reveal pre {
  background: #1e293b;
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.reveal code {
  background: #334155;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

/* 컬럼 레이아웃 개선 */
.reveal .columns {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.reveal .column {
  flex: 1;
}

/* 콜아웃 박스 스타일 */
.reveal .callout-note {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border-left: 4px solid #2563eb;
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.reveal .callout-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-left: 4px solid #f59e0b;
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.reveal .callout-tip {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-left: 4px solid #10b981;
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

/* 탭 패널 스타일 */
.reveal .panel-tabset .nav-tabs {
  display: flex;
  border-bottom: 2px solid #374151;
  margin-bottom: 1rem;
}

.reveal .panel-tabset .nav-tabs .nav-link {
  padding: 0.5rem 1rem;
  background: #374151;
  color: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reveal .panel-tabset .nav-tabs .nav-link.active {
  background: #3b82f6;
  color: white;
}

.reveal ul {
  list-style: none;
  padding-left: 0;
}

.reveal ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.reveal ul li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
}

.reveal ol {
  counter-reset: item;
  padding-left: 0;
}

.reveal ol li {
  display: block;
  margin-bottom: 0.5em;
  padding-left: 2rem;
  position: relative;
}

.reveal ol li:before {
  content: counter(item) ".";
  counter-increment: item;
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
}

/* 버튼 스타일 */
.reveal .btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reveal .btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

/* 제목 슬라이드 스타일 */
.reveal .title-slide h1 {
  font-size: 2rem; /* 3rem에서 2rem으로 축소 (약 2/3) */
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.reveal .title-slide h2 {
  font-size: 1rem; /* 1.5rem에서 1rem으로 축소 (약 2/3) */
  color: #94a3b8;
  font-weight: 400;
}

/* 섹션 제목 스타일 */
.reveal .section-title {
  background: linear-gradient(135deg, #1e293b, #334155);
  padding: 2rem;
  border-radius: 1rem;
}

.reveal .section-title h1 {
  font-size: 1.67rem; /* 2.5rem에서 1.67rem으로 축소 (약 2/3) */
  text-align: center;
  margin: 0;
}

/* 진행 표시줄 */
.reveal .progress {
  background: rgba(59, 130, 246, 0.3);
}

.reveal .progress span {
  background: #3b82f6;
}

/* 슬라이드 번호 */
.reveal .slide-number {
  background: rgba(59, 130, 246, 0.8);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

/* 푸터 스타일 */
.reveal .footer {
  background: rgba(30, 41, 59, 0.9);
  color: #94a3b8;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-top: 1px solid #374151;
}

/* Mermaid 다이어그램 스타일 */
.reveal .mermaid {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
}

.reveal .mermaid svg {
  max-width: 100%;
  height: auto;
}

/* 테이블 스타일 */
.reveal table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
  background: rgba(30, 41, 59, 0.3);
  border-radius: 0.5rem;
  overflow: hidden;
}

.reveal table th {
  background: #3b82f6;
  color: white;
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
}

.reveal table td {
  padding: 0.75rem;
  border-bottom: 1px solid #374151;
}

.reveal table tr:nth-child(even) {
  background: rgba(51, 65, 85, 0.3);
}

.reveal table tr:hover {
  background: rgba(59, 130, 246, 0.1);
}

/* 수식 스타일 */
.reveal .katex {
  font-size: 1.1em;
  color: #f8fafc;
}

.reveal .katex-display {
  margin: 1rem 0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .reveal .columns {
    flex-direction: column;
    gap: 1rem;
  }
  
  .reveal .title-slide h1 {
    font-size: 1.33rem; /* 2rem에서 1.33rem으로 축소 (약 2/3) */
  }
  
  .reveal .section-title h1 {
    font-size: 1.33rem; /* 2rem에서 1.33rem으로 축소 (약 2/3) */
  }
}

/* 애니메이션 효과 */
.reveal .slides section {
  transition: all 0.3s ease;
}

.reveal .slides section.past,
.reveal .slides section.future {
  opacity: 0;
}

.reveal .slides section.past {
  transform: translateX(-100%);
}

.reveal .slides section.present {
  opacity: 1;
  transform: translateX(0);
}

.reveal .slides section.future {
  transform: translateX(100%);
}

/* 배경 효과 */
.reveal .backgrounds .slide-background {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.reveal .backgrounds .slide-background.past,
.reveal .backgrounds .slide-background.future {
  opacity: 0.3;
}

/* Fragment 애니메이션 */
.reveal .slides section .fragment {
  opacity: 0;
  transition: all 0.3s ease;
}

.reveal .slides section .fragment.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1e293b;
}

::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* 특수 아이콘 색상 */
.text-green-500 {
  color: #10b981 !important;
}

.text-red-500 {
  color: #ef4444 !important;
}

.text-blue-500 {
  color: #3b82f6 !important;
}

.text-yellow-500 {
  color: #f59e0b !important;
}

.text-purple-500 {
  color: #8b5cf6 !important;
}

/* 강조 효과 */
.reveal strong {
  color: #3b82f6;
  font-weight: 700;
}

.reveal em {
  color: #8b5cf6;
  font-style: italic;
}

/* 인용구 스타일 */
.reveal blockquote {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid #3b82f6;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0.5rem;
  font-style: italic;
}

/* 하이라이트 효과 */
.reveal .highlight {
  background: rgba(59, 130, 246, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  color: #3b82f6;
  font-weight: 600;
}