/* =============================================================================
   ALKEDA HTS - WEB SURUMU sayfa stili (W1, 22.10.2026).
   CSP style-src 'self' oldugu icin satir ici stil YOK: acilis gorunumu, guncelleme bandi ve
   iOS ayarlari burada.
   ============================================================================= */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  /* Koyu zemin: Flutter ilk kareyi cizene kadar ve iOS guvenli alan bosluklarinda gorunur. */
  background: #0C0E11;
  color: #E9EEF2;
  /* iOS Safari: lastik bant kaydirma / asagi cekip yenileme / yatay geri kaydirma Flutter'in
     surukleme hareketlerini (saha editoru, kadro dizilimi) bolmesin. */
  overscroll-behavior: none;
  overflow: hidden;
  /* Uzun basista iOS'un "kopyala / paylas" balonu ve dokunma vurgusu cikmasin. */
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-color-scheme: light) {
  html, body { background: #F4F6F8; color: #14181D; }
}

/* iOS Safari bir giris alaninin yazi boyutu 16 px'ten kucukse odaklaninca sayfayi BUYUTUR.
   Flutter'in gizli giris ogesi gorunmez; boyutu yalniz bu otomatik buyutmeyi onler. */
input, textarea, select {
  font-size: 16px !important;
}

/* --- Acilis (Flutter yuklenirken) ------------------------------------------------------ */
#hts-acilis {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  transition: opacity 180ms ease-out;
}
#hts-acilis img {
  border-radius: 16px;
  animation: hts-nabiz 1.4s ease-in-out infinite;
}
#hts-acilis.hts-gizle { opacity: 0; }
@keyframes hts-nabiz {
  0%, 100% { opacity: .55; transform: scale(.97); }
  50%      { opacity: 1;   transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #hts-acilis img { animation: none; }
}

/* --- Guvenli alan olcer (hts-web.js okur; iOS centik / ana ekran cubugu) ------------- */
.hts-guvenli-olcer {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  visibility: hidden;
  pointer-events: none;
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
}

/* --- "Yeni surum hazir - Yenile" bandi (service worker) ------------------------------- */
.hts-bant {
  position: fixed;
  z-index: 2147483000;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 14px;
  border-radius: 14px;
  background: #16231A;
  color: #E9F7EC;
  border: 1px solid #2F6B3F;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
  font: 500 15px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  animation: hts-bant-gel 220ms ease-out;
}
.hts-bant-metin { flex: 1 1 auto; white-space: nowrap; }
.hts-bant button {
  flex: 0 0 auto;
  font: 600 15px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #4DFF88;
  color: #08210F;
  cursor: pointer;
}
.hts-bant button:focus-visible { outline: 2px solid #E9F7EC; outline-offset: 2px; }
.hts-bant button.hts-bant-kapat {
  background: transparent;
  color: #B9D8C1;
  padding: 0 10px;
  font-weight: 500;
}
@media (prefers-color-scheme: light) {
  .hts-bant { background: #FFFFFF; color: #14181D; border-color: #9CCDA8; box-shadow: 0 8px 28px rgba(20, 24, 29, .18); }
  .hts-bant button { background: #1F7A3D; color: #FFFFFF; }
  .hts-bant button.hts-bant-kapat { background: transparent; color: #4A5560; }
}
@keyframes hts-bant-gel {
  from { opacity: 0; transform: translate(-50%, -8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
