/* ============================================================
   SLIDES.CSS - Professional White Theme Presentation System
   Enterprise-grade slide deck for customer demos
   ============================================================ */

/* CSS Variables */
:root {
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;

  /* Text Colors */
  --text-primary: #1a1a2a;
  --text-secondary: #6b7280;

  /* Border */
  --border-color: #e5e7eb;

  /* Accent Colors */
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-orange: #f97316;
  --accent-purple: #8b5cf6;
  --accent-teal: #14b8a6;
  --accent-gold: #d97706;

  /* Typography */
  --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  line-height: 1.6;
}

/* Slides Container */
.slides-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slide.active {
  display: flex;
  opacity: 1;
}

/* Title Slide */
.title-slide {
  background: var(--bg-primary);
  flex-direction: column;
  text-align: center;
  justify-content: center;
  padding: 4rem;
  position: relative;
}

.title-slide::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.title-slide::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.title-slide h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin: 0 0 1.5rem 0;
  color: var(--text-primary);
  -webkit-text-fill-color: var(--text-primary);
  letter-spacing: -0.02em;
  animation: titleFadeIn 1s ease-out;
  position: relative;
  z-index: 1;
}

@keyframes titleFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.title-slide p {
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin: 0;
  animation: titleFadeIn 1s ease-out 0.3s backwards;
  position: relative;
  z-index: 1;
}

.title-slide .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  animation: titleFadeIn 1s ease-out 0.6s backwards;
  position: relative;
  z-index: 1;
}

.title-slide .powered-by {
  font-size: 0.95rem;
  color: var(--accent-blue);
  margin-top: 2.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  animation: titleFadeIn 1s ease-out 0.9s backwards;
  position: relative;
  z-index: 1;
}

/* Explanation Slide */
.explanation-slide {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 2rem 3rem;
  width: 100%;
  max-height: calc(100vh - 4rem);
  height: calc(100vh - 4rem);
  overflow: hidden;
}

.explanation-slide .slide-header {
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.explanation-slide h2 {
  font-size: 1.75rem;
  margin: 0 0 0.25rem 0;
  font-weight: 700;
  color: var(--text-primary);
}

.explanation-slide .slide-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 2rem;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.content-left,
.content-right {
  display: flex;
  flex-direction: column;
}

.diagram-area {
  min-height: 0;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.diagram-area svg {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.description-area {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
}

.content-left h3,
.content-right h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  color: var(--accent-blue);
  font-weight: 600;
}

.content-left p,
.content-right p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  color: var(--text-primary);
}

.content-left ul,
.content-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-left li,
.content-right li {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-primary);
}

.content-left li::before,
.content-right li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
  font-weight: 700;
}

/* Demo Slide */
.demo-slide {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 2.5rem 3rem;
  width: 100%;
  height: 100%;
}

.demo-slide h2 {
  font-size: 1.75rem;
  margin: 0 0 1rem 0;
  font-weight: 700;
  text-align: center;
  color: var(--text-primary);
}

.demo-content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Agent Badges */
.agent-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0.25rem;
  transition: var(--transition-fast);
}

.agent-badge.blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.agent-badge.orange {
  background: rgba(249, 115, 22, 0.1);
  color: var(--accent-orange);
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.agent-badge.green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.agent-badge.purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.agent-badge.teal {
  background: rgba(20, 184, 166, 0.1);
  color: var(--accent-teal);
  border: 1px solid rgba(20, 184, 166, 0.25);
}

.agent-badge.gold {
  background: rgba(217, 119, 6, 0.1);
  color: var(--accent-gold);
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.agent-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* English Labels */
.en {
  font-size: 0.85em;
  opacity: 0.65;
  font-weight: 400;
}

/* Navigation */
.slide-nav {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-dots {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-dot.active {
  background: var(--accent-blue);
  width: 24px;
  border-radius: 999px;
}

.nav-dot:hover {
  background: rgba(0, 0, 0, 0.3);
  transform: scale(1.2);
}

.nav-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  opacity: 0.6;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-arrow:hover {
  opacity: 1;
  background: #ffffff;
  border-color: var(--accent-blue);
  transform: scale(1.1);
}

.nav-arrow.disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.nav-arrow.disabled:hover {
  transform: none;
  border-color: var(--border-color);
}

.slide-counter {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Use Cases Section */
.use-cases {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
}

.use-cases h3,
.use-cases h4 {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  color: var(--accent-blue);
  font-weight: 600;
}

.use-cases ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.use-cases li {
  font-size: 0.9rem;
  padding-left: 1.25rem;
  position: relative;
  color: var(--text-primary);
}

.use-cases li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 700;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 600px;
  width: 90%;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-content h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.75rem;
  color: var(--text-primary);
}

.modal-content p {
  margin: 0 0 1rem 0;
  line-height: 1.6;
  color: var(--text-primary);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  font-size: 1.25rem;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

/* Shortcuts Overlay */
.shortcuts-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shortcuts-overlay.active {
  display: flex;
  opacity: 1;
}

.shortcuts-content {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.shortcuts-content h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.75rem;
  color: var(--text-primary);
}

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

.shortcuts-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.shortcuts-list li:last-child {
  border-bottom: none;
}

.shortcuts-list .key {
  background: rgba(0, 0, 0, 0.06);
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.875rem;
  color: var(--accent-blue);
  font-weight: 600;
}

.shortcuts-list .description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .title-slide h1 {
    font-size: 2.5rem;
  }

  .title-slide p {
    font-size: 1.125rem;
  }

  .explanation-slide {
    padding: 2rem;
  }

  .explanation-slide h2 {
    font-size: 1.75rem;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .demo-slide {
    padding: 2rem;
  }

  .demo-slide h2 {
    font-size: 1.5rem;
  }

  .use-cases ul {
    grid-template-columns: 1fr;
  }

  .slide-counter {
    right: 1rem;
    bottom: 1rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-secondary);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pros/Cons Section */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.pros h4 { color: var(--accent-green); margin: 0 0 0.25rem 0; font-size: 0.95rem; }
.cons h4 { color: var(--accent-orange); margin: 0 0 0.25rem 0; font-size: 0.95rem; }

.pros ul, .cons ul {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.pros li::before { content: "\2713  "; color: var(--accent-green); font-weight: 700; }
.cons li::before { content: "\2717  "; color: var(--accent-orange); font-weight: 700; }
