import Link from 'next/link';
import { SpoonLogo } from '@/components/brand/logo';

export default function Footer() {
  return (
    <footer className='border-border/40 bg-muted/30 border-t'>
      <div className='container mx-auto px-4 py-12'>
        <div className='grid gap-8 md:grid-cols-4'>
          <div className='md:col-span-2'>
            <SpoonLogo className='mb-4' />
            <p className='text-muted-foreground max-w-md text-sm'>
              Spoon is a self-hostable fork maintenance dashboard for teams who
              want to customize upstream projects without drifting away from
              security fixes, product updates, and merge history.
            </p>
          </div>

          <div>
            <h4 className='mb-4 text-sm font-semibold'>Product</h4>
            <ul className='space-y-2 text-sm'>
              <li>
                <Link
                  href='/dashboard'
                  className='text-muted-foreground hover:text-foreground transition-colors'
                >
                  Dashboard
                </Link>
              </li>
              <li>
                <Link
                  href='/spoons'
                  className='text-muted-foreground hover:text-foreground transition-colors'
                >
                  Spoons
                </Link>
              </li>
              <li>
                <Link
                  href='/updates'
                  className='text-muted-foreground hover:text-foreground transition-colors'
                >
                  Updates
                </Link>
              </li>
            </ul>
          </div>

          <div>
            <h4 className='mb-4 text-sm font-semibold'>Workspace</h4>
            <ul className='space-y-2 text-sm'>
              <li>
                <Link
                  href='/agents'
                  className='text-muted-foreground hover:text-foreground transition-colors'
                >
                  Agents
                </Link>
              </li>
              <li>
                <Link
                  href='/profile'
                  className='text-muted-foreground hover:text-foreground transition-colors'
                >
                  Profile
                </Link>
              </li>
              <li>
                <Link
                  href='https://git.gbrown.org/gib/spoon'
                  target='_blank'
                  rel='noopener noreferrer'
                  className='text-muted-foreground hover:text-foreground transition-colors'
                >
                  Source
                </Link>
              </li>
            </ul>
          </div>
        </div>

        <div className='border-border/40 text-muted-foreground mt-12 border-t pt-8 text-center text-sm'>
          <p>
            Self-hostable fork maintenance for teams that stay close to
            upstream.
          </p>
        </div>
      </div>
    </footer>
  );
}
