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



export const metadata: Metadata = {
  title: 'Hackers Network Gaming Center | Amman\'s Premier Esports Hub',
  description: 'Experience elite gaming and competitive esports at Hackers Network Gaming Center in Amman, Jordan. Open 24/7 with high-tech PCs and a vibrant community.',
  keywords: ["gaming center, esports, Amman, Jordan, Hackers Network, gaming lounge, 24/7 gaming, high-tech PCs, competitive gaming, PC gaming, console gaming, VR gaming"],
  openGraph: {
    "title": "Hackers Network Gaming Center",
    "description": "Amman's Premier Esports Hub - Elite Gaming, 24/7 Access.",
    "url": "https://www.hackersnetwork.jo",
    "siteName": "Hackers Network Gaming Center",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/bright-purple-square-mosaic-textural-background_1258-69250.jpg",
        "alt": "Cyberpunk Gaming Arena"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Hackers Network Gaming Center",
    "description": "Amman's Premier Esports Hub - Elite Gaming, 24/7 Access.",
    "images": [
      "http://img.b2bpic.net/free-photo/bright-purple-square-mosaic-textural-background_1258-69250.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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