import Link from "next/link";
import { type Lang } from "@/lib/config";

export default function NotFound({ params }: { params?: { lang?: Lang } }) {
  const lang = params?.lang || "en";
  const isAr = lang === "ar";

  return (
    <div className="flex min-h-screen flex-col items-center justify-center px-4">
      <div className="text-center space-y-6">
        <h1 className="text-6xl font-bold text-brand-ink">404</h1>
        <h2 className="text-2xl font-semibold text-neutral-700">
          {isAr ? "الصفحة غير موجودة" : "Page Not Found"}
        </h2>
        <p className="text-neutral-600">
          {isAr
            ? "عذراً، الصفحة التي تبحث عنها غير موجودة."
            : "Sorry, the page you are looking for does not exist."}
        </p>
        <Link
          href={`/${lang}`}
          className="inline-block rounded-lg bg-brand-green px-6 py-3 text-white font-semibold hover:bg-brand-green/90 transition-colors"
        >
          {isAr ? "العودة للرئيسية" : "Go Home"}
        </Link>
      </div>
    </div>
  );
}
