import { Facebook } from "lucide-react";
import { SiX } from "react-icons/si";
import logoBlack from "@assets/logo_black_1759165229646.png";

export default function Footer() {
  return (
    <footer className="bg-gray-50 border-t border-gray-200 mt-6">
        <div className="max-w-7xl mx-auto px-4 py-4">
          {/* Logo and Social Icons */}
          <div className="flex items-center justify-between mb-3">
            <div className="flex items-center">
              <img 
                src={logoBlack} 
                alt="SAPIENS" 
                className="h-8"
                data-testid="footer-logo"
              />
            </div>
            <div className="flex items-center space-x-2">
              <Facebook className="w-5 h-5 text-gray-600 hover:text-gray-900 cursor-pointer" data-testid="social-facebook" />
              <SiX className="w-5 h-5 text-gray-600 hover:text-gray-900 cursor-pointer" data-testid="social-x" />
            </div>
          </div>

          {/* Copyright and Links */}
          <div className="flex flex-col md:flex-row justify-between items-start md:items-center pt-3 border-t border-gray-200">
            <p className="text-xs text-gray-600 mb-2 md:mb-0" data-testid="copyright-text">
              © 2007-2025 - SAPIENS Media Limited. All Rights Reserved.
            </p>
            <div className="flex space-x-3">
              <a href="#" className="text-xs text-gray-600 hover:text-gray-900" data-testid="link-terms">Terms And Conditions</a>
              <a href="#" className="text-xs text-gray-600 hover:text-gray-900" data-testid="link-privacy">Privacy Policy</a>
              <a href="#" className="text-xs text-gray-600 hover:text-gray-900" data-testid="link-risk">Risk Warning</a>
            </div>
          </div>
        </div>
    </footer>
  );
}