'use client';

import Link from 'next/link';

const MASH_FEED = [
  { label: 'Particle size distribution studies', icon: 'fa-chart-bar' },
  { label: 'Mixing uniformity assessments',       icon: 'fa-sliders'   },
];

const PELLET_FEED = [
  { label: 'Pellet Durability Index (PDI)',                        icon: 'fa-medal'       },
  { label: 'Pellet hardness and physical quality',                 icon: 'fa-hammer'      },
  { label: 'Pelleting efficiency evaluation',                      icon: 'fa-gauge-high'  },
  { label: 'Post-pelleting enzyme activity recovery',              icon: 'fa-atom'        },
  { label: 'Direct-fed microbial (DSM) recovery post-pelleting',  icon: 'fa-bacteria'    },
  { label: 'Pellet disintegration and stability tests',            icon: 'fa-flask-vial'  },
];

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 FeedMillOperationsPage() {
  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">Feed Mill Operations</span>
          </nav>
          <h1>Feed Mill <em>Operations</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 — Mash Feed Production ─────────── */}
      <section className="brl-section">
        <div className="container">
          <div className="brl-section-head brl-head--green">
            <div className="brl-section-icon"><i className="fas fa-seedling" /></div>
            <h2>Research-Scale Mash Feed Production</h2>
          </div>
          <div className="brl-grid brl-grid--2">
            {MASH_FEED.map((item, i) => (
              <BrlCard key={i} label={item.label} icon={item.icon} accent="green" />
            ))}
          </div>
        </div>
      </section>

      {/* ── SECTION 2 — Pellet Feed Production ───────── */}
      <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-cubes" /></div>
            <h2>Research-Scale Pellet Feed Production</h2>
          </div>
          <div className="brl-grid brl-grid--3">
            {PELLET_FEED.map((item, i) => (
              <BrlCard key={i} label={item.label} icon={item.icon} accent="blue" />
            ))}
          </div>
        </div>
      </section>
    </>
  );
}
