import { Link } from "@tanstack/react-router";
import { Facebook, Instagram, Twitter, Youtube } from "lucide-react";

export function Footer() {
  return (
    <footer className="relative bg-charcoal border-t-2 border-primary mt-20">
      <div className="diag-stripes h-2 w-full" />
      <div className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-16">
        <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12">
          <div>
            <div className="flex items-center gap-2 mb-4">
              <div className="grid h-12 w-12 place-items-center bg-primary text-primary-foreground font-display text-2xl">CWF</div>
              <span className="font-display text-2xl tracking-widest">Central Wrestling</span>
            </div>
            <p className="text-muted-foreground text-sm leading-relaxed">
              East Texas's premier professional wrestling promotion. Live events, legendary talent, and unforgettable nights.
            </p>
          </div>

          <div>
            <h4 className="font-display text-xl tracking-widest text-primary mb-4">Quick Links</h4>
            <ul className="space-y-2 text-sm">
              {["Home", "Events", "Roster", "News", "Media", "Contact"].map((l) => (
                <li key={l}>
                  <Link
                    to={l === "Home" ? "/" : `/${l.toLowerCase()}`}
                    className="text-muted-foreground hover:text-primary transition-colors"
                  >
                    {l}
                  </Link>
                </li>
              ))}
            </ul>
          </div>

          <div>
            <h4 className="font-display text-xl tracking-widest text-primary mb-4">Next Event</h4>
            <p className="font-display text-2xl mb-1">CWF LIVE: NO LIMITS</p>
            <p className="text-sm text-muted-foreground mb-1">Saturday, April 12</p>
            <p className="text-sm text-muted-foreground mb-4">Maude Cobb Arena, Longview TX</p>
            <Link to="/events" className="btn-hero text-sm py-2 px-4">Buy Tickets</Link>
          </div>

          <div>
            <h4 className="font-display text-xl tracking-widest text-primary mb-4">Follow Us</h4>
            <div className="flex gap-3">
              {[Facebook, Instagram, Twitter, Youtube].map((Icon, i) => (
                <a
                  key={i}
                  href="#"
                  className="grid h-11 w-11 place-items-center bg-steel hover:bg-primary hover:text-primary-foreground transition-colors border border-border"
                  aria-label="Social link"
                >
                  <Icon size={18} />
                </a>
              ))}
            </div>
          </div>
        </div>
      </div>

      <div className="border-t border-border">
        <div className="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-6 flex flex-col md:flex-row items-center justify-between gap-3 text-xs text-muted-foreground">
          <p>© {new Date().getFullYear()} Central Wrestling Federation. All rights reserved.</p>
          <div className="flex gap-6">
            <a href="#" className="hover:text-primary">Privacy Policy</a>
            <a href="#" className="hover:text-primary">Terms of Service</a>
            <a href="#" className="hover:text-primary">Ticket Policy</a>
          </div>
        </div>
      </div>
    </footer>
  );
}
