/* ===================================================
   HEUREKA DERGİ — Splash Screen
   =================================================== */

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: var(--z-splash);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

/* Particle Canvas */
.splash-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Gradient orbs */
.splash-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  animation: splash-orb-in 2s ease-out forwards;
}

.splash-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 67, 147, 0.25), transparent 70%);
  top: 20%;
  left: 15%;
  animation-delay: 0.2s;
}

.splash-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(162, 155, 254, 0.2), transparent 70%);
  bottom: 20%;
  right: 15%;
  animation-delay: 0.4s;
}

.splash-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(85, 239, 196, 0.15), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 0.6s;
}

@keyframes splash-orb-in {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Logo container */
.splash-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Logo animation */
.splash-logo-container {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-logo {
  width: 180px;
  height: auto;
  opacity: 0;
  filter: blur(20px);
  transform: scale(0.6);
  animation: logo-reveal 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}

@keyframes logo-reveal {
  0% {
    opacity: 0;
    filter: blur(20px);
    transform: scale(0.6);
  }
  60% {
    opacity: 1;
    filter: blur(5px);
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

/* Orbit ring around logo */
.splash-orbit {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(162, 155, 254, 0.2);
  border-radius: 50%;
  opacity: 0;
  animation: orbit-appear 1s ease-out 1s forwards;
}

.splash-orbit::before {
  content: '🚀';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  animation: orbit-rotate 4s linear infinite;
  transform-origin: 50% calc(50% + 110px);
}

@keyframes orbit-appear {
  to { opacity: 1; }
}

@keyframes orbit-rotate {
  from { transform: rotate(0deg) translateY(-110px) rotate(0deg); }
  to { transform: rotate(360deg) translateY(-110px) rotate(-360deg); }
}

/* Second orbit */
.splash-orbit-2 {
  width: 140%;
  height: 140%;
  top: -20%;
  left: -20%;
  border-color: rgba(232, 67, 147, 0.1);
  animation-delay: 1.2s;
}

.splash-orbit-2::before {
  content: '⚗️';
  font-size: 0.9rem;
  animation: orbit-rotate-reverse 6s linear infinite;
  transform-origin: 50% calc(50% + 155px);
}

@keyframes orbit-rotate-reverse {
  from { transform: rotate(360deg) translateY(-155px) rotate(-360deg); }
  to { transform: rotate(0deg) translateY(-155px) rotate(0deg); }
}

/* Slogan typewriter */
.splash-slogan {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  font-style: italic;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--accent-purple);
  width: 0;
  opacity: 0;
  animation: 
    typewriter 2s steps(30) 1.8s forwards,
    typewriter-fade-in 0.3s ease 1.8s forwards,
    cursor-blink 0.8s step-end infinite 1.8s;
}

@keyframes typewriter {
  to { width: 100%; }
}

@keyframes typewriter-fade-in {
  to { opacity: 1; }
}

@keyframes cursor-blink {
  50% { border-color: transparent; }
}

/* Enter button */
.splash-enter {
  opacity: 0;
  transform: translateY(20px);
  animation: enter-appear 0.8s ease 3.5s forwards;
  background: transparent;
  border: 1px solid rgba(162, 155, 254, 0.3);
  color: var(--accent-purple);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  cursor: pointer;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.splash-enter:hover {
  background: var(--accent-purple);
  color: var(--bg-primary);
  box-shadow: 0 0 30px rgba(162, 155, 254, 0.4);
  transform: translateY(-2px);
}

@keyframes enter-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Splash skip hint */
.splash-skip {
  position: absolute;
  bottom: 2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 1px;
  opacity: 0;
  animation: enter-appear 0.5s ease 4s forwards;
}

/* Loading dots at bottom */
.splash-loading {
  display: flex;
  gap: 8px;
  position: absolute;
  bottom: 4rem;
}

.splash-loading span {
  width: 6px;
  height: 6px;
  background: var(--accent-purple);
  border-radius: 50%;
  animation: loading-bounce 1.4s ease-in-out infinite;
}

.splash-loading span:nth-child(2) { animation-delay: 0.2s; }
.splash-loading span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loading-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .splash-logo-container {
    width: 160px;
    height: 160px;
  }
  
  .splash-logo {
    width: 130px;
  }
  
  .splash-slogan {
    font-size: 1rem;
  }
}
