/**
 * components/scroll-to-top.css — Scroll-to-Top Button
 *
 * Fixed position button that appears on scroll.
 * Modern, clean styling with gradient and smooth interactions.
 *
 * @package MJC_Fintech_Child
 */

/* =====================================================
   SCROLL-TO-TOP BUTTON
   ===================================================== */

.mjc-scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-cyan) 100%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.2);
  z-index: 999;
  padding: 0;
}

.mjc-scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35), 0 0 20px rgba(13, 148, 136, 0.25);
}

.mjc-scroll-to-top:active {
  transform: translateY(-2px);
}

.mjc-scroll-to-top:focus-visible {
  outline: 2px solid var(--color-cyan-light);
  outline-offset: 2px;
}

/* Visible state */
.mjc-scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* Arrow icon inside button */
.mjc-scroll-to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =====================================================
   RESPONSIVE — MOBILE (768px and below)
   ===================================================== */

@media (max-width: 768px) {
  .mjc-scroll-to-top {
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
  }

  .mjc-scroll-to-top svg {
    width: 18px;
    height: 18px;
  }
}
