/* ================================================
   SCROLL TO TOP BUTTON - Mobile Only
   File: assets/css/components/scroll-to-top.css
   ================================================ */

/* Scroll to Top Button - Hidden by default */
#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(59, 130, 246, 0.6);
    color: #3b82f6;
    cursor: pointer;
    z-index: 999998;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    backdrop-filter: blur(4px);
}

#scrollToTop.visible {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

#scrollToTop:hover {
    border-color: rgba(59, 130, 246, 0.9);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#scrollToTop:active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: transparent;
    transform: scale(0.95);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

#scrollToTop svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: transform 0.3s ease;
}

#scrollToTop:hover svg {
    transform: translateY(-3px);
}

/* Small mobile - Adjust position and disable hover effects */
@media (max-width: 768px) {
    #scrollToTop {
        bottom: 15px;
        right: 15px;
        width: 46px;
        height: 46px;
    }

    #scrollToTop svg {
        width: 22px;
        height: 22px;
    }

    /* Disable hover effects on mobile to prevent stuck state */
    #scrollToTop:hover {
        transform: scale(1) !important;
    }

    #scrollToTop:hover svg {
        transform: none !important;
    }

    #scrollToTop:active {
        transform: scale(0.95) !important;
    }
}
