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 { Figtree } from "next/font/google";



export const metadata: Metadata = {
  title: 'Bowling Six Strike - Your Ultimate Bowling & Entertainment Destination',
  description: 'Experience modern bowling lanes, arcade games, delicious food, and fun events at Bowling Six Strike in Gioia del Colle. Perfect for families, friends, and parties!',
  keywords: ["bowling, bowling alley, Gioia del Colle, entertainment, family fun, arcade games, party venue, bowling leagues, events"],
  openGraph: {
    "title": "Bowling Six Strike - Your Ultimate Bowling & Entertainment Destination",
    "description": "Experience modern bowling lanes, arcade games, delicious food, and fun events at Bowling Six Strike in Gioia del Colle. Perfect for families, friends, and parties!",
    "url": "https://www.bowlingsixstrike.com",
    "siteName": "Bowling Six Strike",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/young-man-holding-bowling-ball-standing-against-bowling-alleys-with-ultraviolet-light_627829-12194.jpg",
        "alt": "Friends cheering at Bowling Six Strike"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Bowling Six Strike - Your Ultimate Bowling & Entertainment Destination",
    "description": "Experience modern bowling lanes, arcade games, delicious food, and fun events at Bowling Six Strike in Gioia del Colle. Perfect for families, friends, and parties!",
    "images": [
      "http://img.b2bpic.net/free-photo/young-man-holding-bowling-ball-standing-against-bowling-alleys-with-ultraviolet-light_627829-12194.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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