/* ========================================
   SCROLL TO TOP BUTTON STYLES
   ======================================== */

#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    outline: none;
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scroll-to-top:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

#scroll-to-top:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

#scroll-to-top:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

#scroll-to-top i {
    transition: transform 0.3s ease;
}

#scroll-to-top:hover i {
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    #scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    #scroll-to-top {
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    #scroll-to-top:hover {
        transform: none;
    }
    
    #scroll-to-top:hover i {
        transform: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    #scroll-to-top {
        background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
        box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
    }
    
    #scroll-to-top:hover {
        background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
        box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    }
}
