export type Ownership = 'built' | 'hosted'

export type Project = {
  slug: string
  title: string
  domain: string
  url: string
  thumbnailUrl?: string
  readmeUrl?: string
  category: string
  access: 'Public' | 'Login required' | 'Mixed'
  iconUrl?: string
  ownership: Ownership
  status: 'Live'
  summary: string
  details: string
  features: string[]
  scanSource: 'scanned' | 'manual'
  featured: {
    headline: string
    problem: string
    solution: string
    stack: string[]
    highlights: string[]
    nextSteps: string[]
    updateNote: string
  }
}

export const projects: Project[] = [
  {
    slug: 'verse-by-verse',
    title: 'Verse by Verse with Nate',
    domain: 'spotify.com',
    url: 'https://creators.spotify.com/pod/profile/nmemmert/',
    category: 'Podcast',
    access: 'Public',
    ownership: 'hosted',
    status: 'Live',
    summary: 'A verse-by-verse podcast from Nate Emmert focused on Scripture, story, and practical faith application.',
    details:
      'Weekly episodes explore Scripture one verse at a time, mixing theological insight, devotional reflection, and real-life application.',
    features: ['Verse-by-verse teaching', 'Weekly podcast episodes', 'Practical reflection'],
    scanSource: 'manual',
    featured: {
      headline: 'Podcast teaching shaped around verse-by-verse discovery.',
      problem:
        'Bible study and podcast listening often feel disconnected from each other and from everyday life.',
      solution:
        'Verse by Verse with Nate brings Scripture study and podcast conversation together in a format that is easy to follow and apply.',
      stack: ['Podcast hosting', 'Spotify', 'Verse-by-verse teaching'],
      highlights: ['Episode guides', 'Scripture focus', 'Practical application'],
      nextSteps: ['Add episode notes', 'Add guest interviews', 'Link transcripts and study resources'],
      updateNote: 'Edit this content in src/data/projects.ts under the Verse by Verse podcast project.',
    },
  },
]

export function getProjectBySlug(slug: string): Project | undefined {
  return projects.find((project) => project.slug === slug)
}
