/* GÜREL / Sayfa başına dön — 2026-10-10
   Ana sayfa için izole, mobil güvenli ve erişilebilir arayüz bileşeni. */
.gurel-back-to-top {
  box-sizing: border-box;
  position: fixed;
  right: calc(26px + env(safe-area-inset-right, 0px));
  bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(219, 233, 248, .33);
  border-radius: 50%;
  background: #0a1f44;
  color: #fff;
  box-shadow: 0 7px 24px rgba(5, 22, 50, .19);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s,
              background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gurel-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease, visibility 0s,
              background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.gurel-back-to-top svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gurel-back-to-top:hover {
  background: #194375;
  border-color: rgba(255,255,255,.60);
  box-shadow: 0 9px 26px rgba(5,22,50,.28);
}
.gurel-back-to-top:active { transform: translateY(1px); }
.gurel-back-to-top:focus-visible {
  outline: 3px solid #9fcdf9;
  outline-offset: 4px;
}
@media (max-width: 600px) {
  .gurel-back-to-top {
    right: calc(17px + env(safe-area-inset-right, 0px));
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
  }
  .gurel-back-to-top svg { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .gurel-back-to-top,
  .gurel-back-to-top.is-visible {
    transition: none;
    transform: none;
  }
}
