/* NYLA GO PWA - Splash Screen Styles */

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.5s ease-out;
  overflow: hidden;
}

.splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.splash-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.splash-video.loaded {
  opacity: 1;
}

/* Mobile optimizations */
@media (orientation: portrait) {
  .splash-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vw;
    max-height: 100vh;
    object-fit: contain;
  }
}

@media (orientation: landscape) {
  .splash-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vh;
    height: 100vh;
    object-fit: contain;
  }
}

/* Fallback for video loading issues */
.splash-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  padding: 40px;
  opacity: 1;
  transition: opacity 0.3s ease-out;
  box-sizing: border-box;
}

.splash-fallback.hide {
  opacity: 0;
  pointer-events: none;
}

.splash-logo {
  width: 250px;
  height: auto;
  margin-bottom: 20px;
}

.splash-logo-text {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 20px;
  color: #FF6B35;
  text-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.splash-tagline {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 8px;
}

.splash-powered {
  font-size: 14px;
  color: #FF6B35;
  margin-bottom: 30px;
  font-weight: 600;
}

.splash-loading {
  width: 40px;
  height: 40px;
  border: 3px solid #333333;
  border-top: 3px solid #FF6B35;
  border-radius: 50%;
  animation: splash-spin 1s linear infinite;
}

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

/* Embedding preload progress indicator */
.embedding-preload-status {
  margin-top: 30px;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.3s ease-out forwards;
}

.preload-text {
  font-size: 14px;
  color: #FF6B35;
  margin-bottom: 12px;
  font-weight: 500;
}

.preload-progress-bar {
  width: 200px;
  height: 4px;
  background: #333333;
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.preload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6B35, #FF8A65);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease-out;
  position: relative;
}

.preload-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% { transform: translateX(-30px); }
  100% { transform: translateX(200px); }
}

/* Accessibility - respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .splash-screen {
    transition: none;
  }
  
  .splash-loading {
    animation: none;
    border: 3px solid #FF6B35;
  }
  
  .splash-video {
    display: none;
  }
  
  .splash-fallback {
    display: flex !important;
  }
}