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(process.env.SITE_URL || 'http://localhost:3000'),
  title: 'Veyra — Manifest Player',
  description:
    'Kendi Stremio uyumlu manifestiniz için sinematik katalog ve gelişmiş web oynatıcı.',
  openGraph: {
    title: 'Veyra — Manifest Player',
    description:
      'Kendi manifestiniz, profesyonel katalog deneyimi ve gelişmiş web oynatıcı.',
    images: ['/og.png'],
    type: 'website',
  },
  twitter: {
    card: 'summary_large_image',
    title: 'Veyra — Manifest Player',
    description:
      'Kendi manifestiniz, profesyonel katalog deneyimi ve gelişmiş web oynatıcı.',
    images: ['/og.png'],
  },
};

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