export type ScoreTier = 'gold' | 'silver' | 'bronze'

export function getScoreTier(score: number): ScoreTier {
  if (score >= 90) return 'gold'
  if (score >= 80) return 'silver'
  return 'bronze'
}

export const SCORE_THEME = {
  gold: {
    gradient:    'linear-gradient(135deg,#f8e642 0%,#d4920e 100%)',
    border:      '#c9900c',
    glow:        'rgba(212,146,14,0.35)',
    text:        '#7a4f00',
    label:       'Top Match',
    cardBorder:  '#fbbf24',
    cardBg:      'linear-gradient(160deg,#fffbeb,#fef3c7)',
  },
  silver: {
    gradient:    'linear-gradient(135deg,#f1f5f9 0%,#cbd5e1 100%)',
    border:      '#94a3b8',
    glow:        'rgba(148,163,184,0.30)',
    text:        '#334155',
    label:       'Starkes Match',
    cardBorder:  '#cbd5e1',
    cardBg:      'linear-gradient(160deg,#f8fafc,#f1f5f9)',
  },
  bronze: {
    gradient:    'linear-gradient(135deg,#fde8c8 0%,#d4956a 100%)',
    border:      '#c07a46',
    glow:        'rgba(192,122,70,0.25)',
    text:        '#7c3d0c',
    label:       'Gutes Match',
    cardBorder:  '#f5d0a9',
    cardBg:      'linear-gradient(160deg,#fdf6f0,#fef3e8)',
  },
} as const
