import { createFileRoute } from "@tanstack/react-router";
import { Header } from "@/components/site/Header";
import { Footer } from "@/components/site/Footer";
import { SignInModal, CartDrawer, CheckoutFlow } from "@/components/site/Modals";
import { useState } from "react";

export const Route = createFileRoute("/press")({
  head: () => ({
    meta: [{ title: "Press — SulejaMarket" }],
  }),
  component: PressPage,
});

function PressPage() {
  const [signInOpen, setSignInOpen] = useState(false);
  const [cartOpen, setCartOpen] = useState(false);
  const [checkoutOpen, setCheckoutOpen] = useState(false);

  return (
    <div className="min-h-screen bg-neutral-50 flex flex-col">
      <SignInModal open={signInOpen} onOpenChange={setSignInOpen} />
      <CartDrawer open={cartOpen} onOpenChange={setCartOpen} onCheckout={() => { setCartOpen(false); setCheckoutOpen(true); }} />
      <CheckoutFlow open={checkoutOpen} onOpenChange={setCheckoutOpen} />
      <Header onOpenCart={() => setCartOpen(true)} onOpenSignIn={() => setSignInOpen(true)} />
      
      <main className="flex-1 max-w-[800px] w-full mx-auto px-4 py-12">
        <h1 className="text-3xl font-bold mb-6 text-neutral-900">Press</h1>
        <div className="bg-white p-8 rounded-lg border prose max-w-none text-neutral-600">
          <p className="mb-4">Get the latest news and updates from SulejaMarket.</p>
          <p className="mb-4">For media inquiries, interviews, and press materials, please contact our PR team at <a href="mailto:press@sulejamarket.ng" className="text-orange-600 hover:underline">press@sulejamarket.ng</a>.</p>
          <h2 className="text-xl font-semibold mt-6 mb-2 text-neutral-900">Recent Press Releases</h2>
          <ul className="list-disc pl-5 space-y-2">
            <li>SulejaMarket Expands Same-Day Delivery to 5 New Cities (June 2026)</li>
            <li>SulejaMarket Partners with Top Tech Brands for Annual Tech Week (April 2026)</li>
            <li>SulejaMarket Reaches 1 Million Active Vendors (January 2026)</li>
          </ul>
        </div>
      </main>
      
      <Footer />
    </div>
  );
}
