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



export const metadata: Metadata = {
  title: 'Yt Mugi | Free AI-Powered YouTube Optimization Suite',
  description: 'Discover untapped niches, optimize retention, and dominate YouTube search with Yt Mugi\'s free AI-powered strategy engine for content creators and marketers.',
  keywords: ["YouTube, AI, content creation, SEO, video optimization, audience retention, niche discovery, channel growth, Yt Mugi"],
  openGraph: {
    "title": "Yt Mugi | AI-Powered YouTube Optimization Suite",
    "description": "Discover untapped niches, optimize retention, and dominate YouTube search with Yt Mugi's AI-powered strategy engine for content creators and marketers.",
    "url": "https://www.ytmugi.com",
    "siteName": "Yt Mugi",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/woman-uses-ai-chatbot-system-computer-guide-her-through-tasks_482257-118915.jpg",
        "alt": "Yt Mugi AI Dashboard"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Yt Mugi | AI-Powered YouTube Optimization Suite",
    "description": "Discover untapped niches, optimize retention, and dominate YouTube search with Yt Mugi's AI-powered strategy engine for content creators and marketers.",
    "images": [
      "http://img.b2bpic.net/free-photo/woman-uses-ai-chatbot-system-computer-guide-her-through-tasks_482257-118915.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const interTight = Inter_Tight({
  variable: "--font-inter-tight",
  subsets: ["latin"],
  weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
});

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