/**
 * WhatsApp Business Widget Styles
 * Floating button and notification banner styling
 */

/* WhatsApp Widget Container */
#whatsapp-widget {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 9999;
    font-family: 'Poppins', 'Arial', sans-serif;
}

/* Notification Banner */
.whatsapp-notification {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    max-width: 280px;
    animation: slideInUp 0.5s ease-out;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 9998;
}

.whatsapp-notification.hide {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    visibility: hidden;
}

.notification-content {
    margin: 0;
}

.notification-content p {
    margin: 5px 0;
    font-size: 13px;
    line-height: 1.4;
}

.notification-content p:first-child {
    font-size: 14px;
    margin-top: 0;
}

.notification-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #25d366;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.notification-close:hover {
    background: #25d366;
    color: white;
    transform: scale(1.1);
}

/* Floating Button Container */
.whatsapp-button-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 9999;
}

/* Tooltip */
.whatsapp-tooltip {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    margin-right: 10px;
}

.whatsapp-button-container:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Main WhatsApp Button */
.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 3px solid white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Hover Effect */
.whatsapp-button:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-button:active {
    transform: scale(0.95);
}

/* Pulse Animation */
.whatsapp-button.pulse {
    animation: pulse 2s infinite;
}

.whatsapp-button.pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 3px solid rgba(37, 211, 102, 0.4);
    animation: pulseBorder 2s infinite;
}

/* Clicked Animation */
.whatsapp-button.clicked {
    animation: clickPulse 0.6s ease-out;
}

/* Icon */
.whatsapp-button i {
    position: relative;
    z-index: 2;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 40px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    }
}

@keyframes pulseBorder {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@keyframes clickPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-notification {
        bottom: 90px;
        right: 10px;
        max-width: 250px;
        padding: 12px 16px;
        font-size: 12px;
    }
    
    .notification-content p {
        font-size: 12px;
    }
    
    .whatsapp-button-container {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
        font-size: 25px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .whatsapp-notification {
        bottom: 85px;
        right: 5px;
        max-width: 220px;
        padding: 10px 12px;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 22px;
        border-width: 2px;
    }
    
    .notification-close {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }
}

/* Accessibility */
.whatsapp-button:focus {
    outline: 2px solid rgba(37, 211, 102, 0.5);
    outline-offset: 2px;
}

.whatsapp-button:focus:not(:focus-visible) {
    outline: none;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .whatsapp-tooltip {
        background: rgba(255, 255, 255, 0.95);
        color: #25d366;
    }
}

/* Print Styles */
@media print {
    #whatsapp-widget {
        display: none;
    }
}
