import type { Metadata } from "next";
import localFont from "next/font/local";
import "./globals.css";
import { Toaster } from "@/components/ui/toaster";
import { GameToaster } from "@/components/game/GameToast";
import { DebugProvider } from "@/components/game/debug/debug-context";

const geistSans = localFont({
  src: '../../public/fonts/GeistVF.woff',
  variable: '--font-geist-sans',
});

const geistMono = localFont({
  src: '../../public/fonts/GeistMonoVF.woff',
  variable: '--font-geist-mono',
});

export const metadata: Metadata = {
  title: "Mana Loop",
  description: "A time-loop incremental game where you climb the Spire and sign pacts with guardians.",
  keywords: ["Mana Loop", "incremental game", "idle game", "time loop"],
  authors: [{ name: "Mana Loop Team" }],
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <body
        className={`${geistSans.variable} ${geistMono.variable} antialiased bg-background text-foreground`}
      >
        <DebugProvider>
          {children}
          <Toaster />
          <GameToaster />
        </DebugProvider>
      </body>
    </html>
  );
}
