/* ============================================================
   SCROLL TO TOP BUTTON — action-bar.css
   Floating button, bottom-right corner.
   ============================================================ */

.bcm-scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bcm-primary);
    box-shadow: var(--bcm-shadow);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    /* hidden by default; JS toggles the `hidden` attribute */
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        filter var(--bcm-transition);
    pointer-events: none;
}

/* Once JS removes the `hidden` attribute the button becomes visible */
.bcm-scroll-top:not([hidden]) {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.bcm-scroll-top:hover {
    filter: drop-shadow(0 0 var(--bcm-glow-intensity) var(--bcm-primary-glow));
}

.bcm-scroll-top:active {
    transform: scale(1.08);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 480px) {
    .bcm-scroll-top { right: 12px; bottom: 12px; }
}
