/**
 * MBK Elementor Addons - Frontend Global Styles
 */

/* =========================================
   Back into Top Button
   ========================================= */
.mbk-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #00B29D 0%, #008B7A 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 178, 157, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
    padding: 10px;
}

/* Visible State (Managed by JS) */
.mbk-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover Effect */
.mbk-back-to-top:hover {
    background: linear-gradient(135deg, #35AE9C 0%, #00B29D 100%);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 178, 157, 0.6);
}

/* Ripple Animation Elements (Optional) */
.mbk-back-to-top::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: all 0.4s ease;
}

.mbk-back-to-top:hover::after {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0;
    animation: ripple 1.5s infinite;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

/* Icon Animation */
.mbk-back-to-top svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    stroke-width: 2px;
}

.mbk-back-to-top:hover svg {
    transform: translateY(-3px);
}
