import type { Metadata } from "next";
import Link from "next/link";
import "./globals.css";

export const metadata: Metadata = {
  title: "QuickPoll — Stem op alles",
  description: "Maak en deel polls met je vrienden",
};

export default function RootLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <html lang="nl">
      <body className="min-h-screen bg-gray-50 text-gray-900">
        <nav className="bg-white border-b border-gray-200 shadow-sm">
          <div className="max-w-4xl mx-auto px-4 py-4 flex items-center justify-between">
            <Link href="/" className="text-xl font-bold text-purple-600">
              🗳️ QuickPoll
            </Link>
            <div className="flex gap-4 items-center">
              <Link
                href="/"
                className="text-gray-600 hover:text-purple-600 transition-colors"
              >
                Polls
              </Link>
              <Link
                href="/create"
                className="bg-purple-600 text-white px-4 py-2 rounded-lg hover:bg-purple-700 transition-colors text-sm font-medium"
              >
                Nieuwe Poll
              </Link>
            </div>
          </div>
        </nav>
        <main className="max-w-4xl mx-auto px-4 py-8">{children}</main>
        <footer className="text-center text-gray-400 text-sm py-8">
          © 2025 QuickPoll — NOVI Hogeschool Les 5
        </footer>
      </body>
    </html>
  );
}
