import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { Toaster } from "@/components/ui/toaster";

const geistSans = Geist({
  variable: "--font-geist-sans",
  subsets: ["latin"],
});

const geistMono = Geist_Mono({
  variable: "--font-geist-mono",
  subsets: ["latin"],
});

export const metadata: Metadata = {
  title: "AdStudioAI — One-Prompt Multi-Channel Marketing Machine",
  description:
    "Turn a website URL or one-line idea into ready-to-post ad campaigns for Instagram, TikTok, LinkedIn, X and Facebook. Built for busy small-business owners.",
  keywords: ["AI ads", "social media scheduler", "small business marketing", "ad generator", "multi-channel campaigns"],
  icons: {
    icon: "https://z-cdn.chatglm.cn/z-ai/static/logo.svg",
  },
  openGraph: {
    title: "AdStudioAI",
    description: "You run the business. We run the ads.",
    siteName: "AdStudioAI",
    type: "website",
  },
};

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`}
      >
        {children}
        <Toaster />
      </body>
    </html>
  );
}
