/**
 * Scroll hint arrow — a small circular indicator that nudges the user
 * towards scrolling a horizontally scrollable container.
 *
 * Usage:
 *   Place the hint as a sibling of the scrolling element, inside a
 *   `position: relative` parent. Pair with js/scroll-hint.js:
 *     initScrollHint('.my-scroll-container', '.scroll-hint');
 *
 *   <div class="wrapper"><!-- position: relative -->
 *     <div class="scroll-area">...wide content...</div>
 *     <div class="scroll-hint scroll-hint-right">
 *       <i class="fa-solid fa-chevron-right"></i>
 *     </div>
 *   </div>
 *
 * The hint is `display: none` by default. Toggle visibility from the
 * consuming page's CSS in the viewport ranges where scrolling is expected.
 */

.scroll-hint {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    color: rgba(0, 0, 0, 0.65);
    font-size: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.4s ease;
}

.scroll-hint.is-hidden {
    opacity: 0;
}

.scroll-hint-right {
    right: 24px;
    animation: scroll-hint-bounce-right 1.2s ease-in-out infinite;
}

.scroll-hint-left {
    left: 24px;
    animation: scroll-hint-bounce-left 1.2s ease-in-out infinite;
}

@keyframes scroll-hint-bounce-right {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50%      { transform: translateY(-50%) translateX(5px); }
}

@keyframes scroll-hint-bounce-left {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50%      { transform: translateY(-50%) translateX(-5px); }
}
