/* ============================================
   WHATSAPP INTEGRATION STYLES
   ============================================ */

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    cursor: pointer;
    text-decoration: none;
    border: none;
    animation: pulse-whatsapp 2s infinite;
}

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

.whatsapp-float i {
    color: white;
    font-size: 28px;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover i {
    transform: scale(1.1);
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* WhatsApp Contact Items */
.whatsapp-contact-item {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.whatsapp-contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.whatsapp-contact-item:hover::before {
    left: 100%;
}

.whatsapp-contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    color: white;
    text-decoration: none;
}

.whatsapp-contact-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.whatsapp-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.whatsapp-icon i {
    font-size: 24px;
    color: white;
}

.whatsapp-details h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.whatsapp-details p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

/* Hero Section WhatsApp Button */
.whatsapp-hero-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    position: relative;
    overflow: hidden;
}

.whatsapp-hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.whatsapp-hero-btn:hover::before {
    left: 100%;
}

.whatsapp-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

.whatsapp-hero-btn i {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

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

/* Ensure back-to-top button doesn't conflict with WhatsApp */
.back-to-top {
    bottom: 30px !important;
    right: 30px !important;
    z-index: 999 !important;
}

/* WhatsApp Chat Widget */
.whatsapp-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-height: 400px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.whatsapp-chat-widget.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.whatsapp-chat-header {
    background: #075E54;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.whatsapp-chat-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.whatsapp-avatar {
    width: 40px;
    height: 40px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-avatar i {
    font-size: 20px;
    color: white;
}

.whatsapp-agent-info h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.whatsapp-agent-info p {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

.whatsapp-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.whatsapp-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.whatsapp-chat-body {
    padding: 1.5rem;
    max-height: 250px;
    overflow-y: auto;
}

.whatsapp-quick-messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.whatsapp-quick-msg {
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 0.75rem 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #333;
}

.whatsapp-quick-msg:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 90px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
    
    .whatsapp-chat-widget {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
        bottom: 90px;
    }
    
    .whatsapp-contact-item {
        padding: 1.25rem;
        margin: 0.75rem 0;
    }
    
    .whatsapp-icon {
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-icon i {
        font-size: 20px;
    }
    
    .whatsapp-details h4 {
        font-size: 1.1rem;
    }
    
    .whatsapp-hero-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-contact-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .whatsapp-hero-btn {
        width: 100%;
        justify-content: center;
        margin: 0.5rem 0;
    }
}
