/**
 * Simya Diş – Açılış ekranı (hafif CSS animasyon)
 */

.simya-splash {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.simya-splash .lds-roller {
  display: none !important;
}

.simya-splash__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  animation: simyaSplashIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.simya-splash__inner::before {
  content: "";
  position: absolute;
  width: min(320px, 85vw);
  height: min(320px, 85vw);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(106, 58, 147, 0.08) 0%,
    rgba(106, 58, 147, 0) 70%
  );
  pointer-events: none;
  animation: simyaSplashPulse 1.6s ease-in-out 0.15s 1;
}

.simya-splash__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: min(280px, 72vw);
  max-width: 280px;
  height: auto;
  max-height: clamp(40px, 10vw, 56px);
  object-fit: contain;
  animation: simyaSplashGlow 1.5s ease-in-out 0.1s 1;
}

@keyframes simyaSplashIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes simyaSplashGlow {
  0%,
  100% {
    filter: drop-shadow(0 2px 12px rgba(106, 58, 147, 0.1));
  }
  50% {
    filter: drop-shadow(0 4px 20px rgba(106, 58, 147, 0.2));
  }
}

@keyframes simyaSplashPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

body.splash-active {
  overflow: hidden;
}

@media (max-width: 480px) {
  .simya-splash__logo {
    width: min(220px, 78vw);
    max-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .simya-splash__inner,
  .simya-splash__logo,
  .simya-splash__inner::before {
    animation: none !important;
  }

  .simya-splash__inner::before {
    opacity: 0.5;
  }

  .simya-splash {
    transition-duration: 0.15s;
  }
}
