import Link from "next/link";
import Marquee from "@/components/Marquee";

// CUSTOMIZATION HOOK: replace address / email placeholders & colophon below.
const links = [
  { href: "/", ko: "홈", en: "Home" },
  { href: "/members", ko: "구성원", en: "Members" },
  { href: "/publications", ko: "논문", en: "Publications" },
  { href: "/lectures", ko: "강의", en: "Lectures" },
  { href: "/standardization", ko: "표준화", en: "Standardization" },
];

export default function Footer() {
  return (
    <footer className="mt-0 border-t border-line bg-paper text-ink lg:mt-8">
      {/* Marquee band — colophon ticker */}
      <Marquee
        items={[
          "AI AGENT NETWORKING LAB",
          "A2A PROTOCOLS & ACP",
          "QUIC MULTI-AGENT ORCHESTRATION",
          "ISSUE 01 — 2026",
          "KYUNGPOOK NATIONAL UNIVERSITY",
        ]}
        reverse
        className="border-b border-line py-4 font-display text-lg tracking-wide text-ink/90"
      />

      <div className="container-content grid gap-12 py-16 lg:grid-cols-12">
        {/* Masthead title */}
        <div className="lg:col-span-5">
          <p className="kicker text-ink-mute">Colophon</p>
          <h3 className="headline-ko mt-3 text-2xl leading-snug text-ink">
            AI 에이전트 네트워크 연구실
          </h3>
          <p className="font-display mt-1 text-xl italic text-ink-soft">
            AI Agent Networking Lab (ANL)
          </p>
          <p className="mt-5 max-w-sm text-sm leading-relaxed text-ink-mute">
            경북대학교 컴퓨터학부<br />
            Kyungpook National University,<br />
            School of Computer Science and Engineering
          </p>
        </div>

        {/* Contact */}
        <div className="lg:col-span-4">
          <p className="kicker text-ink-mute">Contact</p>
          <address className="mt-3 not-italic text-sm leading-relaxed text-ink-soft">
            (41566) 대구광역시 북구 대학로 80<br />
            경북대학교 IT대학 5호관(415동) 527호<br />
            <a
              href="mailto:sjkoh@knu.ac.kr"
              className="draw-underline mt-2 inline-block text-ink hover:text-vermillion font-medium"
            >
              sjkoh@knu.ac.kr
            </a>
          </address>
        </div>

        {/* Index */}
        <div className="lg:col-span-3">
          <p className="kicker text-ink-mute">Index</p>
          <ul className="mt-3 space-y-2">
            {links.map((l, i) => (
              <li key={l.href} className="flex items-baseline gap-3">
                <span className="font-display text-xs text-ink-mute">
                  {String(i + 1).padStart(2, "0")}
                </span>
                <Link
                  href={l.href}
                  className="text-sm text-ink-soft transition hover:text-vermillion"
                >
                  {l.ko}{" "}
                  <span className="text-xs text-ink-mute">{l.en}</span>
                </Link>
              </li>
            ))}
          </ul>
        </div>
      </div>

      <div className="border-t border-line">
        <div className="container-content flex flex-col gap-2 py-5 sm:flex-row sm:items-center sm:justify-between">
          <p className="text-xs text-ink-mute">
            © {new Date().getFullYear()} AI 에이전트 네트워크 연구실 (ANL) · 경북대학교 컴퓨터학부. All rights reserved.
          </p>
          <p className="kicker text-ink-mute">Set in Fraunces · Noto Serif KR · Pretendard</p>
        </div>
      </div>
    </footer>
  );
}
