/* ================================================================
   SCROLL HINT — horizontal navigation indicator
   «  ‹‹‹  ⬤  ›››  »
   Fixed at bottom-center. Subtle, non-interactive.
   ================================================================ */

#scrollHint {
    position: fixed;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 96;               /* below header(99) and banner(97) */
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: none;      /* never captures clicks */
    /* Fade in after page settles */
    opacity: 0;
    transition: opacity 0.7s ease;
}

#scrollHint.sh-visible {
    opacity: 1;
}

/* ── Centre dot ── */
.sh-dot {
    font-size: 0.85rem;
    color: var(--main-color, red);
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.9;
    /* subtle pulse on the dot itself */
    animation: sh-dot-pulse 3s ease-in-out infinite;
}

@keyframes sh-dot-pulse {
    0%, 100% { transform: scale(1);   opacity: 0.9; }
    50%       { transform: scale(1.4); opacity: 1;   }
}

/* ── Arrow containers ── */
.sh-arrows {
    display: flex;
    align-items: center;
    gap: 0px;
    transition: opacity 0.45s ease;
}

/* "Gone" = arrow group is hidden at the edge (no content that direction) */
.sh-arrows.sh-gone {
    opacity: 0 !important;
}

/* ── Individual arrow characters ── */
.sh-arrows .sh-arrow {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 800;
    /* --text-color is #fff in dark mode, #000 in light mode → auto-adapts */
    color: var(--text-color, #fff);
    opacity: 0.22;
    line-height: 1;
    letter-spacing: 1px;
    /* remove any lingering animation by default */
    animation: none;
}

/* ═══════════════════════════════════════════════════════
   ANIMATION KEYFRAMES
   ═══════════════════════════════════════════════════════ */

/* Wave: single arrow brightens then fades — gives a "ripple" feel */
@keyframes sh-wave {
    0%,  55%, 100% { opacity: 0.15; }
    25%             { opacity: 1;    }
}

/* Blink: gentle slow blink for "there's more this way" hint */
@keyframes sh-blink {
    0%,  100% { opacity: 0.65; }
    50%        { opacity: 0.18; }
}

/* ═══════════════════════════════════════════════════════
   PULSING STATE  — used at the leftmost / rightmost edge
   Arrows ripple outward from centre, giving "grow 1→3" feel
   ═══════════════════════════════════════════════════════ */

.sh-arrows.sh-pulsing .sh-arrow {
    animation: sh-wave 1.7s ease-in-out infinite;
}

/* Right arrows ›  ›  › : ripple left → right (inner first) */
.sh-right.sh-pulsing .sh-arrow:nth-child(1) { animation-delay: 0.00s; }
.sh-right.sh-pulsing .sh-arrow:nth-child(2) { animation-delay: 0.22s; }
.sh-right.sh-pulsing .sh-arrow:nth-child(3) { animation-delay: 0.44s; }

/* Left arrows ‹  ‹  ‹ : ripple right → left (innermost = nth-child(3) first) */
.sh-left.sh-pulsing .sh-arrow:nth-child(3) { animation-delay: 0.00s; }
.sh-left.sh-pulsing .sh-arrow:nth-child(2) { animation-delay: 0.22s; }
.sh-left.sh-pulsing .sh-arrow:nth-child(1) { animation-delay: 0.44s; }

/* ═══════════════════════════════════════════════════════
   BLINKING STATE — used in left/right half to hint direction
   ═══════════════════════════════════════════════════════ */

.sh-arrows.sh-blinking .sh-arrow {
    animation: sh-blink 1.3s ease-in-out infinite;
    opacity: 0.6; /* overridden by animation but set as fallback */
}

/* Stagger blink slightly for a nicer feel */
.sh-blinking .sh-arrow:nth-child(1) { animation-delay: 0.00s; }
.sh-blinking .sh-arrow:nth-child(2) { animation-delay: 0.10s; }
.sh-blinking .sh-arrow:nth-child(3) { animation-delay: 0.20s; }

/* ═══════════════════════════════════════════════════════
   IDLE STATE — both groups visible but not animated
   ═══════════════════════════════════════════════════════ */

.sh-arrows.sh-idle .sh-arrow {
    opacity: 0.32;
    animation: none;
}

/* ── Mobile: push up slightly so it doesn't clash with deck dots ── */
@media (max-width: 600px) {
    #scrollHint {
        bottom: 0.85rem;
        gap: 0.7rem;
    }

    .sh-arrows .sh-arrow {
        font-size: 1.15rem;
    }

    .sh-dot {
        font-size: 0.7rem;
    }
}
