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



export const metadata: Metadata = {
  title: 'Ruoooo\'s Birthday Surprise',
  description: 'An interactive, romantic birthday surprise journey for the cutest girl, Ruoooo.',
  openGraph: {
    "title": "Happy Birthday Ruoooo! 💕",
    "description": "A very special birthday surprise for Ruoooo.",
    "siteName": "Ruoooo's Birthday"
  },
};

const fredoka = Fredoka_One({ variable: "--font-fredoka", subsets: ["latin"], weight: "400" }); const nunito = Nunito({ variable: "--font-nunito", subsets: ["latin"] });

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