<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}" class="scroll-smooth">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="{{ $description ?? 'Professional Livestreaming Services by OA MediaKraft' }}">
    <title>{{ $title ?? config('app.name', 'OA MediaKraft') }} - Livestream</title>

    <!-- Load Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>

    <!-- Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">

    <style>
        body {
            font-family: 'Inter', sans-serif;
        }
    </style>
</head>

<body class="min-h-screen antialiased bg-red-950 text-white">
    <!-- Navigation -->
    <nav class="fixed top-0 w-full z-50 bg-red-950/95 backdrop-blur-sm border-b border-red-900">
        <div class="max-w-7xl mx-auto px-6 lg:px-8">
            <div class="flex items-center justify-between h-16">
                <!-- Logo -->
                <a href="/" class="flex items-center space-x-2">
                    <span class="text-2xl font-extrabold tracking-tight text-red-400">
                        OA<span class="text-white">MediaKraft</span>
                    </span>
                </a>

                <!-- Desktop Nav -->
                <div class="hidden md:flex items-center space-x-8">
                    <a href="/livestream" class="text-white hover:text-red-400 transition">Home</a>
                    <a href="/" class="text-red-300 hover:text-white transition text-sm">← Back to Main</a>
                </div>

                <!-- Mobile menu button -->
                <button id="mobile-menu-btn" class="md:hidden text-red-200 hover:text-white">
                    <svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                            d="M4 6h16M4 12h16M4 18h16" />
                    </svg>
                </button>
            </div>
        </div>

        <!-- Mobile menu -->
        <div id="mobile-menu" class="hidden md:hidden bg-red-900 border-t border-red-800">
            <div class="px-4 py-3 space-y-2">
                <a href="/livestream" class="block px-3 py-2 text-white hover:bg-red-800 rounded-lg">Home</a>
                <a href="/" class="block px-3 py-2 text-red-300 hover:bg-red-800 rounded-lg">← Back to Main</a>
            </div>
        </div>
    </nav>

    <!-- Content -->
    <main class="pt-16">
        @yield('content')
    </main>

    <!-- Footer -->
    <footer class="bg-red-950 border-t border-red-900 py-12">
        <div class="max-w-7xl mx-auto px-6 lg:px-8 text-center">
            <div class="text-lg font-extrabold tracking-tight text-red-400 mb-4">
                OA<span class="text-white">MediaKraft</span> Livestream
            </div>
            <p class="text-red-300 text-sm mb-6">High-quality, multi-camera livestreaming services.</p>
            <div class="flex justify-center space-x-6 text-sm text-red-300">
                <a href="mailto:live@oamediakraft.co.uk" class="hover:text-red-400 transition">Contact</a>
            </div>
            <p class="text-red-400 text-xs mt-6">&copy; {{ date('Y') }} OA MediaKraft. All rights reserved.</p>
        </div>
    </footer>

    <!-- Scripts -->
    <script>
        // Mobile menu toggle
        document.getElementById('mobile-menu-btn')?.addEventListener('click', function() {
            document.getElementById('mobile-menu').classList.toggle('hidden');
        });
    </script>

    @stack('scripts')
</body>

</html>
