/* ============================================
   NADAGERI PRODUCTIONS - Loading Screen
   ============================================ */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 10000;
  background: var(--deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4.5vw, 1.8rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold-dark));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 2s ease-in-out infinite;
  margin-bottom: 2rem;
  text-align: center;
  padding: 0 1rem;
  line-height: 1.3;
}

.loading-logo img {
  height: clamp(3.4rem, 8vw, 5rem);
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 0.5rem;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35), 0 4px 14px rgba(0, 0, 0, 0.35);
  animation: logoReveal 1s var(--ease-smooth) forwards;
}

@keyframes logoReveal {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.loading-spinner {
  width: min(12vw, 48px);
  height: min(12vw, 48px);
  border: 3px solid var(--glass-border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-bar {
  width: min(80vw, 200px);
  max-width: 200px;
  height: 2px;
  background: var(--glass-border);
  border-radius: 2px;
  margin-top: 1.5rem;
  overflow: hidden;
}

.loading-bar .fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--purple));
  animation: loadingProgress 1.5s ease forwards;
}

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

@keyframes loadingProgress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

@media (max-width: 480px) {
  .loading-logo {
    font-size: clamp(1rem, 5vw, 1.4rem);
  }
  
  .loading-bar {
    width: min(70vw, 160px);
  }
}
