/**
 * ==================== SCROLL BUTTON ====================
 * Floating scroll button for navigation (like in PWA app)
 */

.scroll-btn {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1.25rem);
}

.scroll-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.scroll-btn:active {
    transform: translateY(0);
}

.scroll-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.3s ease;
}

.scroll-btn.to-bottom svg {
    transform: rotate(180deg);
}

.scroll-btn:focus-visible {
    outline: 0.125rem solid var(--primary);
    outline-offset: 0.25rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-btn {
        right: 1rem;
        bottom: 1rem;
        width: 3rem;
        height: 3rem;
    }
    
    .scroll-btn svg {
        width: 1.25rem;
        height: 1.25rem;
    }
}
