import { cva, type VariantProps } from 'class-variance-authority';

export const badgeVariants = cva(
  [
    'inline-flex items-center rounded-full font-medium transition-colors',
  ],
  {
    variants: {
      variant: {
        default: 'bg-secondary text-secondary-foreground',
        primary: 'bg-brand-100 text-brand-700 dark:bg-brand-900/30 dark:text-brand-300',
        success: 'bg-success-light text-success-foreground',
        warning: 'bg-warning-light text-warning-foreground',
        error: 'bg-error-light text-error-foreground',
        outline: 'border border-border text-foreground-muted',
      },
      size: {
        sm: 'px-2 py-0.5 text-xs',
        md: 'px-2.5 py-0.5 text-xs',
        lg: 'px-3 py-1 text-sm',
      },
    },
    defaultVariants: {
      variant: 'default',
      size: 'md',
    },
  }
);

export type BadgeVariants = VariantProps<typeof badgeVariants>;
