import "./globals.css";
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import Header from "./components/header";
import Footer from "./components/footer";
import Script from "next/script";

export const dynamic = "force-dynamic";

///////////////////////////////////////////

export const metadata: Metadata = {
  metadataBase: new URL("https://www.JusticeTips.com.ng"),

  title: {
    default: "JusticeTips – Free Football Predictions & Betting Tips",
    template: "%s | JusticeTips",
  },

  description:
    "JusticeTips provides free football predictions, expert betting tips, match analysis, and accurate odds for today’s games. Trusted soccer predictions to help you win smarter.",

  keywords: [
    "football predictions",
    "betting tips",
    "soccer predictions",
    "free betting tips",
    "correct score predictions",
    "betting odds",
    "JUSTICEPREDIC",
    "match predictions",
    "football tips",
    "soccer tips",
    "daily predictions",
    "football analysis",
    "betting strategies",
    "sports betting",
    "football forecasts",
    "soccer forecasts",
    "football betting advice",
    "soccer betting advice",
    "winning predictions",
    "football tips and tricks",
    "sportybet",
    "betway",
    "1xBet",
    "bet365",
    "football tips today",
    "soccer tips today",
    "live score predictions",
    "football betting tips",
    "soccer betting tips",
    "league",
    "league table",
    "fixtures",
    "football fixtures"
  ],

  authors: [{ name: "JusticeTips" }],
  creator: "JusticeTips",
  publisher: "JusticeTips",

  robots: {
    index: true,
    follow: true,
    googleBot: {
      index: true,
      follow: true,
      "max-snippet": -1,
      "max-image-preview": "large",
      "max-video-preview": -1,
    },
  },

  alternates: {
    canonical: "https://www.JusticeTips.com.ng",
  },

  openGraph: {
    type: "website",
    locale: "en_US",
    url: "https://www.JusticeTips.com.ng",
    siteName: "JusticeTips",
    title: "JusticeTips – Free Football Predictions & Betting Tips",
    description:
      "Get free football predictions, expert betting tips, and accurate match analysis on JUSTICEPREDIC.",
    images: [
      {
        url: "/images/favicon.png", // 1200x630 recommended
        width: 1200,
        height: 630,
        alt: "JusticeTips Football Predictions",
      },
    ],
  },

  twitter: {
    card: "summary_large_image",
    title: "JusticeTips – Free Football Predictions & Betting Tips",
    description:
      "Daily football predictions, betting tips, and match analysis to help you bet smarter.",
    images: ["/images/favicon.png"],
    creator: "@JusticeTips", // optional
  },

  icons: {
    // icon: [
    //   { rel: "icon", type: "image/png", sizes: "32x16", url: "/images/favicon.png" },
    //   { rel: "icon", type: "image/png", sizes: "8x16", url: "/images/favicon.png" },
    // ],

    icon: "/images/favicon.png",
    shortcut: "/images/favicon.png",
    apple: "/images/favicon.png",
  },

  // verification: {
  //   google: "YOUR_GOOGLE_SEARCH_CONSOLE_CODE",
  //   // yandex: "",
  //   // bing: ""
  // },

  category: "sports",
};

///////////////////////////////////////

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

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


export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning={true}>
      <head>
        {/* <Script src="https://quge5.com/88/tag.min.js" data-zone="206515" async data-cfasync="false"></Script> */}
      </head>
      <body
        className="bg-gray-200"
        // className={`${geistSans.variable} ${geistMono.variable} antialiased`}
      >
        <Header />
        {children}
        <Footer />
      </body>
      <Script
        id="nap5k-script"
        dangerouslySetInnerHTML={{
          __html: `(function(s){s.dataset.zone='10697456';s.src='https://nap5k.com/tag.min.js';})(document.documentElement.appendChild(document.createElement('script')))`,
        }}
      />
      <Script
        id="gizokraijaw-script"
        dangerouslySetInnerHTML={{
          __html: `(function(s){s.dataset.zone='10697416';s.src='https://gizokraijaw.net/vignette.min.js';})(document.documentElement.appendChild(document.createElement('script')))`,
        }}
      />
      <Script
          src="https://5gvci.com/act/files/tag.min.js?z=10697498"
          strategy="afterInteractive"
          data-cfasync="false"
        />
      {/* <Script
          src="https://3nbf4.com/act/files/tag.min.js?z=10535872"
          strategy="afterInteractive"
          data-cfasync="false"
        /> */}
    </html>
  );
}
