import type { Metadata } from "next";
import { Halant } from "next/font/google";
import { Inter } from "next/font/google";
import { Figtree } 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 halant = Halant({
  variable: "--font-halant",
  subsets: ["latin"],
  weight: ["300", "400", "500", "600", "700"],
});

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

const figtree = Figtree({
  variable: "--font-figtree",
  subsets: ["latin"],
});

export const metadata: Metadata = {
  title: "Premium Social Media Agency | Lumina Social",
  description: "Strategic social media solutions to elevate your brand. We drive engagement, growth, and measurable results across all platforms.",
  keywords: "social media agency, social media marketing, content creation, paid social advertising, influencer marketing, social media strategy",
  metadataBase: new URL("https://luminasocial.com"),
  alternates: {
    canonical: "https://luminasocial.com",
  },
  openGraph: {
    title: "Premium Social Media Agency | Lumina Social",
    description: "Transform your brand with data-driven social media strategies and creative excellence.",
    url: "https://luminasocial.com",
    siteName: "Lumina Social",
    type: "website",
    images: [
      {
        url: "http://img.b2bpic.net/free-photo/african-american-guy-studying-analytics-archived-data-project_482257-121442.jpg",
        alt: "Lumina Social - Premium Social Media Agency",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "Premium Social Media Agency | Lumina Social",
    description: "Strategic social media solutions to elevate your brand and drive results.",
    images: [
      "http://img.b2bpic.net/free-photo/african-american-guy-studying-analytics-archived-data-project_482257-121442.jpg",
    ],
  },
  robots: {
    index: true,
    follow: true,
  },
};

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