/* PWA açılış ekranı: Flutter yüklenene kadar gösterilir. */
html,
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(135deg, #0D47A1 0%, #1E88E5 100%);
  /* Kenardan kaydırmanın sayfa geçmişinde gezinmesini / sayfayı çekip
     yenilemesini (destekleyen tarayıcılarda) kapat. */
  overscroll-behavior: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#splash {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Logo küçükten büyüyerek belirir, sonra hafifçe nefes alır. */
#splash .logo {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  animation: splash-in 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) both,
    splash-pulse 1.4s ease-in-out 0.65s infinite alternate;
}

#splash .title {
  margin-top: 24px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  animation: splash-fade 0.5s ease-out 0.25s both;
}

#splash .dots {
  margin-top: 28px;
  display: flex;
  gap: 8px;
}

#splash .dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  animation: splash-dot 1s ease-in-out infinite;
}

#splash .dots span:nth-child(2) { animation-delay: 0.15s; }
#splash .dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes splash-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes splash-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@keyframes splash-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes splash-dot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  #splash .logo,
  #splash .title,
  #splash .dots span {
    animation: none;
  }
}

/* Yeni sürüm bildirimi (index.html içindeki sürüm denetimi gösterir). */
#update-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border-radius: 14px;
  background: #0D47A1;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

#update-banner button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #0D47A1;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
