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



export const metadata: Metadata = {
  title: 'iPhone Central | Explore & Buy Latest iPhones in 3D',
  description: 'Discover and compare iPhone 11 to 17 Pro Max with stunning 3D visualizations. Get personalized support and make purchases directly via WhatsApp.',
  keywords: ["iPhone, Apple, iPhone 17 Pro Max, iPhone 16 Pro, iPhone 15 Pro, iPhone 14, iPhone 13, iPhone 12, iPhone 11, smartphone, tech, 3D visualization, WhatsApp sales, e-commerce, mobile phone"],
  openGraph: {
    "title": "iPhone Central | Explore & Buy Latest iPhones in 3D",
    "description": "Discover and compare iPhone 11 to 17 Pro Max with stunning 3D visualizations. Get personalized support and make purchases directly via WhatsApp.",
    "url": "https://www.iphonecentral.com",
    "siteName": "iPhone Central",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/smartphone-mockup-with-white-screen-white-background_187299-46904.jpg",
        "alt": "Interactive 3D model of an iPhone"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "iPhone Central | Explore & Buy Latest iPhones in 3D",
    "description": "Discover and compare iPhone 11 to 17 Pro Max with stunning 3D visualizations. Get personalized support and make purchases directly via WhatsApp.",
    "images": [
      "http://img.b2bpic.net/free-photo/smartphone-mockup-with-white-screen-white-background_187299-46904.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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