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

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

export const metadata: Metadata = {
  title: "SocialVibe - Premium Social Media Agency",
  description: "Transform your brand with strategic social media expertise. 150+ clients, 45M+ followers generated. Data-driven content, community management, and measurable ROI.",
  keywords: "social media agency, content creation, social media marketing, brand strategy, Instagram marketing, TikTok marketing, LinkedIn strategy",
  robots: {
    index: true,
    follow: true,
  },
  openGraph: {
    title: "SocialVibe - Premium Social Media Agency",
    description: "Strategic social media excellence for brands that refuse to blend in. Case studies, team, pricing.",
    type: "website",
    siteName: "SocialVibe Agency",
    images: [
      {
        url: "http://img.b2bpic.net/free-photo/company-analyst-studying-business-activity-progress-achieving-strategic-goals_482257-91239.jpg",
        alt: "SocialVibe social media strategy",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "SocialVibe - Premium Social Media Agency",
    description: "Transform your brand with strategic social media expertise.",
    images: ["http://img.b2bpic.net/free-photo/company-analyst-studying-business-activity-progress-achieving-strategic-goals_482257-91239.jpg"],
  },
};

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