'use client';

import Link from 'next/link';

const BREEDER_RESEARCH = [
  { label: 'Direct-fed microbial and probiotic supplementation', icon: 'fa-bacteria'     },
  { label: 'Phytase and multi-enzyme evaluation in breeder diets', icon: 'fa-atom'       },
  { label: 'Breeder-progeny carryover effect studies',             icon: 'fa-circle-nodes' },
];

const PARAMETERS = [
  { label: 'Fertility, hatchability, egg quality',          icon: 'fa-egg'           },
  { label: 'Mineral digestibility',                         icon: 'fa-gem'           },
  { label: 'Nutrient digestibility and feed efficiency',    icon: 'fa-scale-balanced' },
  { label: 'Immune competence and early-life health markers', icon: 'fa-shield-halved' },
];

type Accent = 'green' | 'blue' | 'teal';

function BrlCard({ label, icon, accent }: { label: string; icon: string; accent: Accent }) {
  return (
    <div className={`brl-card brl-card--${accent}`}>
      <div className="brl-card-icon">
        <i className={`fas ${icon}`} />
      </div>
      <p className="brl-card-title">{label}</p>
    </div>
  );
}

export default function BreederResearchPage() {
  return (
    <>
      {/* ── HERO ────────────────────────────────────── */}
      <div className="op-hero">
        <div className="op-hero-deco" aria-hidden="true">
          <svg className="deco-leaf-1" viewBox="0 0 200 300" fill="none">
            <path d="M100 10 C160 40 190 120 160 200 C130 280 40 290 20 220 C0 150 40 80 100 10Z" fill="#7abf9e"/>
            <path d="M100 50 C140 70 160 130 140 190 C120 250 60 260 40 200" stroke="#a9d4bc" strokeWidth="1.5" fill="none"/>
          </svg>
          <svg className="deco-leaf-2" viewBox="0 0 200 300" fill="none">
            <path d="M100 10 C160 40 190 120 160 200 C130 280 40 290 20 220 C0 150 40 80 100 10Z" fill="#7abf9e"/>
          </svg>
        </div>

        <div className="container op-hero-inner">
          <nav className="op-breadcrumb" aria-label="Breadcrumb">
            <Link href="/"         className="op-bc-item">Home</Link>
            <span className="op-bc-sep" aria-hidden="true">/</span>
            <Link href="/research" className="op-bc-item">Research</Link>
            <span className="op-bc-sep" aria-hidden="true">/</span>
            <span className="op-bc-item active">Breeder Facility</span>
          </nav>
          <h1>Breeder <em>Facility</em></h1>
        </div>

        <div className="op-hero-wave" aria-hidden="true">
          <svg viewBox="0 0 1440 60" preserveAspectRatio="none" fill="#fff">
            <path d="M0,40 C360,70 1080,10 1440,40 L1440,60 L0,60Z"/>
          </svg>
        </div>
      </div>

      {/* ── SECTION 1 — Breeder Research ─────────────── */}
      <section className="brl-section">
        <div className="container">
          <div className="brl-section-head brl-head--green">
            <div className="brl-section-icon"><i className="fas fa-egg" /></div>
            <h2>Breeder Research</h2>
          </div>
          <div className="brl-grid brl-grid--3">
            {BREEDER_RESEARCH.map((item, i) => (
              <BrlCard key={i} label={item.label} icon={item.icon} accent="green" />
            ))}
          </div>
        </div>
      </section>

      {/* ── SECTION 2 — Parameters Studied ───────────── */}
      <section className="brl-section brl-section--alt">
        <div className="container">
          <div className="brl-section-head brl-head--blue">
            <div className="brl-section-icon"><i className="fas fa-chart-line" /></div>
            <h2>Parameters Studied</h2>
          </div>
          <div className="brl-grid brl-grid--4">
            {PARAMETERS.map((item, i) => (
              <BrlCard key={i} label={item.label} icon={item.icon} accent="blue" />
            ))}
          </div>
        </div>
      </section>
    </>
  );
}
