/* 🎨 HOODREVENGE LOGO SPINNING LOADER */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-container {
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 16px;
  border: 2px solid #f0f0f0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 🚀 SPINNING HOODREVENGE LOGO */
.loader-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  position: relative;
  animation: logoSpin 2s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #f0f0f0;
}

.loader-logo img {
  width: 70px;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

@keyframes logoSpin {
  0% {
    transform: rotate(0deg) scale(1);
    border-color: #f0f0f0;
  }
  50% {
    transform: rotate(180deg) scale(1.05);
    border-color: #2c2c2c;
  }
  100% {
    transform: rotate(360deg) scale(1);
    border-color: #f0f0f0;
  }
}

/* Minimalist Dots Loader */
.dots-loader {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0;
}

.dot {
  width: 10px;
  height: 10px;
  background: #2c2c2c;
  border-radius: 50%;
  animation: dotPulse 1.4s ease-in-out infinite both;
}

.dot:nth-child(1) {
  animation-delay: -0.32s;
}
.dot:nth-child(2) {
  animation-delay: -0.16s;
}
.dot:nth-child(3) {
  animation-delay: 0;
}

@keyframes dotPulse {
  0%,
  80%,
  100% {
    transform: scale(0.7);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.loader-text {
  color: #2c2c2c;
  font-size: 1rem;
  font-weight: 500;
  margin-top: 16px;
  animation: textFade 2s ease-in-out infinite;
  font-family: "Inter", sans-serif;
}

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

/* Progress Bar Loader */
.progress-bar {
  width: 180px;
  height: 3px;
  background: #f0f0f0;
  border-radius: 2px;
  margin: 20px auto;
  overflow: hidden;
  position: relative;
}

.progress-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #2c2c2c, transparent);
  animation: progressSlide 1.8s ease-in-out infinite;
}

@keyframes progressSlide {
  0% {
    left: -50%;
  }
  100% {
    left: 100%;
  }
}

/* Hide loader after page loads */
.loader-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .loader-container {
    padding: 30px 20px;
    margin: 20px;
  }

  .loader-logo {
    width: 80px;
    height: 80px;
  }

  .loader-logo img {
    width: 55px;
    max-height: 55px;
  }

  .loader-text {
    font-size: 0.9rem;
  }

  .progress-bar {
    width: 140px;
  }

  .dots-loader {
    gap: 6px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }
}
