/* SA Button — Sabbir Ahmed */
.sa-btn-wrap {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.sa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(90deg, #1c57ff 0%, #5b21b6 100%);
    color: #ffffff;
    border: 0 solid transparent;
    border-radius: 100px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition-property: transform, background, color, border-color, box-shadow, filter;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.sa-btn:hover {
    transform: translateY(-2px);
}

.sa-btn:active {
    transform: translateY(0);
}

.sa-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.sa-btn--full {
    width: 100%;
}

/* ── Size presets ── */
.sa-btn--xs { padding: 8px 16px;  font-size: 12px; }
.sa-btn--sm { padding: 10px 20px; font-size: 13px; }
.sa-btn--md { padding: 14px 32px; font-size: 15px; }
.sa-btn--lg { padding: 16px 40px; font-size: 16px; }
.sa-btn--xl { padding: 20px 48px; font-size: 18px; }

/* ── Icon ── */
.sa-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.sa-btn-icon svg,
.sa-btn-icon i {
    width: 14px;
    height: 14px;
    font-size: 14px;
    fill: currentColor;
    display: block;
}

/* ── Icon Animations ── */
/* Slide */
.sa-btn--anim-slide.sa-btn--icon-right:hover .sa-btn-icon {
    transform: translateX(4px);
}
.sa-btn--anim-slide.sa-btn--icon-left:hover .sa-btn-icon {
    transform: translateX(-4px);
}

/* Rotate */
.sa-btn--anim-rotate:hover .sa-btn-icon {
    transform: rotate(45deg);
}

/* Bounce */
.sa-btn--anim-bounce:hover .sa-btn-icon {
    animation: sa-btn-bounce 0.6s ease;
}
@keyframes sa-btn-bounce {
    0%, 100% { transform: translateY(0); }
    30%      { transform: translateY(-4px); }
    60%      { transform: translateY(2px); }
}

/* Fade */
.sa-btn--anim-fade .sa-btn-icon {
    opacity: 0;
    width: 0;
    margin: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease, width 0.3s ease, margin 0.3s ease;
}
.sa-btn--anim-fade.sa-btn--icon-left .sa-btn-icon { transform: translateX(6px); }
.sa-btn--anim-fade:hover .sa-btn-icon {
    opacity: 1;
    width: 14px;
    transform: translateX(0);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .sa-btn,
    .sa-btn-icon {
        transition: none !important;
        animation: none !important;
    }
    .sa-btn:hover {
        transform: none !important;
    }
    .sa-btn--anim-fade .sa-btn-icon {
        opacity: 1;
        width: 14px;
        margin: 0;
        transform: none;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .sa-btn { white-space: normal; }
}
