/* ==========================================================================
   Scroll navigation (S59 / E8 — refonte complète)
   Pastilles glassmorphism alignées identité Olwhyde
   Utilisé par : birth_results.html, solar_return_results.html, celebrity_detail.html
   Comportement : js/scroll_nav.js
   ========================================================================== */

.olwhyde-scroll-nav {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    pointer-events: none;
}

.olwhyde-scroll-nav__btn {
    pointer-events: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #6A3D90;
    color: #6A3D90;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 8px rgba(106, 61, 144, 0.18);
    transition: opacity 0.25s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    transform: translate3d(0, 8px, 0);
    visibility: hidden;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.olwhyde-scroll-nav__btn.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    visibility: visible;
}

.olwhyde-scroll-nav__btn:hover {
    background: #6A3D90;
    color: #fff;
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 4px 14px rgba(106, 61, 144, 0.35);
}

.olwhyde-scroll-nav__btn:focus-visible {
    outline: 2px solid #A9CE02;
    outline-offset: 3px;
}

.olwhyde-scroll-nav__btn:active {
    transform: translate3d(0, 0, 0);
}

.olwhyde-scroll-nav__btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 768px) {
    .olwhyde-scroll-nav {
        right: 14px;
        bottom: 18px;
        gap: 8px;
    }
    .olwhyde-scroll-nav__btn {
        width: 40px;
        height: 40px;
    }
    .olwhyde-scroll-nav__btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .olwhyde-scroll-nav__btn {
        transition: opacity 0.15s linear, visibility 0s;
        transform: none !important;
    }
    .olwhyde-scroll-nav__btn:hover {
        transform: none !important;
    }
}
