import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import { Figtree } from "next/font/google";
import "./globals.css";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
import { getVisualEditScript } from "@/utils/visual-edit-script";

const halant = Halant({
  variable: "--font-halant",
  subsets: ["latin"],
  weight: ["300", "400", "500", "600", "700"],
});

const inter = Inter({
  variable: "--font-inter",
  subsets: ["latin"],
});

const figtree = Figtree({
  variable: "--font-figtree",
  subsets: ["latin"],
});

export const metadata: Metadata = {
  title: "Koyla Kings | Halal Pakistani Indian Chinese BBQ | Mount Druitt NSW",
  description: "Premium halal restaurant in Mount Druitt featuring authentic Pakistani, Indian, Chinese, and BBQ cuisine. Open 3PM-12AM daily. Fire-cooked specialties. Easy parking. Order online or reserve your table.",
  keywords: "halal restaurant, Pakistani food, Indian restaurant, BBQ Mount Druitt, halal biryani, karahi, Chinese halal, Mount Druitt NSW, halal certification, family dining",
  metadataBase: new URL("https://koylakings.com.au"),
  alternates: {
    canonical: "https://koylakings.com.au",
  },
  openGraph: {
    title: "Koyla Kings | Premium Halal Pakistani Indian Chinese BBQ",
    description: "Experience fire-cooked excellence. Authentic Pakistani, Indian, Chinese & BBQ cuisine. 100% Halal Certified. Mount Druitt NSW.",
    url: "https://koylakings.com.au",
    siteName: "Koyla Kings",
    type: "website",
    images: [
      {
        url: "http://img.b2bpic.net/free-photo/top-view-cooked-bell-peppers-with-ground-meat-different-seasonings-dark-grey-surface-meal-dolma-food-vegetables-beef-meat_140725-74543.jpg",
        alt: "Koyla Kings BBQ Karahi - Premium Halal Cuisine",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "Koyla Kings | Halal Pakistani Indian Chinese BBQ",
    description: "Fire-cooked premium halal cuisine in Mount Druitt. Open 3PM-12AM daily.",
    images: ["http://img.b2bpic.net/free-photo/top-view-indian-food-frame-with-copy-space_23-2148747627.jpg"],
  },
  robots: {
    index: true,
    follow: true,
  },
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <ServiceWrapper>
        <body
          className={`${halant.variable} ${inter.variable} ${figtree.variable} antialiased`}
        >
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
          }}
        />
        </body>
      </ServiceWrapper>
    </html>
  );
}