/* =========================================================
   Scroll Hint — scroll-hint.css
   Khớp với Figma node "swap" (152×52px)
   ========================================================= */

.has-scroll-hint {
  position: relative !important;
}

/* Container pill — khớp Figma: 152×52px, nền đen */
.scroll-hint {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: auto !important;
  right: auto !important;
  transform: translate(-50%, -50%) !important;

  /* Kích thước cố định theo Figma */
  width: 152px !important;
  height: 52px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  flex: none !important;
  align-self: auto !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 16px !important;
  margin: 0 !important;
  box-sizing: border-box !important;

  border-radius: 30px !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(5px) !important;
  box-shadow: none !important;

  pointer-events: none !important;
  user-select: none !important;
  z-index: 9999 !important;
  white-space: nowrap !important;

  opacity: 1;
  transition: opacity 0.4s ease;
}

.scroll-hint.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Arrow SVG — 24×24 từ Figma */
.scroll-hint__arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  flex: none !important;
}

.scroll-hint__arrow svg {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
}

/* Hand icon — SVG 32×32 từ Figma */
.scroll-hint__hand {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  flex: none !important;
  animation: shHand 0.7s ease-in-out infinite alternate;
  will-change: transform;
}

.scroll-hint__hand svg {
  display: block !important;
  width: 32px !important;
  height: 32px !important;
}

/* Chuyển động qua lại mượt — dùng alternate thay vì đổi hướng thủ công */
@keyframes shHand {
  from {
    transform: translateX(-8px);
  }
  to {
    transform: translateX(8px);
  }
}

/* Ẩn trên desktop */
@media (min-width: 1025px) {
  .scroll-hint {
    display: none !important;
  }
}

/* =========================================================
   Mouse Scroll Indicator — Desktop only
   ========================================================= */
.fp-scroll-indicator {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 999;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.fp-scroll-indicator.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* Hình con chuột */
.fp-scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  position: relative;
}

/* Bánh xe cuộn — chạy xuống liên tục */
.fp-scroll-wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: fpScrollWheel 1.6s ease-in-out infinite;
}

@keyframes fpScrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
}

/* Chữ Scroll Down */
.fp-scroll-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

/* Ẩn trên mobile/tablet */
@media (max-width: 1024px) {
  .fp-scroll-indicator {
    display: none !important;
  }
}
