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



export const metadata: Metadata = {
  title: 'Sakura Coffee Tokyo | 本格コーヒーと和菓子のカフェ',
  description: '東京浅草にある家族経営のカフェ、桜珈琲東京。地元焙煎のスペシャルティコーヒーと手作りの和菓子で、心温まるひとときをお過ごしください。日本語・英語対応。',
  keywords: ["桜珈琲東京, 浅草カフェ, 東京カフェ, スペシャルティコーヒー, 和菓子, 家族経営, 英語対応, 日本語対応, 隠れ家カフェ, sakura coffee tokyo, asakusa cafe, tokyo coffee, specialty coffee, wagashi, family-owned, english friendly, japanese friendly, hidden gem cafe"],
  openGraph: {
    "title": "Sakura Coffee Tokyo | A Family-Owned Cafe in Asakusa",
    "description": "Discover Sakura Coffee Tokyo, a welcoming family-owned cafe in Asakusa offering locally roasted specialty coffee and handcrafted Japanese sweets. Bilingual support available.",
    "url": "https://www.sakuracoffeetokyo.com",
    "siteName": "Sakura Coffee Tokyo",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/people-enjoying-traditional-japanese-food_23-2148759579.jpg",
        "alt": "Sakura Coffee Tokyo cafe interior"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "Sakura Coffee Tokyo | A Family-Owned Cafe in Asakusa",
    "description": "Discover Sakura Coffee Tokyo, a welcoming family-owned cafe in Asakusa offering locally roasted specialty coffee and handcrafted Japanese sweets. Bilingual support available.",
    "images": [
      "http://img.b2bpic.net/free-photo/people-enjoying-traditional-japanese-food_23-2148759579.jpg"
    ]
  },
  robots: {
    "index": true,
    "follow": true
  },
};

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

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