/* Frontend Slides - Base Slideshow CSS */

/* CSS Variables for customization */
:root {
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-secondary: 'JetBrains Mono', Consolas, monospace;
  --font-size-h1: 3rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.5rem;
  --font-size-body: 1rem;
  --line-height-heading: 1.2;
  --line-height-body: 1.6;
  
  /* Colors */
  --color-primary: #1a1a1a;
  --color-secondary: #666666;
  --color-background: #ffffff;
  --color-text: #1a1a1a;
  --color-text-light: #666666;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Layout */
  --max-width: 1200px;
  --border-radius: 4px;
  
  /* Animation */
  --transition-duration: 0.3s;
  --transition-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

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

/* Slideshow container */
.slideshow-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Base slide styles */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: var(--spacing-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateX(100%);
  transition: all var(--transition-duration) var(--transition-easing);
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
}

.slide.prev {
  transform: translateX(-100%);
}

/* Typography */
.slide h1,
.slide .headline {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-heading);
  color: var(--color-primary);
  margin: 0 0 var(--spacing-lg) 0;
  text-align: center;
  max-width: 800px;
}

.slide h2 {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-heading);
  color: var(--color-primary);
  margin: 0 0 var(--spacing-md) 0;
}

.slide h3 {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-heading);
  color: var(--color-primary);
  margin: 0 0 var(--spacing-md) 0;
}

.slide p,
.slide .body {
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text);
  margin: 0 0 var(--spacing-lg) 0;
  max-width: 65ch;
}

.slide .subline {
  font-size: var(--font-size-h3);
  color: var(--color-text-light);
  font-weight: normal;
  margin: 0;
}

/* Lists */
.slide ul,
.slide .bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 65ch;
}

.slide ul li,
.slide .bullets li {
  position: relative;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
}

.slide ul li::before,
.slide .bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* Slide types */
.slide-title {
  text-align: center;
}

.slide-content {
  align-items: flex-start;
  text-align: left;
  max-width: var(--max-width);
  margin: 0 auto;
}

.slide-split {
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-2xl);
}

.slide-split .text-content {
  flex: 1;
  max-width: none;
}

.slide-split .image-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-split .image-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* Images */
.slide img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.slide .caption {
  font-size: 0.875rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: var(--spacing-sm);
  font-style: italic;
}

/* Navigation */
.navigation {
  position: fixed;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-sm);
  z-index: 100;
  opacity: 0;
  transition: opacity var(--transition-duration);
}

.navigation.visible {
  opacity: 1;
}

.navigation button {
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  cursor: pointer;
  transition: background var(--transition-duration);
}

.navigation button:hover {
  background: rgba(0, 0, 0, 0.9);
}

.navigation button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--color-primary);
  width: var(--progress-width, 0%);
  transition: width var(--transition-duration);
}

/* Slide counter */
.slide-counter {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: var(--border-radius);
  font-family: var(--font-secondary);
  font-size: 0.875rem;
  z-index: 100;
  opacity: 0;
  transition: opacity var(--transition-duration);
}

.slide-counter.visible {
  opacity: 1;
}

/* Responsive design */
@media (max-width: 1024px) {
  .slide {
    padding: var(--spacing-xl);
  }
  
  .slide h1,
  .slide .headline {
    font-size: 2.5rem;
  }
  
  .slide h2 {
    font-size: 1.75rem;
  }
  
  .slide-split {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .slide {
    padding: var(--spacing-lg);
  }
  
  .slide h1,
  .slide .headline {
    font-size: 2rem;
  }
  
  .slide h2 {
    font-size: 1.5rem;
  }
  
  .slide h3 {
    font-size: 1.25rem;
  }
  
  .navigation {
    bottom: var(--spacing-sm);
  }
  
  .slide-counter {
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .slide {
    padding: var(--spacing-md);
  }
  
  .slide h1,
  .slide .headline {
    font-size: 1.75rem;
  }
}

/* Print styles */
@media print {
  .slideshow-container {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
  }
  
  .slide {
    position: static;
    opacity: 1;
    transform: none;
    page-break-after: always;
    height: 100vh;
    width: auto;
    margin: 0;
  }
  
  .slide:last-child {
    page-break-after: avoid;
  }
  
  .navigation,
  .progress-bar,
  .slide-counter {
    display: none;
  }
}

/* Accessibility */
.slide:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .slide,
  .navigation,
  .progress-bar::after,
  .slide-counter {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #000000;
    --color-background: #ffffff;
    --color-text: #000000;
    --color-text-light: #000000;
  }
}