import type { Metadata } from "next";
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";
import { Poppins } from "next/font/google";



export const metadata: Metadata = {
  title: 'Silver Screen Cinemas | Your Ultimate Movie Experience',
  description: 'Discover the magic of cinema at Silver Screen Cinemas. Featuring the latest blockbusters, luxury seating, and premium concessions for an unforgettable movie experience.',
  openGraph: {
    "title": "Silver Screen Cinemas | Ultimate Movie Experience",
    "description": "Immersive sound, luxurious seating, and the latest blockbusters await you.",
    "url": "https://www.silverscreencinemas.com",
    "siteName": "Silver Screen Cinemas",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/3d-cinema-seating_23-2151016110.jpg",
        "alt": "Luxurious movie theater interior"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Silver Screen Cinemas | Ultimate Movie Experience",
    "description": "Immersive sound, luxurious seating, and the latest blockbusters await you.",
    "images": [
      "http://img.b2bpic.net/free-photo/3d-cinema-seating_23-2151016110.jpg"
    ]
  },
};

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

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>
  );
}
