import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import { Public_Sans } 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 publicSans = Public_Sans({
  variable: "--font-public-sans",
  subsets: ["latin"],
});

export const metadata: Metadata = {
  title: "Mensa Gjyshi - Authentic Albanian Restaurant in Tirana | 4.8★",
  description: "Discover authentic Albanian cuisine at Mensa Gjyshi in Tirana. Traditional recipes, friendly service, and warm ambiance. Open daily. Make a reservation today.",
  keywords: "Albanian restaurant, Tirana, traditional cuisine, authentic food, dining, local restaurant, reservation",
  metadataBase: new URL("https://mensagjyshi.al"),
  alternates: {
    canonical: "https://mensagjyshi.al",
  },
  openGraph: {
    title: "Mensa Gjyshi - Traditional Albanian Restaurant",
    description: "Experience authentic Albanian cuisine in a warm, welcoming atmosphere. 4.8★ rating from 27 reviews.",
    url: "https://mensagjyshi.al",
    siteName: "Mensa Gjyshi",
    type: "website",
    images: [
      {
        url: "http://img.b2bpic.net/free-photo/stone-walled-restaurant-top-lighting_140725-9731.jpg",
        alt: "Mensa Gjyshi Restaurant",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "Mensa Gjyshi - Authentic Albanian Food",
    description: "Traditional Albanian dishes in Tirana's heart. 4.8★ rating.",
    images: ["http://img.b2bpic.net/free-photo/stone-walled-restaurant-top-lighting_140725-9731.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} ${publicSans.variable} antialiased`}
        >
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
          }}
        />
        </body>
      </ServiceWrapper>
    </html>
  );
}