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



export const metadata: Metadata = {
  title: 'GV Forex AI | Personal Day Trading Command Centre',
  description: 'Command centre for serious day traders. AI-driven market analysis, risk calculations, and trade logging to sharpen your edge.',
  openGraph: {
    "title": "GV Forex AI",
    "description": "Professional Day Trading Command Centre",
    "siteName": "GV Forex AI",
    "type": "website"
  },
};

const syne = Syne({ variable: "--font-syne", subsets: ["latin"] });
const outfit = Outfit({ variable: "--font-outfit", subsets: ["latin"] });

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