/**
 * Preloading Overlay Styles
 * Loading overlay for listing pages while data is being fetched
 */

/* ============================================================================
   OVERLAY CONTAINER
   ============================================================================ */

.nl-ai-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nl-ai-overlay.show {
  display: flex;
  opacity: 1;
}

/* ============================================================================
   LOADING CONTENT
   ============================================================================ */

.nl-ai-loading {
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.nl-ai-loading h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.5rem;
  color: #c19e67;
  font-weight: 600;
}

.nl-ai-loading p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
}

/* ============================================================================
   LOADING SPINNER
   ============================================================================ */

.nl-ai-loading-spinner {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.nl-ai-spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: nl-spin 1.5s linear infinite;
}

.nl-ai-spinner-ring:nth-child(1) {
  border-top-color: #c19e67;
  animation-delay: 0s;
}

.nl-ai-spinner-ring:nth-child(2) {
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border-right-color: #d4b07a;
  animation-delay: 0.15s;
  animation-direction: reverse;
}

.nl-ai-spinner-ring:nth-child(3) {
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  border-bottom-color: #a88a5a;
  animation-delay: 0.3s;
}

.nl-ai-spinner-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  color: #c19e67;
  animation: nl-pulse 1.5s ease-in-out infinite;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes nl-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes nl-pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* ============================================================================
   LOADING DOTS
   ============================================================================ */

.nl-ai-loading-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.nl-ai-loading-dots span {
  width: 8px;
  height: 8px;
  background: #c19e67;
  border-radius: 50%;
  animation: nl-bounce 1.4s ease-in-out infinite both;
}

.nl-ai-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.nl-ai-loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.nl-ai-loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes nl-bounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}
