export type AtlasRegion = {
  slug: string;
  name: string;
  summary: string;
  icon?: string;
  photoUrl?: string;
  photoAlt?: string;
};

export const regions: AtlasRegion[] = [
  {
    slug: "knee",
    name: "Knee",
    summary:
      "The largest synovial joint in the body, bearing the full line of body weight through flexion and extension. Central to ligamentous, meniscal, and degenerative pathology in sport and daily life.",
    icon: "knee",
    photoUrl: "/photos/rehab/spangdahlem-rehab-3.jpg",
    photoAlt: "Knee rehabilitation session",
  },
  {
    slug: "hip",
    name: "Hip",
    summary:
      "A deep ball-and-socket articulation that transmits loads from the axial skeleton to the lower limb. Home to a spectrum of disease from dysplasia in infancy through osteoarthritis in later life.",
    icon: "hip",
    photoUrl: "/photos/anatomy/xray-hip-fracture.jpg",
    photoAlt: "Radiograph of a hip fracture",
  },
  {
    slug: "shoulder",
    name: "Shoulder",
    summary:
      "The most mobile joint in the human body, built on soft-tissue stability. Rotator cuff, capsular, and instability conditions dominate its pathology.",
    icon: "shoulder",
    photoUrl: "/photos/exam-prep/surgical-instruments.jpg",
    photoAlt: "Surgical instruments laid out for a shoulder procedure",
  },
  {
    slug: "spine",
    name: "Spine",
    summary:
      "A thirty-three vertebra column protecting the neuraxis and supporting posture. Degenerative disc disease, stenosis, deformity, and myelopathy define its clinical workload.",
    icon: "spine",
    photoUrl: "/photos/anatomy/skeleton-upper-body.jpg",
    photoAlt: "Anatomical model of the upper body skeleton and spine",
  },
  {
    slug: "foot-ankle",
    name: "Foot & Ankle",
    summary:
      "Twenty-six bones and thirty-three joints per foot articulate with the tibia and fibula at the ankle, absorbing impact and propelling gait. A busy zone for overuse, tendon, and forefoot disease.",
    icon: "foot",
    photoUrl: "/photos/anatomy/human-skeleton-front.jpg",
    photoAlt: "Full human skeleton showing the lower limb and foot",
  },
  {
    slug: "hand-wrist",
    name: "Hand & Wrist",
    summary:
      "A complex of twenty-seven bones and intricate tendons enabling fine motor control. Compressive neuropathies and tenosynovitis lead the presentation list.",
    icon: "hand",
    photoUrl: "/photos/anatomy/xray-hand.jpg",
    photoAlt: "Radiograph of a human hand",
  },
  {
    slug: "elbow",
    name: "Elbow",
    summary:
      "A hinge joint linking the humerus with the radius and ulna, vulnerable to overuse tendinopathies and bursal inflammation through repetitive work and sport.",
    icon: "elbow",
    photoUrl: "/photos/rehab/physical-therapy.jpg",
    photoAlt: "Upper-limb physical therapy session",
  },
];

export function getRegionBySlug(slug: string): AtlasRegion | undefined {
  return regions.find((r) => r.slug === slug);
}
