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



export const metadata: Metadata = {
  title: 'Alpha Edge Fitness | Elite Performance for Futures Traders',
  description: 'Unlock your trading edge with Alpha Edge Fitness. We offer tailored fitness and nutrition coaching for futures traders seeking peak physical and mental optimization for consistent profitability.',
  keywords: ["futures trading, trader fitness, trader nutrition, trading performance, mental optimization, physical edge, trading mindset, financial wellness, high-performance coaching"],
  openGraph: {
    "title": "Alpha Edge Fitness | Elite Performance for Futures Traders",
    "description": "Unlock your trading edge with Alpha Edge Fitness. We offer tailored fitness and nutrition coaching for futures traders seeking peak physical and mental optimization for consistent profitability.",
    "url": "https://www.alphaedgefitness.com",
    "siteName": "Alpha Edge Fitness",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/modern-trading-setup-with-monitor-running-forex-trends-going-up_482257-126331.jpg",
        "alt": "Futures trader focused on multiple screens"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Alpha Edge Fitness | Elite Performance for Futures Traders",
    "description": "Unlock your trading edge with Alpha Edge Fitness. We offer tailored fitness and nutrition coaching for futures traders seeking peak physical and mental optimization for consistent profitability.",
    "images": [
      "http://img.b2bpic.net/free-photo/modern-trading-setup-with-monitor-running-forex-trends-going-up_482257-126331.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const publicSans = Public_Sans({
  variable: "--font-public-sans",
  subsets: ["latin"],
});
const inter = Inter({
  variable: "--font-inter",
  subsets: ["latin"],
});

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