/**
 * دکمه شناور آزمون‌های استخدامی
 */

.um-exams-fab {
    position: fixed;
    z-index: 2147483000;
    left: 16px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0b6bcb 0%, #0854a0 100%);
    color: #fff !important;
    text-decoration: none !important;
    font-family: 'peyda', Tahoma, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 8px 24px rgba(11, 107, 203, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
}

.um-exams-fab:hover,
.um-exams-fab:focus {
    color: #fff !important;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 28px rgba(11, 107, 203, 0.45);
    outline: none;
}

.um-exams-fab__icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
}

.um-exams-fab__icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.um-exams-fab__text {
    white-space: nowrap;
}

.um-exams-fab__pulse {
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid rgba(11, 107, 203, 0.45);
    pointer-events: none;
    animation: um-exams-fab-pulse 1.8s ease-out infinite;
}

.um-exams-fab--animate {
    animation: um-exams-fab-bounce 2.4s ease-in-out infinite;
}

@keyframes um-exams-fab-pulse {
    0% {
        transform: scale(1);
        opacity: 0.75;
    }
    70% {
        transform: scale(1.18);
        opacity: 0;
    }
    100% {
        transform: scale(1.18);
        opacity: 0;
    }
}

@keyframes um-exams-fab-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* موبایل: بزرگ‌تر و قابل‌لمس‌تر */
@media (max-width: 768px) {
    .um-exams-fab {
        left: 12px;
        right: auto;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        padding: 13px 18px;
        font-size: 15px;
        box-shadow: 0 10px 28px rgba(11, 107, 203, 0.42);
    }
}

@media (prefers-reduced-motion: reduce) {
    .um-exams-fab--animate,
    .um-exams-fab__pulse {
        animation: none !important;
    }
}
