import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";

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

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

export const metadata: Metadata = {
  metadataBase: new URL("https://mainasara.dev"),
  title: {
    default: "Mainasara Tsowa - Developer & Cybersecurity Expert",
    template: "%s | Mainasara Tsowa",
  },
  description:
    "Passionate developer and cybersecurity expert building secure, elegant digital solutions. Explore projects, creative writing, and technical insights.",
  keywords: [
    "developer",
    "cybersecurity",
    "full-stack",
    "web development",
    "security",
    "programming",
    "digital art",
    "creative writing",
  ],
  authors: [{ name: "Mainasara Tsowa" }],
  creator: "Mainasara Tsowa",
  publisher: "Mainasara Tsowa",
  robots: "index, follow",
  openGraph: {
    title: "Mainasara Tsowa - Developer & Cybersecurity Expert",
    description:
      "Passionate developer and cybersecurity expert building secure, elegant digital solutions.",
    url: "https://mainasara.dev",
    siteName: "Mainasara Tsowa",
    locale: "en_US",
    type: "website",
    images: [
      {
        url: "/media/me/me.jpeg",
        width: 800,
        height: 800,
        alt: "Mainasara Tsowa",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "Mainasara Tsowa - Developer & Cybersecurity Expert",
    description:
      "Passionate developer and cybersecurity expert building secure, elegant digital solutions.",
    images: ["/media/me/me.jpeg"],
    creator: "@neutrino2211",
  },
  alternates: {
    canonical: "https://mainasara.dev",
  },
  icons: {
    icon: [{ url: "/favicon.ico" }, { url: "/icon.png", type: "image/png" }],
    apple: [{ url: "/apple-icon.png" }],
  },
  manifest: "/manifest.json",
  verification: {
    google: "your-google-site-verification-code",
  },
  category: "technology",
  other: {
    "twitter:site": "@neutrino2211",
    "twitter:creator": "@neutrino2211",
  },
};

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