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



export const metadata: Metadata = {
  title: 'Elegance Hub | Discover Your Unique Style',
  description: 'Explore Elegance Hub for the latest fashion trends and timeless pieces. Shop high-quality apparel that celebrates individuality and elegance.',
  keywords: ["fashion, clothing, apparel, style, elegance, trends, designer, shop, women's fashion, men's fashion, accessories, sustainable fashion"],
  openGraph: {
    "title": "Elegance Hub | Discover Your Unique Style",
    "description": "Explore Elegance Hub for the latest fashion trends and timeless pieces. Shop high-quality apparel that celebrates individuality and elegance.",
    "url": "https://www.elegancehub.com",
    "siteName": "Elegance Hub",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/luxury-rich-woman-dressed-elegant-stylish-blue-suit-walking-city-sunny-summer-day-holding-purse_285396-7894.jpg",
        "alt": "Stylish woman in elegant fashion attire"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Elegance Hub | Discover Your Unique Style",
    "description": "Explore Elegance Hub for the latest fashion trends and timeless pieces. Shop high-quality apparel that celebrates individuality and elegance.",
    "images": [
      "http://img.b2bpic.net/free-photo/luxury-rich-woman-dressed-elegant-stylish-blue-suit-walking-city-sunny-summer-day-holding-purse_285396-7894.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const roboto = Roboto({
  variable: "--font-roboto",
  subsets: ["latin"],
  weight: ["100", "300", "400", "500", "700", "900"],
});

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