import type { Metadata, Viewport } from 'next'
import { Inter } from 'next/font/google'
import { Analytics } from '@vercel/analytics/next'
import './globals.css'

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

export const metadata: Metadata = {
  title: 'SES Endüstri | Endüstriyel Mühendislik ve Mekanik Çözümler',
  description: 'Mekanik Montaj, Endüstriyel Borulama, Çelik Konstrüksiyon, Tank İmalatı ve Endüstriyel Bakım Hizmetlerinde Profesyonel Çözümler. ISO Sertifikalı Kalite ve Güvenlik Standartları.',
  keywords: 'endüstriyel mühendislik, mekanik montaj, borulama sistemleri, çelik konstrüksiyon, tank imalatı, endüstriyel bakım, EPC yüklenici, duruş projeleri, kaynak hizmetleri',
  authors: [{ name: 'SES Endüstri' }],
  creator: 'SES Endüstri',
  publisher: 'SES Endüstri',
  robots: 'index, follow',
  openGraph: {
    type: 'website',
    locale: 'tr_TR',
    url: 'https://ses-endustri.com',
    siteName: 'SES Endüstri',
    title: 'SES Endüstri | Endüstriyel Mühendislik ve Mekanik Çözümler',
    description: 'Mekanik Montaj, Endüstriyel Borulama, Çelik Konstrüksiyon, Tank İmalatı ve Endüstriyel Bakım Hizmetlerinde Profesyonel Çözümler.',
    images: [
      {
        url: '/og-image.jpg',
        width: 1200,
        height: 630,
        alt: 'SES Endüstri - Endüstriyel Mühendislik Çözümleri',
      },
    ],
  },
  twitter: {
    card: 'summary_large_image',
    title: 'SES Endüstri | Endüstriyel Mühendislik ve Mekanik Çözümler',
    description: 'Mekanik Montaj, Endüstriyel Borulama, Çelik Konstrüksiyon, Tank İmalatı ve Endüstriyel Bakım Hizmetlerinde Profesyonel Çözümler.',
    images: ['/og-image.jpg'],
  },
  icons: {
    icon: [
      { url: '/favicon.ico', sizes: 'any' },
    ],
    apple: '/apple-icon.png',
  },
}

export const viewport: Viewport = {
  width: 'device-width',
  initialScale: 1,
  maximumScale: 1,
  themeColor: '#0a0a14',
}

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode
}>) {
  return (
    <html lang="tr" className="bg-background">
      <body className={`${inter.variable} font-sans antialiased`}>
        {children}
        {process.env.NODE_ENV === 'production' && <Analytics />}
      </body>
    </html>
  )
}
