"use client";

import Link from "next/link";
import { useTranslation } from "react-i18next";

import { Button } from "@/components/ui/button";
import SEO from "@/components/shared/SEO";
import LayoutWrapper from "@/components/layout/LayoutWrapper";

export default function NotFound() {
  const { t } = useTranslation("notFound");

  return (
    <LayoutWrapper>
      <SEO
        title={t("headTitle", "Page Not Found")}
        description={t(
          "seo.description",
          "The page you are looking for could not be found"
        )}
        type="website"
        noindex={true}
      />

      <main className="min-h-[70vh] flex items-center justify-center px-4">
        <div className="text-center">
          <p className="text-sm font-semibold text-secondColor">{t("code")}</p>
          <h1 className="mt-2 text-3xl font-bold tracking-tight text-gray-900 dark:text-gray-100 sm:text-4xl">
            {t("title")}
          </h1>
          <p className="mt-2 text-base text-gray-600 dark:text-gray-400">
            {t("subtitle")}
          </p>

          <div className="flex items-center justify-center gap-3 mt-6">
            <Button asChild variant="default">
              <Link href="/">{t("actions.goHome")}</Link>
            </Button>
          </div>
        </div>
      </main>
    </LayoutWrapper>
  );
}
