import { Button } from "@/components/ui/button";
import { ShoppingCart } from "lucide-react";
import { useTranslations } from "next-intl";
import { useRouter } from "next/navigation";

export default function EmptyOrders() {
  const t=useTranslations();
  const router=useRouter();
  return (
    <div className="flex min-h-[60vh] items-center justify-center px-4">
    <div className="w-full max-w-md rounded-3xl bg-gradient-to-br from-gray-50 to-white p-12 text-center shadow-xl border border-gray-100">
        <div className="mx-auto mb-6 flex h-20 w-20 items-center justify-center rounded-full bg-blue-100">
          <ShoppingCart className="h-12 w-12 text-gray-700" />
        </div>

        <h2 className="mb-2 text-2xl font-semibold text-gray-900">
          {t("orders_empty")}
        </h2>

        <p className="mb-8 text-base text-gray-600 leading-relaxed">
          {t("orders_empty_message")}
        </p>

        <Button onClick={()=>router.push("/")}  className="w-full cursor-pointer rounded-2xl bg-gradient-to-r from-gray-900 to-gray-800 hover:from-gray-800 hover:to-gray-700 px-8 py-6 text-base font-bold text-white shadow-lg hover:shadow-xl transition-all duration-300 active:scale-95"
        >  {t("start_shopping")}
        </Button>
      </div>
    </div>
  );
}