/* ============================================
   BOCHI CILACAP - SCROLL TO TOP BUTTON
   File: scroll-to-top.css
   ============================================ */

.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #97c1c0 0%, #7eb5b4 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 99997;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(151, 193, 192, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: linear-gradient(135deg, #7eb5b4 0%, #6aa9a8 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(151, 193, 192, 0.5);
}

.scroll-to-top:active {
  transform: translateY(0);
}

.scroll-to-top i {
  font-size: 22px;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
  transform: translateY(-2px);
}

/* Dark mode support */
body.dark-mode .scroll-to-top {
  background: linear-gradient(135deg, #5a8a89 0%, #4a7a79 100%);
  box-shadow: 0 4px 15px rgba(90, 138, 137, 0.3);
}

body.dark-mode .scroll-to-top:hover {
  background: linear-gradient(135deg, #4a7a79 0%, #3a6a69 100%);
  box-shadow: 0 8px 25px rgba(90, 138, 137, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .scroll-to-top i {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .scroll-to-top {
    bottom: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
  }

  .scroll-to-top i {
    font-size: 18px;
  }
}

/* Accessibility - reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-to-top {
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease;
  }

  .scroll-to-top:hover {
    transform: translateY(0);
  }

  .scroll-to-top:hover i {
    transform: none;
  }
}

/* Print - hide button */
@media print {
  .scroll-to-top {
    display: none !important;
  }
}






