import type { Metadata } from "next";
import { Libre_Baskerville, Inter } from "next/font/google";
import "./globals.css";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
import { getVisualEditScript } from "@/utils/visual-edit-script";

const libreBaskerville = Libre_Baskerville({
  variable: "--font-libre-baskerville",
  subsets: ["latin"],
  weight: ["400", "700"],
});

const interFont = Inter({
  variable: "--font-inter",
  subsets: ["latin"],
});

export const metadata: Metadata = {
  title: "Catfish Cartel | Professional Catfishing for Your Business",
  description: "Welcome to the cartel. We make the magic, you take the credit. Expert branding agency transforming businesses into irresistible brands since 2026.",
  keywords: "branding agency, brand design, professional catfishing, brand transformation, luxury branding, exclusive membership",
  robots: {
    index: true,
    follow: true,
  },
  openGraph: {
    title: "Catfish Cartel | Your Brand, But Hotter",
    description: "Professional Catfishing for Your Business. We make the magic, you take the credit.",
    type: "website",
    siteName: "Catfish Cartel",
    images: [
      {
        url: "http://img.b2bpic.net/free-vector/leaves-with-neon-frame-realistic_23-2148437702.jpg",
        alt: "Catfish Cartel - Dark jungle luxury branding agency",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "Catfish Cartel | Your Brand, But Hotter",
    description: "Professional branding for businesses ready to dominate.",
    images: ["http://img.b2bpic.net/free-vector/leaves-with-neon-frame-realistic_23-2148437702.jpg"],
  },
};

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