/**
 * Constellation Splash Screen Styles
 */

/* Prevent scrolling while splash is active */
body.splash-active {
  overflow: hidden;
}

#constellation-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background: rgb(10, 12, 20);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

#constellation-splash.fade-out {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

#splash-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.splash-content {
  position: relative;
  z-index: 10;
  text-align: center;
  pointer-events: none;
}

.splash-title {
  font-family: var(--gh-font-heading, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 700;
  color: white;
  margin: 0;
  padding: 0 2rem;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(100, 150, 255, 0.5),
               0 0 80px rgba(100, 150, 255, 0.3);
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% {
    text-shadow: 0 0 40px rgba(100, 150, 255, 0.5),
                 0 0 80px rgba(100, 150, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 60px rgba(100, 180, 255, 0.7),
                 0 0 100px rgba(100, 180, 255, 0.4);
  }
}

.splash-title .cursor {
  animation: blink 0.8s infinite;
  color: rgba(100, 180, 255, 0.8);
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.splash-hint {
  position: absolute;
  bottom: -4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transition: opacity 0.5s ease;
  white-space: nowrap;
}

.splash-hint.visible {
  opacity: 1;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #constellation-splash {
    display: none !important;
  }

  body.splash-active {
    overflow: auto;
  }
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .splash-title {
    font-size: clamp(2rem, 10vw, 4rem);
  }

  .splash-hint {
    font-size: 0.875rem;
  }
}
