/* Enhanced Loading Spinner - Consistent with Lazy Lister Branding */
.loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #121212;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.3s ease;
}

.loading-container.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-content {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: #1E1E1E;
  padding: 3rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(65, 105, 225, 0.2);
  max-width: 400px;
  width: 90vw;
}

/* Background Glow Effect - matching your other pages */
.loading-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    farthest-side circle at center,
    rgba(65, 105, 225, 0.15),
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.loading-content > * {
  position: relative;
  z-index: 1;
}

/* Logo Container with Integrated Spinner */
.logo-spinner-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-logo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  filter: drop-shadow(0 4px 8px rgba(65, 105, 225, 0.4));
  animation: pulseGlow 3s ease-in-out infinite;
  z-index: 2;
  position: relative;
  margin: 0; /* Remove auto margin since container handles centering */
}

@keyframes pulseGlow {
  0%   { filter: drop-shadow(0 4px 8px rgba(65, 105, 225, 0.4)); }
  50%  { filter: drop-shadow(0 8px 16px rgba(65, 105, 225, 0.8)); }
  100% { filter: drop-shadow(0 4px 8px rgba(65, 105, 225, 0.4)); }
}

/* Spinner surrounds the logo */
.spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: #4169E1;
  border-right-color: rgba(65, 105, 225, 0.6);
  animation: spin 2s linear infinite;
  z-index: 1;
  margin: 0; /* Remove any default margins */
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Typography - matching your design system */
.loading-text {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
}

.loading-subtext {
  margin-bottom: 2rem;
  line-height: 1.6;
  color: #ccc;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
}

.trust-signal {
  font-size: 0.9rem;
  color: #999;
  margin-top: 15px;
  font-family: 'Inter', sans-serif;
}

/* Responsive adjustments - Updated for integrated design */
@media (max-width: 480px) {
  .loading-content {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .logo-spinner-container {
    width: 100px;
    height: 100px;
  }
  
  .loading-logo {
    width: 60px;
    height: 60px;
  }
  
  .spinner {
    width: 100px;
    height: 100px;
    border-width: 2px;
  }
  
  .loading-text {
    font-size: 1.5rem;
  }
  
  .loading-subtext {
    font-size: 0.9rem;
  }
}