/* Modern Loader UI */

.rolr-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
}

.loader-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 500px;
  padding: 40px;
}

.loader-logo {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.6));
  animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.6));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 50px rgba(255, 20, 147, 0.8));
  }
}

.loader-title {
  font-size: 48px;
  font-weight: 900;
  color: #FFD700;
  margin: 0 0 10px 0;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.loader-subtitle {
  font-size: 18px;
  color: #00FFFF;
  margin: 0 0 40px 0;
  font-weight: 500;
}

.progress-container {
  margin-bottom: 20px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.3);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFD700, #FF1493);
  border-radius: 10px;
  transition: width 0.3s ease;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  animation: progressGlow 1.5s ease-in-out infinite;
}

@keyframes progressGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 20, 147, 0.8);
  }
}

.progress-text {
  font-size: 24px;
  font-weight: 700;
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.loader-status {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
  min-height: 24px;
}

.loader-details {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Courier New', monospace;
}

/* Animated background particles */
.loader-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.loader-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #FFD700;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
  animation: particleFloat 10s linear infinite;
}

.loader-particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.loader-particle:nth-child(2) {
  left: 30%;
  animation-delay: 2s;
  animation-duration: 12s;
}

.loader-particle:nth-child(3) {
  left: 50%;
  animation-delay: 4s;
  animation-duration: 10s;
}

.loader-particle:nth-child(4) {
  left: 70%;
  animation-delay: 1s;
  animation-duration: 9s;
}

.loader-particle:nth-child(5) {
  left: 90%;
  animation-delay: 3s;
  animation-duration: 11s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(1);
    opacity: 0;
  }
}

/* Fade out animation */
.rolr-loader.fade-out {
  animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(1.1);
  }
}
