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

export const metadata: Metadata = {
  title: "DripDrop - Premium Luxury Fashion | Own Your Drip",
  description: "Discover curated luxury fashion at DripDrop. Premium streetwear, designer collections, and AI-powered style recommendations. Fast delivery across India. Shop now!",
  keywords: "luxury fashion, premium streetwear, designer clothes, fashion ecommerce, luxury brands, style recommendations, online shopping",
  robots: {
    index: true,
    follow: true,
  },
  openGraph: {
    title: "DripDrop - Own Your Drip | Premium Luxury Fashion",
    description: "Premium luxury fashion platform with curated collections, AI recommendations, and fast delivery.",
    type: "website",
    siteName: "DripDrop",
    images: [
      {
        url: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3B9da18ZzGfu5qtsyVlZQDXliWw/a-cinematic-luxury-fashion-hero-image-fe-1773905419937-c226a180.png",
        alt: "DripDrop premium luxury fashion collection",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "DripDrop - Own Your Drip",
    description: "Luxury fashion reimagined. Premium collections, AI styling, fast delivery.",
    images: [
      "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3B9da18ZzGfu5qtsyVlZQDXliWw/a-cinematic-luxury-fashion-hero-image-fe-1773905419937-c226a180.png",
    ],
  },
};

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