const COLORS: Record<string, string> = {
  // 워크플로우
  PUBLISHED: 'bg-emerald-500/15 text-emerald-400 border-emerald-500/30',
  APPROVED: 'bg-sky-500/15 text-sky-400 border-sky-500/30',
  REVIEW: 'bg-amber-500/15 text-amber-400 border-amber-500/30',
  DRAFT: 'bg-slate-500/15 text-slate-400 border-slate-500/30',
  ARCHIVED: 'bg-slate-600/15 text-slate-500 border-slate-600/30',
  SCHEDULED: 'bg-violet-500/15 text-violet-400 border-violet-500/30',
  // UGC 모더레이션
  PENDING: 'bg-amber-500/15 text-amber-400 border-amber-500/30',
  REJECTED: 'bg-rose-500/15 text-rose-400 border-rose-500/30',
  SPAM: 'bg-rose-500/15 text-rose-400 border-rose-500/30',
  // 일반
  OK: 'bg-emerald-500/15 text-emerald-400 border-emerald-500/30',
  ACTIVE: 'bg-emerald-500/15 text-emerald-400 border-emerald-500/30',
  INACTIVE: 'bg-slate-500/15 text-slate-400 border-slate-500/30',
  FAIL: 'bg-rose-500/15 text-rose-400 border-rose-500/30',
  // 감성
  POSITIVE: 'bg-emerald-500/15 text-emerald-400 border-emerald-500/30',
  NEUTRAL: 'bg-slate-500/15 text-slate-400 border-slate-500/30',
  NEGATIVE: 'bg-rose-500/15 text-rose-400 border-rose-500/30',
}

export default function StatusBadge({ status }: { status?: string }) {
  const key = (status || '').toUpperCase()
  const cls = COLORS[key] || COLORS.DRAFT
  return (
    <span className={`inline-block px-2 py-0.5 rounded text-xs font-medium border ${cls}`}>
      {status || '-'}
    </span>
  )
}
