/* ==========================================================================
   GLOBAL STICKY WHATSAPP BUTTON
   ========================================================================== */

/* Pulse Animation */
@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-sticky {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 65px;
    height: 65px;
    background-color: #25D366; /* Official WhatsApp Green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: whatsapp-pulse 2s infinite;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
}

.whatsapp-sticky img {
    width: 40px;
    height: 40px;
    fill: #FFFFFF;
    transition: transform 0.3s var(--ease-out);
    border-radius: 50%;
}

.whatsapp-sticky:hover {
    background-color: #128C7E;
    transform: translateY(-5px);
    animation: none; /* Stops pulse when hovered */
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-sticky:hover svg {
    transform: scale(1.1);
}

/* Tooltip Styling */
.whatsapp-tooltip {
    position: absolute;
    right: 85px;
    background: var(--bg-surface);
    color: var(--bg-dark);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px) translateY(2px);
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
    pointer-events: none; /* Prevents tooltip from interfering with clicks */
}

/* Tooltip Arrow */
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    border-width: 5px 0 5px 6px;
    border-style: solid;
    border-color: transparent transparent transparent var(--bg-surface);
}

.whatsapp-sticky:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(2px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .whatsapp-sticky {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-sticky svg {
        width: 30px;
        height: 30px;
    }
    
    .whatsapp-tooltip {
        display: none; /* Hides tooltip on mobile devices to prevent screen overlap */
    }
}