/**
 * Nobilisens — Unified button system
 * .nb-btn = base pill with arrow circle on the right
 * Variants: --primary (dark green) | --light (white with sage border)
 */

.nb-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 8px 8px 8px 22px;
    min-height: 50px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, gap .2s ease, opacity .2s ease;
}
.nb-btn:disabled,
.nb-btn.is-disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }

.nb-btn__text { padding: 4px 0; }

.nb-btn__circle {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: background .25s ease, color .25s ease, transform .3s ease;
}
.nb-btn__circle svg { width: 16px; height: 16px; }

/* PRIMARY — dark green pill, sage circle */
.nb-btn--primary {
    background: #184022;
    color: #fff;
    border-color: #184022;
}
.nb-btn--primary .nb-btn__circle {
    background: #7CB18A;
    color: #184022;
}
.nb-btn--primary:hover:not(:disabled) {
    background: #7CB18A;
    color: #184022;
    border-color: #7CB18A;
    gap: 18px;
}
.nb-btn--primary:hover:not(:disabled) .nb-btn__circle {
    background: #184022;
    color: #fff;
    transform: translateX(2px) rotate(-3deg);
}

/* LIGHT — white pill with sage-tint border, dark text */
.nb-btn--light {
    background: #fff;
    color: #184022;
    border-color: #D8E4DC;
}
.nb-btn--light .nb-btn__circle {
    background: #EEF3EF;
    color: #184022;
}
.nb-btn--light:hover:not(:disabled) {
    background: #EEF3EF;
    color: #184022;
    border-color: #7CB18A;
    gap: 18px;
}
.nb-btn--light:hover:not(:disabled) .nb-btn__circle {
    background: #184022;
    color: #fff;
    transform: translateX(2px) rotate(-3deg);
}

/* GHOST — text-only with sage hover (for back/secondary actions) */
.nb-btn--ghost {
    background: transparent;
    color: #184022;
    padding: 12px 18px;
    min-height: auto;
    border-color: transparent;
}
.nb-btn--ghost:hover:not(:disabled) {
    color: #7CB18A;
    gap: 18px;
}

/* Sizes */
.nb-btn--sm {
    font-size: 13px;
    padding: 6px 6px 6px 18px;
    min-height: 42px;
}
.nb-btn--sm .nb-btn__circle {
    width: 32px;
    height: 32px;
}
.nb-btn--sm .nb-btn__circle svg {
    width: 14px;
    height: 14px;
}

/* Mobile: tighter pill, keep 44px tap-target minimum, no horizontal overflow */
@media (max-width: 560px) {
    .nb-btn {
        gap: 10px;
        padding: 6px 6px 6px 18px;
        min-height: 46px;
        font-size: 13.5px;
        max-width: 100%;
        white-space: normal;
    }
    .nb-btn__circle {
        width: 34px;
        height: 34px;
    }
    .nb-btn__circle svg {
        width: 14px;
        height: 14px;
    }
    .nb-btn--ghost {
        padding: 10px 14px;
    }
    .nb-btn--sm {
        font-size: 12.5px;
        padding: 5px 5px 5px 14px;
        min-height: 40px;
    }
    .nb-btn--sm .nb-btn__circle {
        width: 28px;
        height: 28px;
    }
    /* Prevent gap-grow on hover from overflowing on narrow screens */
    .nb-btn--primary:hover,
    .nb-btn--light:hover {
        gap: 12px;
    }
}
