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



export const metadata: Metadata = {
  title: 'BeautyBloom - Unveil Your Natural Radiance',
  description: 'Discover BeautyBloom\'s luxurious, natural skincare products designed to nourish, protect, and rejuvenate for a visibly healthier and luminous glow. Embrace pure beauty.',
  keywords: ["beauty, skincare, natural, organic, cosmetics, radiant, glow, anti-aging, vegan, cruelty-free"],
  openGraph: {
    "title": "BeautyBloom - Natural Skincare for a Radiant You",
    "description": "Discover BeautyBloom's luxurious, natural skincare products designed to nourish, protect, and rejuvenate for a visibly healthier and luminous glow.",
    "url": "https://beautybloom.com",
    "siteName": "BeautyBloom",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/happy-serene-young-woman-with-beautiful-olive-skin-curly-hair-ideal-skin-brown-eyes-studio_633478-1098.jpg",
        "alt": "Radiant woman with clear skin"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "BeautyBloom - Natural Skincare for a Radiant You",
    "description": "Discover BeautyBloom's luxurious, natural skincare products designed to nourish, protect, and rejuvenate for a visibly healthier and luminous glow.",
    "images": [
      "http://img.b2bpic.net/free-photo/happy-serene-young-woman-with-beautiful-olive-skin-curly-hair-ideal-skin-brown-eyes-studio_633478-1098.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

const poppins = Poppins({
  variable: "--font-poppins",
  subsets: ["latin"],
  weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
});

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