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 | Security Researcher & Full-Stack Developer",
    template: "%s | Mainasara Tsowa",
  },
  description:
    "Security researcher and full-stack developer specializing in penetration testing, OSINT frameworks, vulnerability research, and building secure applications with Next.js. Open for security consulting and development projects.",
  keywords: [
    "security researcher",
    "penetration testing",
    "pentest",
    "cybersecurity",
    "OSINT",
    "vulnerability research",
    "Next.js developer",
    "full-stack developer",
    "security tooling",
    "web security",
    "application security",
    "security consulting",
    "React developer",
    "TypeScript",
  ],
  authors: [{ name: "Mainasara Tsowa", url: "https://mainasara.dev" }],
  creator: "Mainasara Tsowa",
  publisher: "Mainasara Tsowa",
  robots: "index, follow",
  openGraph: {
    title: "Mainasara Tsowa | Security Researcher & Full-Stack Developer",
    description:
      "Security researcher specializing in offensive security, OSINT frameworks, and building secure applications with Next.js.",
    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 - Security Researcher",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "Mainasara Tsowa | Security Researcher & Full-Stack Developer",
    description:
      "Security researcher specializing in offensive security, OSINT frameworks, and secure application development.",
    images: ["/media/me/me.jpeg"],
    creator: "@neutrino2211",
  },
  alternates: {
    canonical: "https://mainasara.dev",
  },
  icons: {
    icon: [{ url: "/icon.svg", type: "image/svg+xml" }],
    apple: [{ url: "/icon.svg" }],
  },
  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 className="dark">
      <head>
        <link rel="me" href="https://sifa.id/p/mainasara.dev" />
      </head>
      <body
        className={`${geistSans.variable} ${geistMono.variable} antialiased bg-[#0a0a0a]`}
      >
        {children}
      </body>
    </html>
  );
}
