import type { Metadata } from "next";
import "./globals.css";
import SiteTrustNotice from "./components/SiteTrustNotice";

export const metadata: Metadata = {
  metadataBase: new URL("https://www.toshinsamuels.com"),
  title: {
    default: "Find Help & Crisis Resources | Toshin Samuels",
    template: "%s | Toshin Samuels",
  },
  description:
    "Find trusted crisis and recovery resources, practical fraud-prevention education, and free how-to guides through the public-service website of Toshin Samuels, Founder and President of Overcomers Society.",
  applicationName: "Toshin Samuels",
  authors: [{ name: "Toshin Samuels", url: "/about" }],
  creator: "Toshin Samuels",
  publisher: "Toshin Samuels",
  keywords: [
    "crisis resources",
    "recovery resources",
    "scam prevention",
    "fraud awareness",
    "fraud education",
    "identity protection",
    "how-to guides",
    "second chances",
    "Toshin Samuels",
    "Overcomers Society",
  ],
  alternates: {
    canonical: "/",
  },
  openGraph: {
    title: "Find Help & Crisis Resources | Toshin Samuels",
    description:
      "Trusted crisis resources, fraud education, practical how-to guides, and the public-service work of Toshin Samuels.",
    url: "/",
    siteName: "Toshin Samuels",
    locale: "en_US",
    type: "website",
  },
  twitter: {
    card: "summary",
    title: "Find Help & Crisis Resources | Toshin Samuels",
    description:
      "Trusted crisis resources, fraud education, practical how-to guides, and the public-service work of Toshin Samuels.",
  },
  robots: {
    index: true,
    follow: true,
    googleBot: {
      index: true,
      follow: true,
      "max-video-preview": -1,
      "max-image-preview": "large",
      "max-snippet": -1,
    },
  },
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en">
      <body>
        {children}
        <SiteTrustNotice />
      </body>
    </html>
  );
}
