/* =========================================================
   WhatsApp Floating Button
   يُستخدم لإضافة زر واتساب ثابت في أسفل يسار الشاشة
   ========================================================= */

.whatsapp-float {
    position: fixed;
    bottom: 22px;
    left: 22px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 14px;
    background: #25D366;
    color: #ffffff;
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35), 0 4px 10px rgba(0, 77, 90, 0.15);
    text-decoration: none;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    background: #1ebe5b;
    color: #ffffff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45), 0 6px 14px rgba(0, 77, 90, 0.2);
    outline: none;
}

.whatsapp-float__icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #ffffff;
}

.whatsapp-float__label {
    white-space: nowrap;
}

.whatsapp-float__pulse {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #25D366;
    opacity: 0.55;
    z-index: -1;
    animation: whatsapp-pulse 2.2s ease-out infinite;
}

@keyframes whatsapp-pulse {
    0%   { transform: scale(1);   opacity: 0.55; }
    70%  { transform: scale(1.6); opacity: 0;    }
    100% { transform: scale(1.6); opacity: 0;    }
}

/* استجابة على الشاشات الصغيرة */
@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 16px;
        left: 16px;
        padding: 12px;
        border-radius: 50%;
    }
    .whatsapp-float__label {
        display: none;
    }
    .whatsapp-float__icon {
        width: 30px;
        height: 30px;
    }
}

/* احترام تفضيل المستخدم لتقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float__pulse { animation: none; }
    .whatsapp-float { transition: none; }
}