import { ClipboardCheck, Download, Search, SquareCheckBig } from 'lucide-react';

import { SERIF } from './hubTheme';

const STEPS = [
  { icon: Search, title: 'Choose one skill', text: 'Use current classwork, a recent quiz or the skills tracker to identify one specific gap.' },
  { icon: Download, title: 'Attempt before checking', text: 'Print or save the worksheet, then solve without opening the worked solution first.' },
  { icon: ClipboardCheck, title: 'Find the first error', text: 'Compare methods line by line and classify the first incorrect step—not only the final answer.' },
  { icon: SquareCheckBig, title: 'Practise one related skill', text: 'Use the linked tutorial or choose the next worksheet only after the current method is secure.' },
];

export default function HubStudyPlan() {
  return (
    <section id="how-to-use" className="scroll-mt-16 bg-[#2D0A18] px-5 py-16 text-white lg:py-20">
      <div className="mx-auto max-w-6xl">
        <div className="mx-auto max-w-3xl text-center">
          <p className="text-[10px] font-bold uppercase tracking-[0.22em] text-[#D4AF37]">A short, repeatable routine</p>
          <h2 className="mt-2 text-2xl font-extrabold sm:text-3xl" style={{ fontFamily: SERIF }}>How to Use Your Free Study Pack</h2>
          <p className="mt-3 text-sm leading-6 text-white/70 sm:text-base">Twenty focused minutes with feedback is usually more useful than an unfocused stack of pages.</p>
        </div>
        <ol className="mt-9 grid gap-4 sm:grid-cols-2 lg:grid-cols-4">
          {STEPS.map((step, index) => (
            <li key={step.title} className="rounded-2xl border border-[#D4AF37]/30 bg-white/5 p-5">
              <div className="flex items-center justify-between">
                <step.icon className="h-6 w-6 text-[#D4AF37]" aria-hidden="true" />
                <span className="text-xs font-black text-[#D4AF37]">0{index + 1}</span>
              </div>
              <h3 className="mt-5 font-extrabold text-[#F5EDDC]">{step.title}</h3>
              <p className="mt-2 text-xs leading-6 text-white/65">{step.text}</p>
            </li>
          ))}
        </ol>
      </div>
    </section>
  );
}
