/**
 * Floating Buttons Styles
 * Scroll to Top & WhatsApp
 * 
 * @package ForemostMotion
 * @since 1.0.0
 */

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-accent);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
}

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

.scroll-to-top:hover {
    background: var(--color-primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(227, 30, 36, 0.4);
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   WhatsApp Floating Button
   ============================================ */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-base);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-button svg {
    width: 32px;
    height: 32px;
}

@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-button {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-button svg {
        width: 28px;
        height: 28px;
    }
}

