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:   '#b8975a',
    border:     '#a07a3f',
    glow:       'transparent',
    text:       '#ffffff',
    label:      'Top Match',
    cardBorder: '#b8975a',
    cardBg:     '#ffffff',
  },
  silver: {
    gradient:   '#7a8a9a',
    border:     '#6b7a8a',
    glow:       'transparent',
    text:       '#ffffff',
    label:      'Starkes Match',
    cardBorder: '#7a8a9a',
    cardBg:     '#ffffff',
  },
  bronze: {
    gradient:   '#7a6050',
    border:     '#6a5040',
    glow:       'transparent',
    text:       '#ffffff',
    label:      'Gutes Match',
    cardBorder: '#7a6050',
    cardBg:     '#ffffff',
  },
} as const
