/**
 * Loading Screen Styles
 * Production-ready loading component with smooth animations
 */

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Marquee Container - Top Section */
.loading-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 3rem;
  padding: 2rem 0;
}

.loading-marquee-text {
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 900;
  color: #ffffff;
  white-space: nowrap;
  display: inline-block;
  will-change: transform;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* Progress Container - Below Marquee */
.loading-progress-container {
  position: relative;
  width: 100%;
  /* max-width: 800px; */
  height: 30vh;
  background-color: #000000;
  overflow: hidden;
  /* border: 2px solid #ffffff; */
}

/* White fill that grows from left to right */
.loading-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: #ffffff;
  will-change: width;
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Progress Text - Auto-inverts over white fill */
.loading-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  mix-blend-mode: difference;
  z-index: 2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.05em;
  user-select: none;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .loading-marquee-text {
    font-size: clamp(2rem, 10vw, 5rem);
  }
  
  .loading-marquee-container {
    margin-bottom: 2rem;
  }
  
  .loading-progress-container {
    width: 100%;
    height: 120px;
  }
  
  .loading-progress-text {
    font-size: clamp(1.5rem, 6vw, 3rem);
  }
}

@media screen and (max-width: 480px) {
  .loading-marquee-container {
    margin-bottom: 1.5rem;
  }
  
  .loading-marquee-text {
    font-size: clamp(1.5rem, 12vw, 4rem);
  }
  
  .loading-progress-container {
    width: 100%;
    height: 100px;
  }
  
  .loading-progress-text {
    font-size: clamp(1.2rem, 7vw, 2.5rem);
  }
}

/* Smooth hardware acceleration */
.loading-screen,
.loading-marquee-text,
.loading-progress-fill,
.loading-progress-text {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Prevent text selection */
.loading-screen * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
