/* Explain: Styles for floating contact buttons with custom animations and responsive behavior. */
/* ============================================================
   أزرار التواصل العائمة (اتصل الآن + واتساب)
   التصميم: شارة نصية ملوّنة + دائرة بيضاء تحمل الأيقونة على اليسار
   ============================================================ */
.custom-float-container {
    position: fixed;
    bottom: 24px;
    left: 16px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 16px;
    direction: ltr;
}

.custom-float-item {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    animation: gentle-shake 3.5s infinite ease-in-out;
    transition: transform 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

.custom-float-item:hover,
.custom-float-item:focus-visible {
    transform: scale(1.06);
    animation: none;
}

/* تأخير بسيط لزر الواتساب لتناوب الحركة */
.wa-delay {
    animation-delay: 1.5s;
}

/* الشارة النصية الجانبية */
.float-label {
    position: relative;
    z-index: 1;
    margin-right: -12px;
    padding: 7px 18px 7px 14px;
    border-radius: 10px 0 0 10px;
    background: var(--float-wa);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(10, 28, 25, 0.2);
}

.label-call {
    background: var(--float-call);
}

.label-wa {
    background: var(--float-wa);
}

/* الدائرة الحاملة للأيقونة */
.float-circle {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #FFFFFF;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(10, 28, 25, 0.25);
}

.circle-call {
    border: 4px solid var(--float-call);
}

.circle-wa {
    border: 4px solid var(--float-wa);
}

/* حركة الاهتزاز الدورية لجذب الانتباه */
@keyframes gentle-shake {
    0%,
    78%,
    100% {
        transform: translateX(0) rotate(0deg);
    }

    81% {
        transform: translateX(-3px) rotate(-3deg);
    }

    84% {
        transform: translateX(3px) rotate(3deg);
    }

    87% {
        transform: translateX(-3px) rotate(-2deg);
    }

    90% {
        transform: translateX(3px) rotate(2deg);
    }

    93% {
        transform: translateX(0) rotate(0deg);
    }
}

@media (max-width: 639px) {
    .custom-float-container {
        bottom: 18px;
        left: 10px;
        gap: 12px;
    }

    .float-label {
        margin-right: -10px;
        padding: 6px 14px 6px 12px;
        font-size: 13px;
    }

    .float-circle {
        width: 52px;
        height: 52px;
    }

    .float-circle svg {
        width: 24px;
        height: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .custom-float-item {
        animation: none;
    }
}