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 { Space_Grotesk, Noto_Sans_JP, Noto_Sans_KR, JetBrains_Mono, Anton } from "next/font/google";



export const metadata: Metadata = {
  title: 'WORLDWAVE — Vancouver\'s International Night Series',
  description: 'WORLDWAVE: An international night ritual in Vancouver, bringing together Japanese, Korean, and Canadian cultures through unique events. Experience unforgettable nights with diverse communities and exceptional music.',
  keywords: ["WORLDWAVE, Vancouver events, international party, Japan Korea Canada, nightlife, club, event series, cultural exchange, Aura Nightclub, Cold Tea Lounge"],
  openGraph: {
    "title": "WORLDWAVE — Vancouver's International Night Series",
    "description": "WORLDWAVE: An international night ritual in Vancouver, bringing together Japanese, Korean, and Canadian cultures through unique events. Experience unforgettable nights with diverse communities and exceptional music.",
    "url": "https://worldwave.events",
    "siteName": "WORLDWAVE",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/most-colorful-day-our-lives_329181-8393.jpg",
        "alt": "Worldwave event crowd"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "WORLDWAVE — Vancouver's International Night Series",
    "description": "WORLDWAVE: An international night ritual in Vancouver, bringing together Japanese, Korean, and Canadian cultures through unique events. Experience unforgettable nights with diverse communities and exceptional music.",
    "images": [
      "http://img.b2bpic.net/free-photo/most-colorful-day-our-lives_329181-8393.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const spaceGrotesk = Space_Grotesk({ variable: "--font-space-grotesk", subsets: ["latin"], weight: ["400", "700"] });
const notoSansJP = Noto_Sans_JP({ variable: "--font-noto-sans-jp", subsets: ["latin"], weight: ["400", "700"] });
const notoSansKR = Noto_Sans_KR({ variable: "--font-noto-sans-kr", subsets: ["latin"], weight: ["400", "700"] });
const jetBrainsMono = JetBrains_Mono({ variable: "--font-jetbrains-mono", subsets: ["latin"], weight: ["400"] });
const anton = Anton({ variable: "--font-anton", subsets: ["latin"], weight: ["400"] });

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