/**
 * App Loader Styles
 * Critical styles for initial loading screen
 */

/* Base reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styles */
body {
  background: #000000;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  touch-action: pan-y;
}

/* Root container */
#root {
  min-height: 100vh;
  position: relative;
}

/* Lottie loader container */
.app-skeleton {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.3s ease;
}

/* Hide animation */
.app-skeleton.hide {
  opacity: 0;
  pointer-events: none;
}

/* Lottie container size */
.lottie-container {
  width: 500px;
  height: 500px;
}

/* Lottie player */
lottie-player {
  width: 100%;
  height: 100%;
}

/* Font loading states */
.fonts-loading body {
  opacity: 0;
}

.fonts-loaded body {
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* Additional loading text (optional) */
.loading-text {
  position: absolute;
  bottom: 30%;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  letter-spacing: 0.5px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}



/* Dark mode override (if needed) */
@media (prefers-color-scheme: dark) {
  .app-skeleton {
    background: #000000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .app-skeleton,
  .loading-text {
    animation: none;
  }
  
  .app-skeleton.hide {
    transition: none;
  }
}

/* Small screen adjustments */
@media (max-width: 480px) {
  .lottie-container {
    width: 100%;
    height: 100%;

  }
  
  .loading-text {
    font-size: 12px;
  }
}
