import Link from 'next/link';
import { Phone, Mail, MapPin, Instagram, Facebook, Twitter, Youtube } from 'lucide-react';
import { venues } from '../../data/venues';

export default function Footer() {
  return (
    <footer style={{ background: 'var(--bg-footer)', borderTop: '1px solid rgba(212,175,55,0.15)' }}>
      <div className="max-w-7xl mx-auto px-6 py-20">
        <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12">
          <div className="lg:col-span-1">
            <div className="mb-6">
              <span className="text-gold text-xs tracking-[0.4em] uppercase font-body block mb-1">Andalusian</span>
              <span className="font-display text-light font-bold text-2xl">Banquets</span>
            </div>
            <p className="text-whisper text-sm leading-relaxed mb-8">
              Five hallmark banquet halls and an expansive open-air lawn — setting the gold standard for luxury events in the region.
            </p>
            <div className="flex gap-4">
              {[
                { icon: Instagram, href: '#' },
                { icon: Facebook, href: '#' },
                { icon: Twitter, href: '#' },
                { icon: Youtube, href: '#' },
              ].map(({ icon: SocialIcon, href }, i) => (
                <a
                  key={i}
                  href={href}
                  className="w-9 h-9 border border-gold/30 flex items-center justify-center text-whisper hover:text-gold hover:border-gold transition-all duration-300"
                >
                  <SocialIcon size={14} />
                </a>
              ))}
            </div>
          </div>

          <div>
            <h4 className="section-label mb-6">Quick Links</h4>
            <ul className="space-y-3">
              {[
                { label: 'Home', path: '/' },
                { label: 'Our Banquets', path: '/banquets' },
                { label: 'Lawn', path: '/lawn' },
                { label: 'Gallery', path: '/gallery' },
                { label: 'About Us', path: '/about' },
                { label: 'Contact Us', path: '/contact' },
              ].map((link) => (
                <li key={link.path}>
                  <Link
                    href={link.path}
                    className="text-whisper text-sm hover:text-gold transition-colors duration-300 flex items-center gap-2 group"
                  >
                    <span className="w-4 h-px bg-gold/40 group-hover:w-6 group-hover:bg-gold transition-all duration-300" />
                    {link.label}
                  </Link>
                </li>
              ))}
            </ul>
          </div>

          <div>
            <h4 className="section-label mb-6">Our Venues</h4>
            <ul className="space-y-3">
              {venues.filter((venue) => venue.id !== 'open-air-lawn').map((venue) => (
                <li key={venue.id}>
                  <Link
                    href={`/banquets/${venue.id}`}
                    className="text-whisper text-sm hover:text-gold transition-colors duration-300 flex items-center gap-2 group"
                  >
                    <span className="w-4 h-px bg-gold/40 group-hover:w-6 group-hover:bg-gold transition-all duration-300" />
                    {venue.name}
                  </Link>
                </li>
              ))}
            </ul>
          </div>

          <div>
            <h4 className="section-label mb-6">Contact</h4>
            <ul className="space-y-4">
              <li className="flex items-start gap-3">
                <MapPin size={14} className="text-gold mt-1 flex-shrink-0" />
                <span className="text-whisper text-sm leading-relaxed">
                  33 Zulfiqar Street 1, DHA Phase VIII Zone A,<br />Karachi, 75500
                </span>
              </li>
              <li className="flex items-center gap-3">
                <Phone size={14} className="text-gold flex-shrink-0" />
                <a href="tel:+923268463036" className="text-whisper text-sm hover:text-gold transition-colors">
                  +92 326 8463036
                </a>
              </li>
              <li className="flex items-center gap-3">
                <Phone size={14} className="text-gold flex-shrink-0" />
                <a href="tel:+923268463037" className="text-whisper text-sm hover:text-gold transition-colors">
                  +92 326 8463037
                </a>
              </li>
              <li className="flex items-center gap-3">
                <Mail size={14} className="text-gold flex-shrink-0" />
                <a href="mailto:info@andalusianbanquets.com" className="text-whisper text-sm hover:text-gold transition-colors">
                  info@andalusianbanquets.com
                </a>
              </li>
            </ul>
          </div>
        </div>
      </div>

      <div style={{ borderTop: '1px solid rgba(212,175,55,0.1)' }}>
        <div className="max-w-7xl mx-auto px-6 py-6 flex flex-col md:flex-row items-center justify-between gap-4">
          <p className="text-whisper text-xs tracking-wider">
            © 2024 Andalusian Banquets. All Rights Reserved.
          </p>
          <p className="text-whisper text-xs tracking-wider">
            Crafted with excellence for the finest celebrations.
          </p>
        </div>
      </div>
    </footer>
  );
}
