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



export const metadata: Metadata = {
  title: 'JobPilot AI - Global Career Operating System',
  description: 'JobPilot AI is an AI-powered global employment platform designed to manage your entire job search journey, offering real-time application tracking, AI career analytics, and worldwide job opportunities. Find and land your dream job across continents.',
  keywords: ["AI, global jobs, career platform, application tracking system, ATS, job search AI, international jobs, remote jobs, career analytics, visa sponsorship, relocation, jobpilot, job search management"],
  openGraph: {
    "title": "JobPilot AI - Global Career Operating System",
    "description": "JobPilot AI is an AI-powered global employment platform designed to manage your entire job search journey, offering real-time application tracking, AI career analytics, and worldwide job opportunities. Find and land your dream job across continents.",
    "url": "https://www.jobpilot-ai.com",
    "siteName": "JobPilot AI",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/close-up-code-laptop-screen-server-hub-employees-reading-paperwork_482257-122503.jpg",
        "alt": "JobPilot AI global dashboard"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "JobPilot AI - Global Career Operating System",
    "description": "JobPilot AI is an AI-powered global employment platform designed to manage your entire job search journey, offering real-time application tracking, AI career analytics, and worldwide job opportunities. Find and land your dream job across continents.",
    "images": [
      "http://img.b2bpic.net/free-photo/close-up-code-laptop-screen-server-hub-employees-reading-paperwork_482257-122503.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const sourceSans3 = Source_Sans_3({
  variable: "--font-source-sans-3",
  subsets: ["latin"],
});

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