export interface Archetype {
  id: string
  image: string
  title: string
  name: string
  line: string
  description: string
  traits: string[]
  forgedBy: string
  promptModifier: string
  stats: {
    presence: number
    will: number
    force: number
    focus: number
  }
}

export const archetypes: Archetype[] = [
  {
    id: 'forged',
    image: '/images/primepfp.jpg',
    title: 'THE FORGED',
    name: 'Forged',
    line: "I didn't heal. I hardened.",
    description: 'Pressure became structure. Heat became clarity. Nothing wasted.',
    traits: ['Dense', 'Deliberate', 'Unbreakable'],
    forgedBy: 'Pressure that refused to let you break',
    promptModifier: 'Mood: Calm brutality, earned confidence, unshakable presence. Pose: Rigid posture, direct gaze, squared shoulders. Background: industrial noir, metal walls with silver accents.',
    stats: { presence: 10, will: 30, force: 20, focus: 10 }
  },
  {
    id: 'silent',
    image: '/images/silent.jpg',
    title: 'THE SILENT',
    name: 'Silent',
    line: 'No explanation. Just presence.',
    description: 'The quiet that ends arguments before they start.',
    traits: ['Minimal', 'Focused', 'Undeniable'],
    forgedBy: 'Holding power without announcing it',
    promptModifier: 'Mood: Minimal emotion, controlled power, cold focus. Pose: Relaxed stance, eyes half-closed, hands at sides. Background: minimalist noir, concrete walls with single cool light source.',
    stats: { presence: 20, will: 20, force: 0, focus: 30 }
  },
  {
    id: 'storm',
    image: '/images/jokeprime.jpg',
    title: 'THE STORM',
    name: 'Storm',
    line: 'Pressure turns into weather.',
    description: 'The air shifts when you enter. No noise. Just weight.',
    traits: ['Charged', 'Relentless', 'Controlled'],
    forgedBy: 'Carrying pressure until it obeyed',
    promptModifier: 'Mood: Volatile energy, tension in the air, charged atmosphere. Pose: Leaning forward, intense eyes, clenched fists. Background: storm noir, dark clouds with crimson electrical accents.',
    stats: { presence: 30, will: 10, force: 30, focus: 0 }
  },
  {
    id: 'noir-king',
    image: '/images/ronin.jpg',
    title: 'THE NOIR KING',
    name: 'Noir King',
    line: 'Control the room without speaking.',
    description: 'Ownership without noise. Authority without theater.',
    traits: ['Commanding', 'Measured', 'Absolute'],
    forgedBy: 'Winning without asking for the crown',
    promptModifier: 'Mood: Elegant menace, tailored darkness, polished threat. Pose: Chin up, slight smirk, one hand in pocket. Background: luxury noir, city skyline at night with silver reflections.',
    stats: { presence: 40, will: 10, force: 10, focus: 10 }
  },
  {
    id: 'calculator',
    image: '/images/docprime.jpg',
    title: 'THE CALCULATOR',
    name: 'Calculator',
    line: 'Cold focus. Zero noise.',
    description: 'No reaction. Just precision. The next move is already done.',
    traits: ['Calculated', 'Precise', 'Patient'],
    forgedBy: 'Seeing ten moves before the first',
    promptModifier: 'Mood: Clinical, precise, pressure under control. Pose: Head tilted, analytical gaze, fingers steepled. Background: laboratory noir, sterile environment with blue data screen glow.',
    stats: { presence: 0, will: 10, force: 0, focus: 50 }
  },
  {
    id: 'wraith',
    image: '/images/goop.jpg',
    title: 'THE WRAITH',
    name: 'Wraith',
    line: 'You feel it before you see it.',
    description: 'Presence arrives first. Shape arrives second.',
    traits: ['Ethereal', 'Measured', 'Inevitable'],
    forgedBy: 'Becoming felt before being seen',
    promptModifier: 'Mood: Detached, untouchable, ghostlike stillness. Pose: Slightly blurred edges, translucent quality, floating posture. Background: ethereal noir, black mist with white edge lighting.',
    stats: { presence: 30, will: 0, force: 10, focus: 30 }
  }
]

export function getArchetypeById(id: string): Archetype | undefined {
  return archetypes.find(a => a.id === id)
}

export function getArchetypePromptModifier(id: string): string {
  const archetype = getArchetypeById(id)
  return archetype?.promptModifier || ''
}
