/* DO NOT EDIT – CORE
   Scroll to Top Button - Tema ile Uyumlu */

.tnc-scroll-top {
  position: fixed;
  bottom: 90px; /* Chatbot'un üstünde olması için */
  right: 24px;
  width: 48px;
  height: 48px;
  background: color-mix(in oklab, var(--wp--preset--color--bg, #0b0f14) 95%, black);
  border: 1px solid color-mix(in oklab, var(--wp--preset--color--accent, #00e5ff) 40%, transparent);
  border-radius: 50%;
  color: var(--wp--preset--color--accent, #00e5ff);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
}

.tnc-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tnc-scroll-top:hover {
  background: color-mix(in oklab, var(--wp--preset--color--accent, #00e5ff) 15%, transparent);
  border-color: var(--wp--preset--color--accent, #00e5ff);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px color-mix(in oklab, var(--wp--preset--color--accent, #00e5ff) 30%, transparent);
}

.tnc-scroll-top:active {
  transform: translateY(-2px);
}

.tnc-scroll-top:focus {
  outline: 2px solid var(--wp--preset--color--accent, #00e5ff);
  outline-offset: 2px;
}

.tnc-scroll-top svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: transform 0.3s ease;
  display: block;
}

.tnc-scroll-top:hover svg {
  transform: translateY(-3px);
}

.tnc-scroll-top:active svg {
  transform: translateY(-1px);
}

/* WhatsApp FAB ile çakışmaması için - Sol tarafta WhatsApp, sağ tarafta Scroll Top */
@media (max-width: 767px) {
  .tnc-scroll-top {
    bottom: 90px; /* Chatbot'un üstünde */
    right: 16px;
    width: 44px;
    height: 44px;
  }
  
  .tnc-scroll-top svg {
    width: 20px;
    height: 20px;
  }
}

/* Tablet için ayar */
@media (min-width: 768px) and (max-width: 991px) {
  .tnc-scroll-top {
    bottom: 90px; /* Chatbot'un üstünde */
    right: 24px;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .tnc-scroll-top {
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }
  
  .tnc-scroll-top:hover {
    transform: none;
  }
  
  .tnc-scroll-top svg {
    transition: none;
  }
}

/* Print - Gizle */
@media print {
  .tnc-scroll-top {
    display: none !important;
  }
}

