import React from 'react';
import Link from 'next/link';
import Image from 'next/image';
import logo from '@/assets/images/icon.png';

const Footer: React.FC = () => {
  return (
    <footer className="bg-[#0A0C12] pt-16 pb-8 border-t border-gray-800">
      <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
        <div className="grid grid-cols-2 md:grid-cols-2 gap-8 mb-12">
          {/* Brand Column */}
          <div className="col-span-1">
            <div className="flex items-center gap-2 mb-4">
              <Image
                src={logo}
                alt="Nemia Logo"
                width={24}
                height={24}
                className="rounded object-contain"
              />
              <span className="font-display font-bold text-lg text-white">
                Nemia
              </span>
            </div>
            <p className="text-sm text-gray-400 max-w-xs">
              Making learning inevitable through smart blocking and spaced repetition
            </p>
          </div>

          {/* Legal Links */}
          <div className="flex flex-col items-end">
            <h4 className="font-bold text-white mb-4">Legal</h4>
            <ul className="space-y-2 text-sm text-gray-400 text-right">
              <li><Link href="/privacy" className="hover:text-primary transition-colors">Privacy</Link></li>
              <li><Link href="#" className="hover:text-primary transition-colors">Terms</Link></li>
              <li><Link href="#" className="hover:text-primary transition-colors">Cookie Policy</Link></li>
            </ul>
          </div>
        </div>

        {/* Bottom Bar */}
        <div className="border-t border-gray-800 pt-8 flex flex-col md:flex-row justify-between items-center gap-4">
          <p className="text-sm text-gray-400">© 2026 Nemia Inc. All rights reserved.</p>
          <div className="flex space-x-6">
            <a href="https://x.com/matissjur" target="_blank" rel="noopener noreferrer" className="text-gray-400 hover:text-primary transition-colors">
              <span className="sr-only">X (formerly Twitter)</span>
              <svg
                viewBox="0 0 24 24"
                aria-hidden="true"
                className="w-5 h-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>
          </div>
        </div>
      </div>
    </footer>
  );
};

export default Footer;
