"use client";

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

export function Footer() {
  return (
    <footer className="bg-obsidian-900 pt-20 pb-8">
      <div className="mx-auto max-w-7xl px-6 lg:px-8">
        {/* CTA Banner */}
        <div className="relative bg-primary p-8 sm:p-12 mb-16 flex flex-col sm:flex-row items-center justify-between gap-6">
          <div>
            <h3 className="font-display text-2xl sm:text-3xl font-bold text-white">
              Ready to Invest in Kenya?
            </h3>
            <p className="text-white/80 text-sm mt-2">
              Join 2,000+ diaspora investors building wealth back home.
            </p>
          </div>
          <Link
            href="/register"
            className="flex-shrink-0 bg-white text-obsidian-900 px-8 py-4 text-sm font-semibold uppercase tracking-wider hover:bg-obsidian-50 transition-colors inline-flex items-center gap-2"
          >
            Get Started <ArrowRight size={16} />
          </Link>
        </div>

        {/* Footer Grid */}
        <div className="grid sm:grid-cols-2 lg:grid-cols-4 gap-10 pb-12 border-b border-white/10">
          {/* Newsletter */}
          <div>
            <h4 className="font-display text-sm font-bold text-white uppercase tracking-wider mb-5">
              Subscribe Now!
            </h4>
            <p className="text-sm text-white/50 mb-4 leading-relaxed">
              Get the latest property listings and investment opportunities
              delivered to your inbox.
            </p>
            <div className="flex">
              <input
                type="email"
                placeholder="Your email"
                className="flex-1 bg-white/10 border border-white/20 px-4 py-3 text-sm text-white placeholder:text-white/40 outline-none focus:border-primary"
              />
              <button className="bg-primary px-4 py-3 text-white hover:bg-orange-600 transition-colors">
                <ArrowRight size={16} />
              </button>
            </div>
          </div>

          {/* Company */}
          <div>
            <h4 className="font-display text-sm font-bold text-white uppercase tracking-wider mb-5">
              Our Company
            </h4>
            <ul className="space-y-3">
              {[
                "About Us",
                "Properties",
                "Companies",
                "Magazine",
                "Blog",
                "Contact",
                "Careers",
              ].map((link) => (
                <li key={link}>
                  <a
                    href={`/${link.toLowerCase().replace(" ", "-")}`}
                    className="text-sm text-white/50 hover:text-primary transition-colors"
                  >
                    {link}
                  </a>
                </li>
              ))}
            </ul>
          </div>

          {/* Discover */}
          <div>
            <h4 className="font-display text-sm font-bold text-white uppercase tracking-wider mb-5">
              Discover Cities
            </h4>
            <ul className="space-y-3">
              {[
                "Nairobi",
                "Mombasa",
                "Kisumu",
                "Nakuru",
                "Eldoret",
                "Thika",
                "Nanyuki",
              ].map((city) => (
                <li key={city}>
                  <a
                    href="/properties"
                    className="text-sm text-white/50 hover:text-primary transition-colors"
                  >
                    {city}
                  </a>
                </li>
              ))}
            </ul>
          </div>

          {/* Contact Info */}
          <div>
            <h4 className="font-display text-sm font-bold text-white uppercase tracking-wider mb-5">
              Contact Information
            </h4>
            <ul className="space-y-3">
              <li className="text-sm text-white/50">
                Westlands Commercial Centre,
                <br />
                Nairobi, Kenya
              </li>
              <li>
                <a
                  href="tel:+254700000000"
                  className="text-sm text-white/50 hover:text-primary transition-colors"
                >
                  +254 700 000 000
                </a>
              </li>
              <li>
                <a
                  href="mailto:invest@diasporaproperty.com"
                  className="text-sm text-white/50 hover:text-primary transition-colors"
                >
                  invest@diasporaproperty.com
                </a>
              </li>
            </ul>
          </div>
        </div>

        {/* Bottom Bar */}
        <div className="pt-8 flex flex-col sm:flex-row items-center justify-between gap-4">
          <p className="text-sm text-white/40">
            Copyright © 2026 Diaspora Property Magazine. All Rights Reserved.
          </p>
          <div className="flex items-center gap-4">
            <a href="#" className="w-9 h-9 border border-white/20 flex items-center justify-center text-white/50 hover:bg-primary hover:border-primary hover:text-white transition-all">
              <svg viewBox="0 0 24 24" className="w-3.5 h-3.5" fill="currentColor"><path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"/></svg>
            </a>
            <a href="#" className="w-9 h-9 border border-white/20 flex items-center justify-center text-white/50 hover:bg-primary hover:border-primary hover:text-white transition-all">
              <svg viewBox="0 0 24 24" className="w-3.5 h-3.5" fill="currentColor"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>
            </a>
            <a href="#" className="w-9 h-9 border border-white/20 flex items-center justify-center text-white/50 hover:bg-primary hover:border-primary hover:text-white transition-all">
              <svg viewBox="0 0 24 24" className="w-3.5 h-3.5" fill="currentColor"><path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"/></svg>
            </a>
            <a href="#" className="w-9 h-9 border border-white/20 flex items-center justify-center text-white/50 hover:bg-primary hover:border-primary hover:text-white transition-all">
              <svg viewBox="0 0 24 24" className="w-3.5 h-3.5" fill="currentColor"><path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z"/></svg>
            </a>
          </div>
          <div className="flex gap-6 text-sm text-white/40">
            <a href="/terms" className="hover:text-white transition-colors">
              Terms & Conditions
            </a>
            <a href="/privacy" className="hover:text-white transition-colors">
              Privacy Policy
            </a>
          </div>
        </div>
      </div>
    </footer>
  );
}
