import MainConverter from '@/components/converter/MainConverter';
import { ThemeToggle } from '@/components/ui/ThemeToggle';

export default function Home() {
  return (
    <div className="min-h-screen bg-background">
      {/* Header with theme toggle */}
      <div className="border-b">
        <div className="container mx-auto px-4 py-4 flex justify-between items-center">
          <div className="text-xl font-bold">Units UI</div>
          <ThemeToggle />
        </div>
      </div>

      <main className="container mx-auto px-4 py-8">
        <header className="text-center mb-12">
          <h1 className="text-5xl font-bold mb-4 bg-gradient-to-r from-blue-600 to-indigo-600 dark:from-blue-400 dark:to-indigo-400 bg-clip-text text-transparent">
            Unit Converter
          </h1>
          <p className="text-lg text-muted-foreground">
            Convert between 187 units across 23 measurement categories
          </p>
          <p className="text-sm text-muted-foreground mt-2">
            Press <kbd className="px-2 py-1 bg-muted rounded text-xs">/</kbd> to search units
          </p>
        </header>

        <MainConverter />
      </main>
    </div>
  );
}
