/* ---------------------------------------------------------------------------
   Nav + footer tool badges ("Free" / "Paid")
   Shared by every page. Kept in its own file because tailwind.css is a build
   artifact produced by `npm run build:css` and must not be hand-edited.
   --------------------------------------------------------------------------- */

/* ------------------------------------------------------------------
   Layout hooks
   ------------------------------------------------------------------ */

/* Dropdown + mobile-menu items: text on the left, badge pinned right. */
a.nav-badge-host {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;               /* breathing room so badge never touches text */
    text-align: left;
}

/* Badge inside flex anchors is pushed to the far right. */
a.nav-badge-host .nav-badge {
    margin-left: auto;
    flex-shrink: 0;
}

/* Footer list items: badge hugs the text with comfortable spacing. */
a.nav-badge-host-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

/* ------------------------------------------------------------------
   The badge itself
   ------------------------------------------------------------------ */

.nav-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    padding: 3px 9px 3px 8px;
    border-radius: 999px;
    font-family: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
}

/* Status dot */
.nav-badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.9;
}

/* ------------------------------------------------------------------
   Free  (emerald)
   ------------------------------------------------------------------ */
.nav-badge-free {
    color: #065f46;
    background: #d1fae5;
    box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.22);
}

/* ------------------------------------------------------------------
   Paid  (amber)
   ------------------------------------------------------------------ */
.nav-badge-paid {
    color: #92400e;
    background: #fef3c7;
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.25);
}

/* ------------------------------------------------------------------
   Dark surfaces (footer on #0b0b0f)
   ------------------------------------------------------------------ */
.nav-badge-dark.nav-badge-free,
footer .nav-badge-free {
    color: #34d399;
    background: rgba(52, 211, 153, 0.12);
    box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.35);
}

.nav-badge-dark.nav-badge-paid,
footer .nav-badge-paid {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.13);
    box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.38);
}

/* ------------------------------------------------------------------
   Interaction
   ------------------------------------------------------------------ */
.nav-badge {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a:hover > .nav-badge {
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .nav-badge,
    a:hover > .nav-badge {
        transition: none;
        transform: none;
    }
}
