/* Yukarı çık — tema mavisi korunur, şekil ve çerçeve özelleştirilir */
.scroll-top {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--scroll-top-width, 48px);
  height: var(--scroll-top-height, 48px);
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 14px !important;
  border: 2px solid rgba(255, 255, 255, 0.42) !important;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.14),
    0 2px 8px rgba(0, 162, 224, 0.28);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    opacity 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.scroll-top.scroll-top-active {
  display: flex !important;
}

.scroll-top:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.16),
    0 6px 16px rgba(0, 162, 224, 0.38);
}

.scroll-top:active {
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 162, 224, 0.3);
}

/* Ok — beyaz kare çerçeve içinde */
.scroll-top em {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-size: 18px !important;
  line-height: 1;
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.scroll-top:hover em {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

.scroll-top:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .scroll-top {
    width: 44px;
    height: 44px;
    border-radius: 12px !important;
  }

  .scroll-top em {
    width: 24px;
    height: 24px;
    font-size: 16px !important;
    border-radius: 6px;
  }
}
