import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import { Roboto } 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 roboto = Roboto({
  variable: "--font-roboto",
  subsets: ["latin"],
  weight: ["100", "300", "400", "500", "700", "900"],
});

export const metadata: Metadata = {
  title: "Donacio - Luxury Restaurant with Live Music & Exceptional Dining",
  description: "Experience culinary excellence at Donacio. Fine dining with live music, exceptional service, and gourmet cuisine. Reserve your table today.",
  keywords: "luxury restaurant, fine dining, live music restaurant, gourmet cuisine, reservations, private dining",
  metadataBase: new URL("https://donacio.com"),
  alternates: {
    canonical: "https://donacio.com",
  },
  openGraph: {
    title: "Donacio - Luxury Restaurant Experience",
    description: "Discover exquisite cuisine, live music, and warm hospitality at Donacio. Reserve your unforgettable dining experience.",
    url: "https://donacio.com",
    siteName: "Donacio",
    type: "website",
  },
  twitter: {
    card: "summary_large_image",
    title: "Donacio - Luxury Dining Experience",
    description: "Fine dining with live music, exceptional service, and gourmet cuisine.",
  },
  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} ${roboto.variable} antialiased`}
        >
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
          }}
        />
        </body>
      </ServiceWrapper>
    </html>
  );
}