/*
 * Header additions for the creator studio: the earnings pill that sits in the
 * site navigation. Loaded on every page because the site header is rendered by
 * the prebuilt Vue app.
 *
 * Colours come from the active theme tokens (--primary), so the pill follows
 * every theme variant and both light and dark mode automatically.
 */

.creator-pill {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.4rem;
    height: 2.25rem;
    padding: 0 0.85rem;
    border-radius: 9999px;
    border: 1px solid hsl(var(--primary) / 0.25);
    background: hsl(var(--primary) / 0.12);
    color: hsl(var(--primary));
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.creator-pill:hover {
    background: hsl(var(--primary) / 0.2);
    border-color: hsl(var(--primary) / 0.45);
}

.creator-pill:focus-visible {
    outline: 2px solid hsl(var(--ring));
    outline-offset: 2px;
}

.creator-pill__star {
    width: 1.1rem;
    height: 1.1rem;
}

.creator-pill__value {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .creator-pill {
        height: 2rem;
        padding: 0 0.6rem;
        font-size: 0.8125rem;
    }

    .creator-pill__star {
        width: 1rem;
        height: 1rem;
    }
}

/* Profile dropdown entry injected next to the other menu items. */
.creator-menu-item {
    color: hsl(var(--primary));
    font-weight: 600;
}

.creator-menu-item svg {
    color: currentColor;
}
