/* WhatsApp Widget Styles */
.whatsapp-widget {
    position: fixed;
    right: 20px;
    bottom: 160px; /* Increased spacing between widgets */
    z-index: 9999;
    transition: all 0.3s ease;
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

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

.whatsapp-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

/* Pulse animation */
.whatsapp-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: #25D366;
    animation: whatsapp-pulse 2s infinite;
    z-index: -1;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    70% {
        transform: scale(1.4);
        opacity: 0;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Tooltip/Number Display */
.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: #1f2937;
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
    border: 8px solid transparent;
    border-left-color: #1f2937;
}

.whatsapp-widget:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .whatsapp-widget {
        right: 15px;
        bottom: 120px; /* Reduced spacing for better mobile layout */
    }
    
    .whatsapp-icon {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-icon svg {
        width: 26px;
        height: 26px;
    }
    
    .whatsapp-tooltip {
        font-size: 12px;
        padding: 8px 12px;
        right: 60px;
    }
}

@media (max-width: 480px) {
    .whatsapp-widget {
        right: 10px;
        bottom: 100px; /* Further reduced for small screens */
    }
    
    .whatsapp-icon {
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .whatsapp-tooltip {
        font-size: 11px;
        padding: 6px 10px;
        right: 55px;
    }
}

@media (max-width: 360px) {
    .whatsapp-widget {
        right: 8px;
        bottom: 80px; /* Even tighter spacing for very small screens */
    }
    
    .whatsapp-icon {
        width: 40px;
        height: 40px;
    }
    
    .whatsapp-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .whatsapp-tooltip {
        background: #374151;
        border: 1px solid #4b5563;
    }
    
    .whatsapp-tooltip::after {
        border-left-color: #374151;
    }
}
