/* PrePlay School Slider Styles */
.preplay-slider-container {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* COMPLETELY REMOVE LOADING SPINNER */
.preplay-slider-container::before {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.preplay-slider-container.loading::before {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Particle Canvas - MAXIMUM VISIBILITY */
.preplay-particles {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 10 !important;
  pointer-events: none !important;
  display: block !important;
  opacity: 1 !important;
  background: transparent !important;
}

/* Floating Letters Animation */
.preplay-floating-letters {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 11;
  pointer-events: none;
  overflow: hidden;
}

.floating-letter {
  position: absolute;
  font-size: 32px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.95);
  animation: floatUp var(--duration, 20s) linear infinite;
  animation-delay: var(--delay, 0s);
  user-select: none;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.9), 0 0 40px rgba(255, 255, 255, 0.5);
  font-family: Arial, sans-serif;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) translateX(0px) rotate(0deg) scale(0.3);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(90vh) translateX(20px) rotate(36deg) scale(0.7);
  }
  50% {
    opacity: 1;
    transform: translateY(50vh) translateX(60px) rotate(180deg) scale(1.2);
  }
  90% {
    opacity: 1;
    transform: translateY(10vh) translateX(100px) rotate(324deg) scale(0.8);
  }
  100% {
    transform: translateY(-20vh) translateX(120px) rotate(360deg) scale(0.3);
    opacity: 0;
  }
}

/* Position floating letters */
.floating-letter:nth-child(1) {
  left: 5%;
  --delay: 0s;
  --duration: 18s;
}
.floating-letter:nth-child(2) {
  left: 15%;
  --delay: 2s;
  --duration: 22s;
}
.floating-letter:nth-child(3) {
  left: 25%;
  --delay: 4s;
  --duration: 20s;
}
.floating-letter:nth-child(4) {
  left: 35%;
  --delay: 6s;
  --duration: 24s;
}
.floating-letter:nth-child(5) {
  left: 45%;
  --delay: 8s;
  --duration: 19s;
}
.floating-letter:nth-child(6) {
  left: 55%;
  --delay: 10s;
  --duration: 21s;
}
.floating-letter:nth-child(7) {
  left: 65%;
  --delay: 12s;
  --duration: 23s;
}
.floating-letter:nth-child(8) {
  left: 75%;
  --delay: 14s;
  --duration: 17s;
}
.floating-letter:nth-child(9) {
  left: 85%;
  --delay: 16s;
  --duration: 25s;
}
.floating-letter:nth-child(10) {
  left: 10%;
  --delay: 18s;
  --duration: 20s;
}
.floating-letter:nth-child(11) {
  left: 30%;
  --delay: 20s;
  --duration: 22s;
}
.floating-letter:nth-child(12) {
  left: 70%;
  --delay: 22s;
  --duration: 18s;
}

/* Slider Wrapper */
.preplay-slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 3;
}

/* Slides Container */
.preplay-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual Slide */
.preplay-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.1);
}

.preplay-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Slide Transitions */
.preplay-slider-container[data-transition="slide"] .preplay-slide {
  transform: translateX(100%);
}

.preplay-slider-container[data-transition="slide"] .preplay-slide.active {
  transform: translateX(0);
}

.preplay-slider-container[data-transition="zoom"] .preplay-slide {
  transform: scale(0.8);
}

.preplay-slider-container[data-transition="zoom"] .preplay-slide.active {
  transform: scale(1);
}

/* Slide Overlay */
.preplay-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.3) 100%);
}

/* Slide Content */
.preplay-slide-content {
  position: absolute;
  bottom: 60px;
  left: 40px;
  right: 40px;
  color: white;
  z-index: 4;
  animation: slideInUp 1s ease-out;
}

.preplay-slide-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0 0 15px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.preplay-slide-excerpt {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  max-width: 600px;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Progress Bar */
.preplay-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 15;
}

.preplay-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
  width: 0%;
  transition: width linear;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

/* Slide Indicators */
.preplay-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 16;
}

.preplay-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.preplay-indicator.active {
  background: #ff6b6b;
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
  border-color: rgba(255, 255, 255, 0.8);
}

.preplay-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

/* Animation Visibility Controls */
.preplay-slider-container[data-animation="particles"] .preplay-floating-letters {
  display: none !important;
}

.preplay-slider-container[data-animation="letters"] .preplay-particles {
  display: none !important;
}

/* Sparkle Effect */
.preplay-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  animation: sparkle 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .preplay-slider-container {
    height: 400px;
    border-radius: 15px;
  }

  .preplay-slide-content {
    bottom: 40px;
    left: 20px;
    right: 20px;
  }

  .preplay-slide-title {
    font-size: 1.8rem;
  }

  .preplay-slide-excerpt {
    font-size: 1rem;
  }

  .floating-letter {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .preplay-slider-container {
    height: 300px;
    border-radius: 10px;
  }

  .preplay-slide-title {
    font-size: 1.5rem;
  }

  .preplay-slide-excerpt {
    font-size: 0.9rem;
  }

  .floating-letter {
    font-size: 20px;
  }
}
