/* WhatsApp Floating Button Styles */

/* Main container */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 25px;
    z-index: 1000;
}

.whatsapp-float.compact {
    bottom: 28px;
    right: 25px;
}

/* WhatsApp button */
.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    color: white;
}

.whatsapp-button:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    text-decoration: none;
    color: white;
}

.whatsapp-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
}

/* WhatsApp icon */
.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.whatsapp-button:hover .whatsapp-icon {
    transform: scale(1.1);
}

/* WhatsApp text (for expanded state) */
.whatsapp-text {
    display: none;
    font-size: 14px;
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
}

.whatsapp-float.expanded .whatsapp-button {
    width: auto;
    padding: 15px 20px;
    border-radius: 30px;
}

.whatsapp-float.expanded .whatsapp-text {
    display: inline;
}

/* Pulse animation rings */
.whatsapp-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(37, 211, 102, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s ease-out infinite;
    pointer-events: none;
}

.whatsapp-pulse-2 {
    animation-delay: 1s;
    border-color: rgba(37, 211, 102, 0.4);
}

/* Tooltip */
.whatsapp-tooltip {
    position: fixed;
    bottom: 90px;
    right: 25px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.whatsapp-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

.whatsapp-tooltip-content strong {
    color: #25d366;
    font-size: 16px;
    margin-bottom: 4px;
    display: block;
}

.whatsapp-tooltip-content p {
    margin: 4px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.whatsapp-tooltip-content small {
    color: #666;
    font-size: 12px;
}

/* Animations */
@keyframes pulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.6);
    }
}

/* Hidden state for footer */
.whatsapp-float.hidden-for-footer {
    opacity: 0;
    pointer-events: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 16px;
    }

    .whatsapp-float.compact {
        bottom: 20px;
        right: 16px;
    }
    
    .whatsapp-button {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-pulse {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-tooltip {
        bottom: 80px;
        right: 20px;
        max-width: 220px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .whatsapp-button {
        border: 2px solid #25d366;
    }
    
    .whatsapp-tooltip {
        border: 2px solid #25d366;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none;
    }
    
    .whatsapp-pulse {
        animation: none;
        display: none;
    }
    
    .whatsapp-button {
        transition: none;
    }
}