/* === YENİ SPLASH EKRANI (BEYAZ & DAHA HIZLI) === */
/* ============================================= */

@keyframes splashFadeInPulse {

  /* Performans için blur animasyonu kaldırıldı. Sadece opacity ve transform kullanılıyor. */
  0% {
    opacity: 0;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ================================================================== */
/* === ULTRA PREMIUM SPLASH SCREEN (GPU ACCELERATED) === */
/* ================================================================== */

#splashScreenContainer {
  position: fixed;
  inset: 0;
  background-color: #000000;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* DEĞİŞİKLİK: Süre 0.6s -> 1.1s yapıldı (+0.5s) */
  transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), visibility 1.1s;
}

/* --- 1. KATMAN: HAREKETLİ YILDIZLAR (GPU) --- */
/* background-position yerine translate3d kullanarak 60FPS garanti ediyoruz */
.splash-bg-layer {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image:
    radial-gradient(1px 1px at 10% 10%, #fff, transparent),
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(2px 2px at 30% 50%, #ffffff, transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent),
    radial-gradient(1px 1px at 60% 20%, #fff, transparent),
    radial-gradient(2px 2px at 70% 80%, #fff, transparent),
    radial-gradient(1px 1px at 80% 40%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 90% 10%, #fff, transparent);
  background-size: 400px 400px;
  opacity: 0.6;
  animation: cinematicDrift 80s linear infinite;
  will-change: transform;
  /* Tarayıcıya ipucu veriyoruz */
  z-index: 0;
}

@keyframes cinematicDrift {
  0% {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }

  100% {
    transform: rotate(5deg) translate3d(-50px, -50px, 0);
  }
}

/* --- 2. KATMAN: ORTAM IŞIĞI (NEBULA GLOW) --- */
.splash-glow-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(70, 130, 180, 0.12) 0%, transparent 60%);
  z-index: 1;
  animation: breatheGlow 5s ease-in-out infinite alternate;
}

@keyframes breatheGlow {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }

  100% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

/* --- LOGO ALANI --- */
#splashScreenContainer .logo-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;

  /* DEĞİŞİKLİK: Süre 1.2s -> 1.7s yapıldı (+0.5s) */
  animation: contentReveal 1.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#splashScreenContainer #appLogoImage {
  max-width: 140px;
  /* Daha zarif boyut */
  height: auto;
  display: block;
  /* Premium Glow */
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
  margin-bottom: 15px;
}

#splashScreenContainer .premium-text-logo {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 2px;
  /* Harf aralığını açarak lüks hissi veriyoruz */
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* --- ALT BİLGİ (FOOTER) --- */
.splash-footer {
  position: absolute;
  bottom: 40px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  /* Logo geldikten sonra gelsin */
  animation: fadeUpDelayed 1s ease-out 0.5s forwards;
}

.studio-name {
  font-size: 0.7rem;
  color: #525252;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

/* --- MİNİMALİST YÜKLEME NOKTALARI --- */
.loading-indicator {
  display: flex;
  gap: 6px;
}

.loading-indicator span {
  width: 4px;
  height: 4px;
  background-color: var(--accent-primary);
  /* Tema rengi */
  border-radius: 50%;
  animation: dotPulse 1.4s infinite ease-in-out both;
}

.loading-indicator span:nth-child(1) {
  animation-delay: -0.32s;
}

.loading-indicator span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes dotPulse {

  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* --- GİRİŞ ANİMASYONLARI --- */
@keyframes contentReveal {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeUpDelayed {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- ÇIKIŞ ANİMASYONU (JS TETİKLEYECEK) --- */
#splashScreenContainer.launching {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Çıkışta logonun büyümesi (Netflix stili) */
#splashScreenContainer.launching .logo-wrapper {
  transform: scale(1.5);
  opacity: 0;
  transition: all 0.5s ease-in;
}


