import type { Metadata } from "next";
import "./globals.css";
import Navbar from "@/components/Navbar";
import Footer from "@/components/Footer";

export const metadata: Metadata = {
  title: "SocialBuddy - Manage All Your Social Media in One Place",
  description: "Empowering businesses and creators to schedule posts, analyze performance, engage with audiences, and grow their social presence with powerful tools and analytics.",
  keywords: ["social media management", "social media scheduler", "social media analytics", "content calendar", "social media tools"],
  authors: [{ name: "SocialBuddy Team" }],
  openGraph: {
    title: "SocialBuddy - Social Media Management Platform",
    description: "Manage all your social media accounts from one powerful dashboard. Schedule posts, analyze performance, and grow your audience.",
    type: "website",
    url: "https://socialbuddy.com",
    images: [
      {
        url: "/og-image.jpg",
        width: 1200,
        height: 630,
        alt: "SocialBuddy Platform",
      },
    ],
  },
  twitter: {
    card: "summary_large_image",
    title: "SocialBuddy - Social Media Management Platform",
    description: "Manage all your social media accounts from one powerful dashboard.",
    images: ["/og-image.jpg"],
  },
  robots: {
    index: true,
    follow: true,
  },
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" suppressHydrationWarning>
      <head>
        <link rel="icon" href="/favicon.ico" />
      </head>
      <body>
        <Navbar />
        {children}
        <Footer />
      </body>
    </html>
  );
}
