/* Minimal Classic Slider Animations - Elegant & Simple */

/* ===== CORE MINIMAL ANIMATIONS ===== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== APPLY MINIMAL ANIMATIONS ===== */

/* Card entrance animation */
.slide.active .card {
  animation: slideUp 0.7s ease-out;
}

/* Media entrance animation */
.slide.active .media-wrap {
  animation: slideInRight 0.7s ease-out 0.2s both;
}

.slide.active .media {
  animation: scaleIn 0.7s ease-out 0.4s both;
}

/* Text animations */
.slide.active .card h2 {
  animation: slideUp 0.6s ease-out 0.1s both;
}

.slide.active .card .subtitle {
  animation: slideUp 0.6s ease-out 0.2s both;
}

.slide.active .card-content {
  animation: slideUp 0.6s ease-out 0.3s both;
}

/* ===== SIMPLE HOVER EFFECTS ===== */

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.media-wrap {
  transition: transform 0.3s ease;
}

.media-wrap:hover {
  transform: none;
}

.media {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media:hover {
  transform: none;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

/* ===== NAVIGATION BUTTONS ===== */

.nav-btn {
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ===== SLIDE TRANSITIONS ===== */

.slide {
  transition: opacity 0.5s ease-in-out;
}

.slide-exit {
  animation: fadeIn 0.4s ease-out reverse;
}

.slide-enter {
  animation: fadeIn 0.4s ease-out;
}

/* ===== CONTENT STAGGER ===== */

.slide.active .card-content > * {
  animation: slideUp 0.5s ease-out both;
}

.slide.active .card-content > *:nth-child(1) { animation-delay: 0.4s; }
.slide.active .card-content > *:nth-child(2) { animation-delay: 0.5s; }
.slide.active .card-content > *:nth-child(3) { animation-delay: 0.6s; }
.slide.active .card-content > *:nth-child(4) { animation-delay: 0.7s; }

/* ===== RESPONSIVE ANIMATIONS ===== */

@media (max-width: 768px) {
  .slide.active .card {
    animation: slideUp 0.6s ease-out;
  }
  
  .slide.active .media-wrap {
    animation: slideUp 0.6s ease-out 0.1s both;
  }
  
  .slide.active .media {
    animation: scaleIn 0.6s ease-out 0.2s both;
  }
  
  .card:hover {
    transform: translateY(-2px);
  }
  
  .media:hover {
    transform: scale(1.02);
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

.slide,
.card,
.media-wrap,
.media,
.nav-btn {
  will-change: transform, opacity;
  contain: layout style paint;
}

/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
  .slide,
  .card,
  .media-wrap,
  .media,
  .nav-btn {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== FOCUS STATES ===== */

.nav-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
