/* WhatsApp Floating Widget */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    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;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-button svg {
    width: 35px;
    height: 35px;
    fill: #fff;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
}

/* WhatsApp Popup */
.whatsapp-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    max-height: calc(100vh - 150px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: none;
    animation: slideUp 0.4s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.whatsapp-popup.show {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.whatsapp-popup-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    padding: 20px;
    border-radius: 20px 20px 0 0;
    position: relative;
    flex-shrink: 0;
}

.whatsapp-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.whatsapp-popup-close:hover {
    background: rgba(255, 255, 255, 0.5);
}

.whatsapp-popup-header h3 {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 700;
}

.whatsapp-popup-header p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 14px;
}

.whatsapp-popup-body {
    padding: 25px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for popup body */
.whatsapp-popup-body::-webkit-scrollbar {
    width: 6px;
}

.whatsapp-popup-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.whatsapp-popup-body::-webkit-scrollbar-thumb {
    background: #25D366;
    border-radius: 10px;
}

.whatsapp-popup-body::-webkit-scrollbar-thumb:hover {
    background: #128C7E;
}

.whatsapp-message {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.whatsapp-benefits {
    margin-bottom: 20px;
}

.whatsapp-benefits h4 {
    font-size: 16px;
    font-weight: 700;
    color: #25D366;
    margin-bottom: 12px;
}

.whatsapp-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.whatsapp-benefits li {
    padding: 8px 0;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
}

.whatsapp-benefits li:before {
    content: "✓";
    color: #25D366;
    font-weight: bold;
    font-size: 18px;
    margin-right: 10px;
}

.whatsapp-cta-section {
    background: linear-gradient(135deg, #FF6B6B 0%, #54D3C2 100%);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 15px;
}

.whatsapp-cta-section p {
    color: #fff;
    font-size: 13px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.app-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.app-badges img {
    height: 35px;
    cursor: pointer;
    transition: transform 0.3s;
}

.app-badges img:hover {
    transform: scale(1.05);
}

.whatsapp-join-message {
    text-align: center;
    font-size: 13px;
    color: #666;
    margin: 12px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    font-weight: 600;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% {
        background: #f9f9f9;
    }
    50% {
        background: #e8f5e9;
    }
}

.whatsapp-join-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    color: #fff;
    text-decoration: none;
}

.whatsapp-join-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    margin-right: 8px;
    vertical-align: middle;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .whatsapp-popup {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 90px;
        max-height: calc(100vh - 140px);
        left: 20px;
        width: auto;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
}

/* Tablet and small screens */
@media (max-width: 992px) and (min-width: 769px) {
    .whatsapp-popup {
        width: 340px;
        max-height: calc(100vh - 130px);
    }
}

/* Badge notification dot */
.whatsapp-button::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #FF6B6B;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}
