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



export const metadata: Metadata = {
  title: 'Apex Motorsports F1 Race Shows',
  description: 'Experience the thrill of F1 like never before with Apex Motorsports. Live 4K broadcasts, expert commentary, exclusive content, and 3D animated car looks. Get tickets and merchandise!',
  keywords: ["F1, Formula 1, race shows, live broadcast, motorsport, racing, animated, 3D, car race, grand prix, tickets, merchandise"],
  openGraph: {
    "title": "Apex Motorsports F1 Race Shows",
    "description": "Dive into the world of Formula 1 with live broadcasts, expert analysis, and exclusive behind-the-scenes access. Feel every turn, every overtake, every victory.",
    "url": "https://www.apexmotorsports.com",
    "siteName": "Apex Motorsports",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/modern-car-driving-city_23-2151674313.jpg",
        "alt": "Dynamic F1 car racing on a futuristic track"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Apex Motorsports F1 Race Shows",
    "description": "Experience the thrill of F1 like never before with Apex Motorsports. Live 4K broadcasts, expert commentary, exclusive content, and 3D animated car looks. Get tickets and merchandise!",
    "images": [
      "http://img.b2bpic.net/free-photo/modern-car-driving-city_23-2151674313.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const interTight = Inter_Tight({
  variable: "--font-inter-tight",
  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={`${interTight.variable} antialiased`}>
          <Tag />
          {children}
          <script
              dangerouslySetInnerHTML={{
                  __html: `${getVisualEditScript()}`
              }}
          />
        </body>
      </ServiceWrapper>
    </html>
  );
}
