/**
 * Floating WhatsApp Chat Button - Left Side
 * Modern, clean design with pulse animation
 * Position: Fixed left side, always visible
 */

/* Main WhatsApp Button Container */
.whatsapp-float {
    position: fixed;
    left: 25px;
    bottom: 40px;
    z-index: 9999;
    transition: all 0.3s ease;
}

/* The actual button/circle */
.whatsapp-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: whatsapp-pulse 2s infinite;
}

/* WhatsApp Icon */
.whatsapp-button i {
    font-size: 32px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

/* Hover Effect - Scale up */
.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-button:hover i {
    transform: scale(1.1);
}

/* Pulse Animation - Elegant, not aggressive */
@keyframes whatsapp-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    }
}

/* Optional: Ripple effect ring */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.3);
    animation: whatsapp-ripple 2s infinite;
    z-index: -1;
}

@keyframes whatsapp-ripple {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Tooltip (optional - shows "Chat with us") */
.whatsapp-tooltip {
    position: absolute;
    left: 75px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ffffff;
    color: #128C7E;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #ffffff;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    left: 80px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        left: 20px;
        bottom: 30px;
    }

    .whatsapp-button {
        width: 55px;
        height: 55px;
    }

    .whatsapp-button i {
        font-size: 28px;
    }

    /* Hide tooltip on mobile to save space */
    .whatsapp-tooltip {
        display: none;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .whatsapp-float {
        left: 15px;
        bottom: 25px;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
    }

    .whatsapp-button i {
        font-size: 26px;
    }
}

/* Ensure it doesn't overlap with footer on very small screens */
@media (max-width: 375px) {
    .whatsapp-float {
        bottom: 80px;
        /* Move up to avoid footer overlap */
    }
}

/* Active/Click effect */
.whatsapp-button:active {
    transform: scale(0.95);
}

/* Accessibility - Focus state for keyboard navigation */
.whatsapp-button:focus {
    outline: 3px solid #25D366;
    outline-offset: 3px;
}

/* Alternative: Bounce animation (comment pulse and uncomment this if preferred) */
/*
@keyframes whatsapp-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.whatsapp-button {
    animation: whatsapp-bounce 2s infinite ease-in-out;
}
*/

/* Print media - hide button when printing */
@media print {
    .whatsapp-float {
        display: none !important;
    }
}