body {
  margin: 0;
  padding: 0;
}

.splash-screen {
  position: absolute;
  z-index: 1000;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: Helvetica, 'sans-serif';
  color: #5E6278;
  line-height: 1;
  font-size: 14px;
  font-weight: 400;
}

.splash-screen span {
  color: #5E6278;
  transition: none !important;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] .splash-screen {
  color: #92929F;
}

[data-theme="dark"] .splash-screen span {
  color: #92929F;
}

/* Yükleme ekranı zemini: düz renk yerine yarı saydam + buzlu cam (frosted glass).
   Arkadaki body zemini şeffaf yapılır ki blur gerçekten arkadaki içeriği göstersin. */
#splash-screen {
  background-color: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 1;
  transition: opacity 0.4s ease;
}

body.splash-screen {
  background-color: transparent;
}

[data-theme="dark"] #splash-screen {
  background-color: rgba(21, 21, 33, 0.55);
}

[data-theme="dark"] body.splash-screen {
  background-color: transparent;
}

/* Yükleme bitince yumuşak kaybolma (fade-out) — JS bu sınıfı ekler */
#splash-screen.splash-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Logo + etrafında dönen halka (spinner) */
#splash-screen .splash-logo-spinner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: 30px;
}

#splash-screen .splash-logo-spinner img {
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  animation: splash-logo-pulse 1.4s ease-in-out infinite;
}

#splash-screen .splash-logo-spinner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(46, 89, 177, 0.15);
  border-top-color: #2E59B1;
  animation: splash-logo-spin 0.9s linear infinite;
}

[data-theme="dark"] #splash-screen .splash-logo-spinner::before {
  border-color: rgba(255, 255, 255, 0.12);
  border-top-color: #3E97FF;
}

@keyframes splash-logo-spin {
  to { transform: rotate(360deg); }
}

@keyframes splash-logo-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  #splash-screen .splash-logo-spinner::before,
  #splash-screen .splash-logo-spinner img {
    animation: none;
  }
}
