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: 'The Past as a Fuel | Digital Muhasabah Journal',
  description: 'Transform past mistakes into powerful fuel for personal growth with this private, disciplined digital journal for self-examination and accountability.',
  keywords: ["muhasabah, digital journal, personal growth, self-improvement, accountability, Islam, productivity, mistakes, lessons, self-reflection, private journal"],
  openGraph: {
    "title": "The Past as a Fuel | Digital Muhasabah Journal",
    "description": "Transform past mistakes into powerful fuel for personal growth with this private, disciplined digital journal for self-examination and accountability.",
    "url": "https://thepastasafuel.com",
    "siteName": "The Past as a Fuel",
    "images": [
      {
        "url": "http://img.b2bpic.net/free-photo/people-meeting-seminar-office-concept_53876-41666.jpg",
        "alt": "Abstract dashboard showing growth metrics"
      }
    ],
    "type": "website"
  },
  twitter: {
    "card": "summary_large_image",
    "title": "The Past as a Fuel | Digital Muhasabah Journal",
    "description": "Transform past mistakes into powerful fuel for personal growth with this private, disciplined digital journal for self-examination and accountability.",
    "images": [
      "http://img.b2bpic.net/free-photo/people-meeting-seminar-office-concept_53876-41666.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>
  );
}
