﻿/* متغیرها و استایل دکمه شناور */
.fab-consultation {
    position: fixed;
    bottom: 24px;
    right: 20px; /* برای صفحات فارسی سمت چپ ارگونومی بهتری داره */
    width: 60px;
    height: 60px;
    border-radius: 50px;
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.4);
    z-index: 1040; /* زیر لایه مودال (1050) تا موقع باز شدن بره زیر */
    display: none; /* پیش‌فرض برای دسکتاپ مخفی */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
}

    /* آیکون دکمه */
    .fab-consultation .fab-icon {
        font-size: 28px;
        line-height: 1;
        transition: transform 0.3s ease;
    }

    /* متن کوچک (تولتیپ شناور) - اختیاری */
    .fab-consultation .fab-tooltip {
        display: none;
    }

/* افکت موج ضربانی (Radar Pulse) */
.fab-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.6);
    z-index: -1;
    animation: fab-ripple 2s infinite ease-out;
}

@keyframes fab-ripple {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* تعاملات لمسی کاربر (Micro-interactions) */
.fab-consultation:hover {
    box-shadow: 0 10px 28px rgba(13, 110, 253, 0.55);
    transform: translateY(-2px);
    color: #fff;
}

    .fab-consultation:hover .fab-icon {
        transform: scale(1.12) rotate(-8deg); /* چرخش ظریف و جذاب آیکون */
    }

.fab-consultation:active {
    transform: scale(0.92);
}

/* فقط فعال در ویوپورت‌های موبایل و تبلت کوچک */
@media (max-width: 768px) {
    .fab-consultation {
        display: flex;
    }
}

/* در صورت تمایل اگر خواستی در سایزهای خیلی کوچک دکمه کمی جمع‌وجورتر باشه */
@media (max-width: 480px) {
    .fab-consultation {
        bottom: 18px;
        left: 16px;
        width: 56px;
        height: 56px;
    }

        .fab-consultation .fab-icon {
            font-size: 25px;
        }
}
