/**
 * WhatsApp Floating Button Styles
 * Add this to your project's CSS folder
 * File: public/css/whatsapp-button.css or assets/css/whatsapp-button.css
 */

/* Main Container */
.whatsapp-float-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

/* WhatsApp Button */
.whatsapp-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    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 cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    text-decoration: none;
    border: none;
}

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

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

/* WhatsApp Icon */
.whatsapp-button i {
    color: white;
    font-size: 28px;
    animation: whatsapp-pulse 2s infinite;
}

/* Pulse Animation */
@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid white;
    animation: badge-bounce 2s infinite;
}

@keyframes badge-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: 75px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #333;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.whatsapp-button:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.5);
    animation: ripple-animation 2s infinite;
    pointer-events: none;
}

@keyframes ripple-animation {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-float-container {
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-button {
        width: 55px;
        height: 55px;
    }

    .whatsapp-button i {
        font-size: 24px;
    }

    .whatsapp-tooltip {
        display: none; /* Hide tooltip on mobile */
    }

    .notification-badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .whatsapp-float-container {
        bottom: 25px;
        right: 25px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .whatsapp-float-container {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
    }

    .whatsapp-button i {
        font-size: 22px;
    }
}

/* Alternative Style: With Text */
.whatsapp-button-with-text {
    width: auto;
    padding: 15px 25px;
    border-radius: 50px;
    gap: 10px;
}

.whatsapp-button-with-text .button-text {
    color: white;
    font-weight: 600;
    font-size: 15px;
    margin-left: 8px;
}

/* Alternative Style: Minimal White */
.whatsapp-button-minimal {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.whatsapp-button-minimal i {
    color: #25D366;
}

.whatsapp-button-minimal:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}

/* Alternative Style: Square */
.whatsapp-button-square {
    border-radius: 15px;
}

/* Accessibility */
.whatsapp-button:focus {
    outline: 3px solid #25D366;
    outline-offset: 3px;
}

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

/* Print: Hide button when printing */
@media print {
    .whatsapp-float-container {
        display: none !important;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .whatsapp-tooltip {
        background: #1f2937;
        color: white;
    }
    
    .whatsapp-tooltip::after {
        border-left-color: #1f2937;
    }
}