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

const inter = Inter({
  subsets: ["latin"],
  variable: "--font-inter",
  display: "swap",
});

const jetbrainsMono = JetBrains_Mono({
  subsets: ["latin"],
  variable: "--font-jetbrains-mono",
  display: "swap",
  weight: ["400", "500"],
});

export const metadata: Metadata = {
  title: "Zachary Gaetano | Broadcast Systems Integration & Production Facility Design",
  description:
    "Systems designer and broadcast engineer specializing in production facility design, IP infrastructure, and cloud-based broadcast solutions. Principal projects include Washington Commanders, BetMGM, CVS/Aetna, UBS, Monumental Sports, COSM, and Intuit.",
  keywords: [
    "broadcast systems integration",
    "systems design",
    "broadcast engineering",
    "SMPTE ST 2110",
    "production facility design",
    "IP broadcast",
    "cloud production",
    "XR virtual production",
    "broadcast control room design",
    "Ross Video integrator",
    "NDI SRT production",
    "Washington DC broadcast engineer",
    "camera operator DMV",
    "Arri Trinity operator",
    "1st AC Washington DC",
    "RED camera operator",
  ],
  authors: [{ name: "Zachary Gaetano" }],
  creator: "Zachary Gaetano",
  metadataBase: new URL("https://www.wilddragon.net"),
  alternates: {
    canonical: "https://www.wilddragon.net",
  },
  openGraph: {
    title: "Zachary Gaetano | Broadcast Systems Integration",
    description:
      "Systems designer specializing in broadcast facility design, IP infrastructure, and cloud production for enterprise, sports, and financial organizations.",
    url: "https://www.wilddragon.net",
    siteName: "Wild Dragon",
    type: "website",
    locale: "en_US",
    images: [
      {
        url: "/images/wild-dragon-logo.jpg",
        width: 1200,
        height: 630,
        alt: "Wild Dragon - Broadcast Systems Integration",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "Zachary Gaetano | Broadcast Systems Integration",
    description:
      "Systems designer specializing in broadcast facility design, IP infrastructure, and cloud production.",
    images: ["/images/wild-dragon-logo.jpg"],
  },
  robots: {
    index: true,
    follow: true,
    googleBot: {
      index: true,
      follow: true,
      "max-snippet": -1,
      "max-image-preview": "large",
      "max-video-preview": -1,
    },
  },
};

const structuredData = {
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Person",
      "@id": "https://www.wilddragon.net/#person",
      name: "Zachary Gaetano",
      jobTitle: "Broadcast Systems Integrator & Camera Operator",
      url: "https://www.wilddragon.net",
      sameAs: [
        "https://www.linkedin.com/in/zachary-gaetano-05962386/",
        "https://vimeo.com/zachary_gaetano",
      ],
      address: {
        "@type": "PostalAddress",
        addressRegion: "DC",
        addressCountry: "US",
      },
      knowsAbout: [
        "Broadcast Systems Integration",
        "Production Facility Design",
        "SMPTE ST 2110",
        "Cloud Production",
        "IP Broadcast Infrastructure",
        "Extended Reality Production",
        "Camera Operation",
        "Arri Trinity",
        "RED Cinema Cameras",
        "1st AC",
        "Director of Photography",
      ],
    },
    {
      "@type": "ProfessionalService",
      "@id": "https://www.wilddragon.net/#organization",
      name: "Wild Dragon",
      description:
        "Broadcast systems integration and production facility design for sports, corporate, financial services, and defense organizations.",
      url: "https://www.wilddragon.net",
      founder: {
        "@id": "https://www.wilddragon.net/#person",
      },
      areaServed: "United States",
      address: {
        "@type": "PostalAddress",
        addressRegion: "DC",
        addressCountry: "US",
      },
      contactPoint: {
        "@type": "ContactPoint",
        email: "zgaetano@wilddragon.net",
        contactType: "sales",
        areaServed: "US",
        availableLanguage: "English",
      },
    },
    {
      "@type": "VideoObject",
      "@id": "https://www.wilddragon.net/#showreel",
      name: "Zachary Gaetano — Camera Operator & DP Showreel",
      description:
        "Showreel for Zachary Gaetano, camera operator and director of photography based in the Washington DC area. Featuring commercial, sports, documentary, and narrative work including RED Komodo-X and Arri Trinity.",
      thumbnailUrl: "https://vumbnail.com/225920311.jpg",
      embedUrl: "https://player.vimeo.com/video/225920311",
      contentUrl: "https://vimeo.com/225920311",
      uploadDate: "2017-01-01",
      creator: {
        "@id": "https://www.wilddragon.net/#person",
      },
    },
  ],
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" className={`${inter.variable} ${jetbrainsMono.variable}`}>
      <head>
        <meta name="theme-color" content="#0a0a0a" />
        <link rel="icon" href="/images/dragon-mark.png" type="image/png" />
        <link rel="apple-touch-icon" href="/images/dragon-mark.png" />
        <link rel="preconnect" href="https://player.vimeo.com" />
        <link rel="dns-prefetch" href="//vimeo.com" />
        <script
          type="application/ld+json"
          dangerouslySetInnerHTML={{ __html: JSON.stringify(structuredData) }}
        />
      </head>
      <body className="bg-white text-primary antialiased">{children}</body>
    </html>
  );
}
