/* Loading Animation Styles */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #000000 0%, #1a0000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loader-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loader-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo styling */
.loader-logo {
  width: 120px;
  height: 120px;
  position: relative;
  z-index: 2;
  animation: logoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(229, 9, 20, 0.8));
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.05);
  }
}

/* Rotating ring */
.loader-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 4px solid transparent;
  border-top-color: #e50914;
  border-right-color: #e50914;
  border-radius: 50%;
  animation: ringRotate 1.5s linear infinite;
}

@keyframes ringRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Secondary ring */
.loader-ring-2 {
  position: absolute;
  width: 160px;
  height: 160px;
  border: 3px solid transparent;
  border-bottom-color: rgba(229, 9, 20, 0.5);
  border-left-color: rgba(229, 9, 20, 0.5);
  border-radius: 50%;
  animation: ringRotateReverse 2s linear infinite;
}

@keyframes ringRotateReverse {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

/* Pulsing glow */
.loader-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(229, 9, 20, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Particles */
.loader-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #e50914;
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 3s ease-in-out infinite;
}

.loader-particle:nth-child(1) {
  top: 10%;
  left: 50%;
  animation-delay: 0s;
}

.loader-particle:nth-child(2) {
  top: 30%;
  left: 80%;
  animation-delay: 0.5s;
}

.loader-particle:nth-child(3) {
  top: 70%;
  left: 20%;
  animation-delay: 1s;
}

.loader-particle:nth-child(4) {
  top: 50%;
  left: 10%;
  animation-delay: 1.5s;
}

.loader-particle:nth-child(5) {
  top: 20%;
  left: 20%;
  animation-delay: 2s;
}

.loader-particle:nth-child(6) {
  top: 80%;
  left: 70%;
  animation-delay: 2.5s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1.5);
    opacity: 0;
  }
}

/* Loading text */
.loader-text {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  color: #e50914;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Loading dots */
.loader-dots {
  display: inline-block;
}

.loader-dots span {
  animation: dotBounce 1.4s infinite;
  display: inline-block;
}

.loader-dots span:nth-child(1) {
  animation-delay: 0s;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotBounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

/* Energy waves */
.loader-wave {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 2px solid rgba(229, 9, 20, 0.3);
  border-radius: 50%;
  animation: waveExpand 2s ease-out infinite;
}

.loader-wave:nth-child(2) {
  animation-delay: 0.5s;
}

.loader-wave:nth-child(3) {
  animation-delay: 1s;
}

@keyframes waveExpand {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Spinning arc */
.loader-arc {
  position: absolute;
  width: 190px;
  height: 190px;
  border: 3px solid transparent;
  border-top-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: arcSpin 3s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes arcSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}
