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

const poppins = Poppins({
  variable: "--font-poppins",  subsets: ["latin"],
  weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
});

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

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

export const metadata: Metadata = {
  title: "Moonlight Café - Artisan Coffee & Fine Dining",  description: "Experience the warm, elegant, and welcoming atmosphere of Moonlight Café. Indulge in signature dishes, specialty coffees, and unforgettable moments.",  keywords: "coffee, cafe, restaurant, dining, gourmet, specialty coffee, fine dining, pastry, brunch, dinner, artisan, cozy, elegant, premium, welcoming, Moonlight Cafe, reservations, menu, reviews, gallery, about us, contact",  openGraph: {
    title: "Moonlight Café - Artisan Coffee & Fine Dining",    description: "Experience the warm, elegant, and welcoming atmosphere of Moonlight Café. Indulge in signature dishes, specialty coffees, and unforgettable moments.",    url: "/",    siteName: "Moonlight Café",    images: [{
      url: "http://img.b2bpic.net/free-photo/top-view-round-delicious-pie-with-strawberries-waffles-cup-tea-light-blue-surface_140725-66681.jpg",      alt: "Cozy Moonlight Café Interior"
    }],
    type: "website"
  },
  twitter: {
    card: "summary_large_image",    title: "Moonlight Café - Artisan Coffee & Fine Dining",    description: "Experience the warm, elegant, and welcoming atmosphere of Moonlight Café. Indulge in signature dishes, specialty coffees, and unforgettable moments.",    images: ["http://img.b2bpic.net/free-photo/top-view-round-delicious-pie-with-strawberries-waffles-cup-tea-light-blue-surface_140725-66681.jpg"]
  },
  robots: {
    index: true,
    follow: true
  }
};

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