import React from 'react';
import Link from 'next/link';
import Logo from './Logo';

interface Props {
  projectName: string;
}

export default function WebFooter({ projectName }: Props) {
  return (
    <footer className="bg-slate-900 text-slate-400 py-16 px-6">
      <div className="container mx-auto max-w-7xl">
        <div className="grid grid-cols-1 md:grid-cols-4 gap-12 mb-12">
          <div className="md:col-span-2">
            <Link href="/" className="flex items-center gap-2 text-white mb-6">
              <Logo className="w-10 h-10 text-indigo-500" />
              <span className="text-2xl font-bold tracking-tight uppercase">{projectName}</span>
            </Link>
            <p className="max-w-sm text-lg leading-relaxed text-slate-400">
              The premier student-to-client bridge, empowering the next generation of talented student freelancers.
            </p>
          </div>
          
          <div>
            <h4 className="text-white font-bold mb-6 uppercase tracking-wider text-sm">Platform</h4>
            <ul className="space-y-4 text-sm font-semibold">
              <li><Link href="/web_pages/services" className="hover:text-white transition-colors">Service Directory</Link></li>
              <li><Link href="/register" className="hover:text-white transition-colors">Join as a Student</Link></li>
              <li><Link href="/register" className="hover:text-white transition-colors">Hire Talent</Link></li>
            </ul>
          </div>

          <div>
            <h4 className="text-white font-bold mb-6 uppercase tracking-wider text-sm">Company</h4>
            <ul className="space-y-4 text-sm font-semibold">
              <li><Link href="/privacy-policy/" className="hover:text-white transition-colors">Privacy Policy</Link></li>
              <li><Link href="/terms-of-use/" className="hover:text-white transition-colors">Terms of Use</Link></li>
              <li><Link href="/login" className="hover:text-white transition-colors">Admin Login</Link></li>
            </ul>
          </div>
        </div>

        <div className="flex flex-col md:flex-row justify-between items-center gap-6 pt-12 border-t border-slate-800">
          <div className="text-sm">
            © 2026 {projectName}. All rights reserved. Built for students, by students.
          </div>
          <div className="flex gap-6">
            {/* Social Icons would go here */}
          </div>
        </div>
      </div>
    </footer>
  );
}
