/* assets/css/frontend.css */

/* استایل‌های پایه آیکون شناور */
.bsf-floating-icon {
    position: fixed;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
}

.bsf-floating-icon img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* افکت هاور */
.bsf-floating-icon:hover img {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* انیمیشن نمایش */
.bsf-floating-icon {
    animation: bsf-fadeInUp 0.5s ease forwards;
}

@keyframes bsf-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* انیمیشن پالس */
.bsf-floating-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.3);
    animation: bsf-pulse 2s infinite;
    z-index: -1;
}

@keyframes bsf-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .bsf-floating-icon {
        transform: scale(0.85);
    }
}

@media (max-width: 480px) {
    .bsf-floating-icon {
        transform: scale(0.7);
    }
}