/**
 * WhatsApp Floating Button Styles
 *
 * @package Zargar_Saffron
 * @since 1.0.0
 */

/* WhatsApp Float Container */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    animation: fadeInUp 0.5s ease-out;
}

/* WhatsApp Button */
.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4),
                0 8px 24px rgba(37, 211, 102, 0.2);
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.whatsapp-button svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Hover Effects */
.whatsapp-button:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5),
                0 12px 32px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:active {
    transform: translateY(-2px) scale(1.05);
}

/* Pulse Animation */
.whatsapp-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: #25D366;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: whatsappPulse 2s infinite;
    z-index: -1;
}

@keyframes whatsappPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 15px;
    }

    .whatsapp-button {
        width: 55px;
        height: 55px;
    }

    .whatsapp-button svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 20px;
        left: 15px;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
    }

    .whatsapp-button svg {
        width: 26px;
        height: 26px;
    }
}

/* Tooltip (Optional) */
.whatsapp-button::after {
    content: 'Chat with us';
    position: absolute;
    left: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.whatsapp-button:hover::after {
    opacity: 1;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .whatsapp-button::after {
        background: rgba(255, 255, 255, 0.9);
        color: #1a1a1a;
    }
}
