/*
  Theme Name: Flow Control - Main
  Version: 1.0.0
  Template: Divi
  Author: Huskii
  Author URI: https://www.huskii.co.uk
  Text Domain: flow-control---main
  License: GNU General Public License v2 or later
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================================================
   SCROLL TO TOP BUTTON
   ============================================================================ */

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #2ea3f2;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
    z-index: 9999;
    outline: none;
}

.scroll-to-top:hover {
    background-color: #1e88d4;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
}

.scroll-to-top:active {
    transform: translateY(0) scale(0.95);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    pointer-events: none;
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* Ensure button is accessible and visible on focus */
.scroll-to-top:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}
