/* WhatsApp Glass Design - Version 3.2 */
/* تم التحديث لمنع الفتح التلقائي وإخفاء القوائم تمامًا */

/* ====== إخفاء القوائم تمامًا بقوة ====== */
.whatsapp-quick-actions {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: fixed;
    bottom: 100px;
    left: 30px;
    z-index: 9998;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none !important;
}

/* إخفاء حاوية القوائم أيضًا */
.whatsapp-actions-container {
    display: none !important;
}

/* حالة الظهور فقط عند النقر */
.whatsapp-float.active .whatsapp-quick-actions,
.whatsapp-float.active .whatsapp-actions-container {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.whatsapp-float.active .whatsapp-quick-actions {
    transform: translateY(0) scale(1) !important;
}

/* ====== زر الواتساب العائم الأساسي ====== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    animation: floatBounce 3s ease-in-out infinite;
    cursor: pointer;
}

.whatsapp-container {
    background: rgba(37, 211, 102, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3px;
    box-shadow: 
        0 4px 25px rgba(37, 211, 102, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-container:hover {
    background: rgba(37, 211, 102, 0.18);
    box-shadow: 
        0 8px 35px rgba(37, 211, 102, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #128C7E;
    padding: 12px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    cursor: pointer;
    user-select: none;
}

.whatsapp-btn:hover {
    background: rgba(255, 255, 255, 0.98);
    color: #0d6e5a;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.whatsapp-btn i {
    font-size: 22px;
    color: #25D366;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.whatsapp-container:hover .whatsapp-btn i {
    transform: scale(1.1);
}

.whatsapp-text {
    color: #128C7E;
    font-weight: 600;
}

/* ====== حاوية الخيارات السريعة (مخفية افتراضياً) ====== */
.whatsapp-actions-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 18px;
    padding: 15px;
    flex-direction: column;
    gap: 10px;
    box-shadow: 
        0 15px 50px rgba(0, 0, 0, 0.15),
        0 5px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    min-width: 180px;
}

.whatsapp-action-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #333;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3);
}

.whatsapp-action-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #25D366;
    transform: translateX(4px) translateY(-1px);
    color: #000;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.whatsapp-action-btn i {
    color: #25D366;
    font-size: 16px;
    width: 28px;
    height: 28px;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-action-btn:hover i {
    background: rgba(37, 211, 102, 0.2);
    transform: scale(1.1);
}

.whatsapp-action-btn span {
    flex: 1;
    text-align: right;
    font-weight: 600;
}

/* ====== أنيميشن ====== */
@keyframes floatBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ====== تصميم متجاوب للجوال ====== */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
    }
    
    .whatsapp-container {
        background: rgba(37, 211, 102, 0.15);
        padding: 2px;
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
    }
    
    .whatsapp-btn {
        padding: 10px 18px;
        font-size: 14px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .whatsapp-quick-actions {
        bottom: 85px;
        left: 20px;
        transform: translateY(15px) scale(0.9);
    }
    
    .whatsapp-actions-container {
        padding: 12px;
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.98);
        min-width: 160px;
    }
    
    .whatsapp-action-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .whatsapp-action-btn i {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        left: 15px;
    }
    
    .whatsapp-btn {
        padding: 8px 15px;
        font-size: 13px;
        gap: 8px;
    }
    
    .whatsapp-btn i {
        font-size: 20px;
    }
    
    .whatsapp-quick-actions {
        bottom: 75px;
        left: 15px;
        transform: translateY(10px) scale(0.85);
    }
    
    .whatsapp-actions-container {
        padding: 10px;
        gap: 8px;
        min-width: 140px;
    }
    
    .whatsapp-action-btn {
        padding: 9px 12px;
        font-size: 12px;
    }
    
    .whatsapp-action-btn span {
        font-size: 11px;
    }
}

/* ====== إضافة سهم صغير يشير للخيارات ====== */
.whatsapp-actions-container::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 40px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
    .whatsapp-actions-container::before {
        left: 30px;
    }
}

@media (max-width: 480px) {
    .whatsapp-actions-container::before {
        left: 25px;
    }
}

/* ====== تأثير النقر على زر واتساب ====== */
.whatsapp-float.active .whatsapp-container {
    background: rgba(37, 211, 102, 0.25);
    box-shadow: 
        0 8px 40px rgba(37, 211, 102, 0.3),
        0 3px 10px rgba(0, 0, 0, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.whatsapp-float.active .whatsapp-btn {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.02);
}

/* ====== إصلاح نهائي لمنع أي عرض ====== */
body .whatsapp-quick-actions,
body .whatsapp-actions-container,
.whatsapp-quick-actions,
.whatsapp-actions-container {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body .whatsapp-float.active .whatsapp-quick-actions,
body .whatsapp-float.active .whatsapp-actions-container,
.whatsapp-float.active .whatsapp-quick-actions,
.whatsapp-float.active .whatsapp-actions-container {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}