import Link from "next/link";

export default function OnboardingLayout({ children }: { children: React.ReactNode }) {
    return (
        <div className="min-h-screen bg-[#0a0f1e] relative overflow-hidden">
            {/* Background */}
            <div className="absolute inset-0 overflow-hidden pointer-events-none">
                <div className="absolute -top-40 right-0 w-[700px] h-[700px] rounded-full bg-[#0070f3]/15 blur-[140px]" />
                <div className="absolute bottom-0 -left-40 w-[600px] h-[600px] rounded-full bg-purple-600/10 blur-[120px]" />
                <div className="absolute inset-0 bg-[linear-gradient(rgba(255,255,255,0.015)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,0.015)_1px,transparent_1px)] bg-[size:64px_64px]" />
            </div>

            {/* Minimal header */}
            <header className="relative z-10 flex items-center justify-between px-6 py-5 max-w-5xl mx-auto">
                <Link href="/" className="inline-flex items-center gap-2">
                    <div className="w-8 h-8 rounded-lg bg-[#0070f3] flex items-center justify-center">
                        <svg className="w-5 h-5 text-white" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 10V3L4 14h7v7l9-11h-7z" />
                        </svg>
                    </div>
                    <span className="text-lg font-extrabold text-white tracking-tight">
                        Proten<span className="text-[#0070f3]">Connect</span>
                    </span>
                </Link>
                <Link
                    href="/dashboard"
                    className="text-sm text-slate-500 hover:text-slate-300 transition-colors"
                >
                    Skip for now →
                </Link>
            </header>

            <main className="relative z-10">
                {children}
            </main>
        </div>
    );
}
