/* ===== BEATZZ LOADING ANIMATION ===== */
.loading-animation-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #090b13 0%, #1a1b3a 50%, #090b13 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-out;
  overflow: hidden;
}

.loading-animation-wrapper.show {
  opacity: 1;
  visibility: visible;
}

.loading-animation-wrapper.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

/* Beatzz Logo Animation */
.loading-logo {
  width: 120px;
  height: 120px;
  position: relative;
  opacity: 0;
  animation: logoFadeIn 0.6s ease-out 0.3s forwards;
}

.loading-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(255, 49, 88, 0.3));
  transition: all 0.3s ease;
}

@keyframes logoFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}


/* Subtle Pulse Rings */
.pulse-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 49, 88, 0.2);
  border-radius: 50%;
  opacity: 0;
  animation: simplePulse 3s ease-out infinite;
}

.pulse-ring:nth-child(2) {
  animation-delay: 1s;
}

.pulse-ring:nth-child(3) {
  animation-delay: 2s;
}

@keyframes simplePulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

/* Loading Text */
.loading-text {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-top: 2rem;
  opacity: 0;
  animation: textFadeIn 0.6s ease-out 0.6s forwards;
}

@keyframes textFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 0.7;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .loading-logo {
    width: 100px;
    height: 100px;
  }
  
  .pulse-rings {
    width: 160px;
    height: 160px;
  }
  
  .loading-text {
    font-size: 1rem;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .loading-logo,
  .pulse-ring,
  .loading-text {
    animation: none !important;
  }
  .loading-logo {
    transform: none;
  }
}
