/* أزرار الاتصال والواتساب العائمة */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.floating-btn svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.floating-btn:hover svg {
    transform: scale(1.1);
}

/* زر الاتصال */
.call-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.call-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* زر الواتساب */
.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #20c157 0%, #0f7a6e 100%);
}

/* تأثير النبضة */
.floating-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.floating-btn:hover::before {
    width: 100%;
    height: 100%;
}

/* تسمية الأزرار */
.floating-btn .btn-label {
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-btn:hover .btn-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* تأثير الرسوم المتحركة عند التحميل */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.floating-buttons {
    animation: fadeInUp 0.6s ease-out;
}

.floating-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.floating-btn:nth-child(2) {
    animation-delay: 0.2s;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 12px;
    }
    
    .floating-btn {
        width: 55px;
        height: 55px;
    }
    
    .floating-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .floating-btn .btn-label {
        display: none;
    }
}

/* الأزرار ثابتة ولا تختفي */

/* تأثير النقر */
.floating-btn.clicked {
    transform: scale(0.95);
}

/* إخفاء الأزرار في صفحة الطباعة */
@media print {
    .floating-buttons {
        display: none;
    }
}