import React from 'react';
import { Link } from 'react-router-dom';
import { Button } from './ui/button';

const PublicFooter = () => {
  const loafLogo = `${process.env.PUBLIC_URL}/loaf-logo.png`;

  return (
    <>
      {/* Main Footer */}
      <footer className="bg-[#644c9f] px-16 py-0 flex items-center justify-center h-[420px]">
        <div className="border-t border-[rgba(0,0,0,0.1)] py-20 flex gap-30 items-center justify-center flex-1">
          <div className="w-[232px]">
            <img src={loafLogo} alt="LOAF Logo" className="w-[232px] h-[232px] object-contain" />
          </div>
          <nav className="flex gap-28 items-start justify-center w-[811px]">
            <div className="flex flex-col gap-2 w-[163px]">
              <div className="pb-4">
                <p className="text-white text-base font-semibold" style={{ fontFamily: "'Inter', sans-serif" }}>About</p>
              </div>
              <Link to="/about/history" className="text-[#ddd8eb] text-base font-medium hover:text-white transition-colors" style={{ fontFamily: "'Inter', sans-serif" }}>History</Link>
              <Link to="/about/mission-values" className="text-[#ddd8eb] text-base font-medium hover:text-white transition-colors" style={{ fontFamily: "'Inter', sans-serif" }}>Mission and Values</Link>
              <Link to="/about/board" className="text-[#ddd8eb] text-base font-medium hover:text-white transition-colors" style={{ fontFamily: "'Inter', sans-serif" }}>Board of Directors</Link>
            </div>
            <div className="flex flex-col gap-2 w-[148px]">
              <div className="pb-4">
                <p className="text-white text-base font-semibold" style={{ fontFamily: "'Inter', sans-serif" }}>Connect</p>
              </div>
              <Link to="/become-a-member" className="text-[#ddd8eb] text-base font-medium hover:text-white transition-colors" style={{ fontFamily: "'Inter', sans-serif" }}>Become a Member</Link>
              <a href="/#contact" className="text-[#ddd8eb] text-base font-medium hover:text-white transition-colors" style={{ fontFamily: "'Inter', sans-serif" }}>Contact Us</a>
              <a href="/#resources" className="text-[#ddd8eb] text-base font-medium hover:text-white transition-colors" style={{ fontFamily: "'Inter', sans-serif" }}>Resources</a>
            </div>
            <div className="flex flex-col gap-2 items-center w-[271px]">
              <div className="pb-4 w-full">
                <Link to="/donate">
                  <Button className="bg-[#ff9e77] hover:bg-[#ff8c64] text-[#48286e] rounded-full px-6 py-3 text-lg font-medium w-[217px]">
                    Donate
                  </Button>
                </Link>
              </div>
              <p className="text-[#ddd8eb] text-base font-medium text-center w-full" style={{ fontFamily: "'Inter', sans-serif" }}>
                LOAF is supported by<br />the Hollyfield Foundation
              </p>
            </div>
          </nav>
        </div>
      </footer>

      {/* Bottom Footer */}
      <footer className="bg-gradient-to-r from-[#48286e] to-[#644c9f] border-t border-[rgba(0,0,0,0.1)] px-16 py-6 flex justify-between items-center h-[76px]">
        <nav className="flex gap-8 items-center">
          <a href="/#terms" className="text-[#c5b4e3] text-base font-medium hover:text-white transition-colors" style={{ fontFamily: "'Inter', sans-serif" }}>
            Terms of Service
          </a>
          <a href="/#privacy" className="text-[#c5b4e3] text-base font-medium hover:text-white transition-colors" style={{ fontFamily: "'Inter', sans-serif" }}>
            Privacy Policy
          </a>
        </nav>
        <p className="text-[#c5b4e3] text-base font-medium" style={{ fontFamily: "'Inter', sans-serif" }}>
          © 2025 LOAF. All Rights Reserved.
        </p>
        <p className="text-[#c5b4e3] text-base font-medium" style={{ fontFamily: "'Inter', sans-serif" }}>
          Designed and Managed by{' '}
          <a href="https://konceptkit.com/" className="text-[#d1c3e9] underline hover:text-white transition-colors">
            Koncept Kit
          </a>
        </p>
      </footer>
    </>
  );
};

export default PublicFooter;
