import Link from "next/link";
import { UserCircle } from "lucide-react";

export default function StudentLayout({ children }: { children: React.ReactNode }) {
  return (
    <div className="min-h-screen bg-rima-background text-rima-text font-sans">
      {/* Top Nav */}
      <nav className="fixed top-0 w-full z-50 bg-rima-surface/80 backdrop-blur-xl border-b border-rima-border/50">
        <div className="max-w-7xl mx-auto px-6 h-16 flex items-center justify-between">
          <Link href="/" className="flex items-center gap-3">
            <div className="w-8 h-8 bg-white/5 rounded-lg flex items-center justify-center border border-white/10 shadow-lg">
              <span className="font-extrabold text-white text-xs tracking-tighter">RIMA</span>
            </div>
            <span className="font-bold text-sm tracking-widest text-rima-muted hidden sm:block">ACADEMY</span>
          </Link>

          <div className="flex items-center gap-4 sm:gap-6 text-sm font-semibold">
            <Link href="/dashboard" className="text-rima-muted hover:text-white transition-colors">Dashboard</Link>
            <Link href="/courses" className="text-rima-muted hover:text-white transition-colors hidden sm:block">Explorează</Link>
            <Link href="/my-account" className="flex items-center gap-2 ml-4 px-3 py-1.5 rounded-full bg-white/5 border border-white/10 hover:bg-white/10 transition-colors">
              <UserCircle className="w-4 h-4 text-rima-muted" />
              <span className="text-xs text-white">Contul Meu</span>
            </Link>
          </div>
        </div>
      </nav>

      <main className="pt-16 min-h-screen">
        {children}
      </main>
    </div>
  );
}
