"use client";

import Image from "next/image";
import Link from "next/link";
import { FaArrowRight } from "react-icons/fa6";
import {
  LuShieldAlert,
  LuFlame,
  LuLayers,
  LuWrench,
  LuActivity
} from "react-icons/lu";
import Breadcrumb from "@/components/Common/Breadcrumb";
export default function HRCFuseLinkDetail() {

  const quickSpecs = [
    { label: "Product Type", val: "HRC Fuse Link Range" },
    { label: "Amperage Spectrum", val: "2A to 800A" },
    { label: "Standard Compliance", val: "IS 13703 / IEC 60269-2" },
    { label: "Status Telemetry", val: "Red Pop-Up Indicator" }
  ];

  const designFormfactors = [
    { type: "14x51 Cylindrical", rating: "2A to 800A Range", breakingCapacity: "80kA Fault Withstand" },
    { type: "DIN Type Standard", rating: "2A to 800A Range", breakingCapacity: "100kA Fault Withstand" },
    { type: "BS (British Standard)", rating: "2A to 800A Range", breakingCapacity: "80kA Fault Withstand" }
  ];

  const thermalPerformanceFeatures = [
    { title: "Optimized Fault Selectivity", detail: "Extremely low let-through energy value guarantees optimal discrimination coordination for cable sizing and downstream clearing devices." },
    { title: "Economical Power Dissipation", detail: "Engineered with low internal power loss parameters to lower ongoing running costs and restrict structural thermal emission." },
    { title: "Minimal Thermal Footprint", detail: "Reduced power dissipation forces minimum heating across the mounting busways, protecting adjacent panel insulation." },
    { title: "Conforms to Global Standards", detail: "The complete engineering spectrum fully complies with established IS 13703 (Part 2) and IEC 60269-2 validation protocols." }
  ];

  const hardwareComponents = [
    { name: "Red Pop-Up Signal Pin", detail: "Provides unmistakable, immediate localized visual confirmation once a fuse link has blown." },
    { name: "Compatible Fuse Bases", detail: "Heavy-duty matching carrier bases meticulously engineered to handle high short-circuit thermal stresses." },
    { name: "Fuse Pulling Handles", detail: "Insulated, specialized operator extraction tools to ensure swift and completely safe fuse link replacement." }
  ];

  return (
    <>
      <Breadcrumb pageName="HRC Fuse Link" description="HRC Fuse Link" />
      <div className="min-h-screen bg-white text-slate-800 py-16 lg:py-24 xl:py-28 selection:bg-blue-100 selection:text-blue-950">
        {/* Maximum structural width bounds optimized for global large presentation layouts */}
        <div className="container mx-auto px-4 sm:px-6 lg:px-8 xl:px-12 max-w-[1600px]">

          {/* ─── HERO & SYSTEM OVERVIEW ────────────────────────────── */}
          <div className="grid grid-cols-1 lg:grid-cols-12 gap-12 xl:gap-16 items-center mb-24 lg:mb-32">

            {/* Left Column: Context Narrative */}
            <div className="space-y-6 lg:col-span-7 order-2 lg:order-1">
              <span className="inline-flex items-center gap-1.5 rounded-full bg-slate-50 px-4 py-1.5 text-xs font-bold tracking-wider text-slate-600 uppercase border border-slate-200/60">
                High Breaking Capacity Protection
              </span>

              <h1 className="text-3xl md:text-4xl lg:text-5xl xl:text-6xl font-black tracking-tight text-slate-900 leading-tight uppercase">
                HRC Fuse Link <br />
                High-Capacity Range
                <span className="text-blue-600 font-extrabold text-lg md:text-xl lg:text-2xl xl:text-3xl block mt-2 normal-case tracking-wide">
                  Advanced Short-Circuit Suppression &amp; Low Energy Let-Through
                </span>
              </h1>

              <p className="text-slate-600 text-sm md:text-base xl:text-lg leading-relaxed font-medium max-w-4xl">
                Protect your infrastructure with the professional HRC Fuse Link range, engineered to deliver absolute short-circuit protection across wide power distribution layouts. Spanning an impressive coverage spectrum from 2A up to 800A, these high-rupturing-capacity fuse links are explicitly built to clear intense electrical faults within milliseconds. By heavily restricting destructive energy overflow, this lineup keeps upstream feeds secure and cuts downstream component stress to a minimum.
              </p>

              {/* Quick Metrics Reference Array */}
              <div className="grid grid-cols-2 md:grid-cols-4 gap-4 bg-slate-50/50 border border-slate-200/60 p-4 rounded-2xl shadow-xs">
                {quickSpecs.map((spec, idx) => (
                  <div key={idx} className="bg-white border border-slate-150 p-3 rounded-xl text-center shadow-xs">
                    <span className="text-[10px] text-slate-400 font-black uppercase tracking-widest block mb-1">{spec.label}</span>
                    <span className="text-xs font-black text-slate-900">{spec.val}</span>
                  </div>
                ))}
              </div>
            </div>

            {/* Right Column: Visual Frame */}
            <div className="lg:col-span-5 order-1 lg:order-2 flex justify-center lg:justify-end">
              <div className="relative w-full max-w-[500px] aspect-[4/3] rounded-3xl bg-slate-50 p-6 sm:p-10 border border-slate-200/60 shadow-xs flex items-center justify-center group/hero hover:border-blue-600 transition-all duration-300">
                <div className="relative w-full h-full min-h-[300px] xl:min-h-[340px]">
                  <Image
                    src="/images/Knudsen/fnx-s-d-f-2.jpg"
                    alt="High Breaking Capacity HRC Fuse Link featuring heavy ceramic body construction and metallic knife-edge terminals"
                    fill
                    priority
                    className="object-contain filter drop-shadow-[0_12px_32px_rgba(0,0,0,0.04)] group-hover/hero:scale-102 transition-transform duration-500"
                    sizes="(max-width: 1024px) 100vw, 500px"
                  />
                </div>
              </div>
            </div>
          </div>

          {/* ─── SECTION 1: FORM FACTORS & FAULT RATINGS ───────────── */}
          <div className="mb-24 lg:mb-32">
            <h2 className="text-xl font-black text-slate-900 mb-8 flex items-center gap-3 border-b border-slate-100 pb-4 uppercase tracking-wider">
              <span className="h-5 w-1 rounded-full bg-blue-600" />
              Execution Form Factors &amp; Breaking Capacities
            </h2>
            <div className="grid grid-cols-1 md:grid-cols-3 gap-6">
              {designFormfactors.map((item, idx) => (
                <div key={idx} className="bg-slate-50/50 border border-slate-200/60 rounded-3xl p-6 md:p-8 shadow-xs flex flex-col justify-between hover:border-blue-600 transition-all duration-300">
                  <div className="space-y-4">
                    <div className="p-3 bg-white border border-slate-200 rounded-2xl text-blue-600 shadow-xs w-fit font-black text-xs uppercase tracking-wider">
                      {item.type}
                    </div>
                    <div className="space-y-1.5">
                      <span className="text-[10px] text-slate-400 font-black uppercase tracking-widest block">Certified Range Support</span>
                      <div className="text-base font-black text-slate-900">{item.rating}</div>
                    </div>
                  </div>
                  <div className="mt-6 pt-4 border-t border-slate-200/60 flex items-center justify-between">
                    <span className="text-[10px] text-slate-400 font-black uppercase tracking-wider">Breaking Limit</span>
                    <span className="text-xs font-black text-red-600 bg-red-50 border border-red-100 px-3 py-1.5 rounded-xl flex items-center gap-1.5">
                      <LuFlame className="w-3.5 h-3.5" /> {item.breakingCapacity}
                    </span>
                  </div>
                </div>
              ))}
            </div>
          </div>

          {/* ─── SECTION 2: CONNOTATIVE ENERGY & THERMAL EFFICIENCY ── */}
          <div className="mb-24 lg:mb-32 bg-slate-900 text-white rounded-3xl p-8 md:p-12 xl:p-16 relative overflow-hidden shadow-xl border border-slate-950">
            <div className="absolute top-0 right-0 p-8 opacity-[0.03] pointer-events-none text-white">
              <LuActivity className="w-56 h-56" />
            </div>

            <div className="max-w-2xl mb-12">
              <div className="flex items-center gap-2.5 text-blue-400 mb-2">
                <LuShieldAlert className="w-4 h-4" />
                <span className="text-xs font-bold uppercase tracking-widest">Selectivity &amp; Thermal Diagnostics</span>
              </div>
              <h3 className="text-2xl font-black uppercase tracking-wide">Low Power Loss Architecture</h3>
              <p className="text-slate-400 text-xs md:text-sm mt-2 leading-relaxed font-medium">
                Engineered with advanced metallurgical elements, these fuse units minimize thermal dissipation to control switchboard running costs and isolate faults cleanly:
              </p>
            </div>

            <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 relative z-10">
              {thermalPerformanceFeatures.map((feat, idx) => (
                <div key={idx} className="bg-slate-800/40 border border-slate-700/30 rounded-xl p-5 flex flex-col justify-between space-y-3 hover:border-blue-600/30 transition-colors duration-200">
                  <div className="space-y-1">
                    <span className="text-blue-400 font-bold text-xs uppercase tracking-wide block">
                      {feat.title}
                    </span>
                    <p className="text-[11px] md:text-xs text-slate-300 leading-normal font-medium">
                      {feat.detail}
                    </p>
                  </div>
                </div>
              ))}
            </div>
          </div>

          {/* ─── SECTION 3: SYSTEM INTERACTIVE HARDWARE & ACCESSORIES ── */}
          <div className="mb-24 lg:mb-32">
            <div className="flex items-center gap-3 mb-8 border-b border-slate-100 pb-4">
              <div className="p-2.5 bg-slate-50 border border-slate-200 rounded-2xl text-blue-600 shadow-xs">
                <LuWrench className="w-5 h-5" />
              </div>
              <div>
                <h3 className="text-xl font-black text-slate-900 uppercase tracking-wide">Telemetry Indicators &amp; Mounting Elements</h3>
                <p className="text-xs text-slate-500 font-medium">Certified auxiliary switchgear items built for quick maintenance and continuous oversight.</p>
              </div>
            </div>

            <div className="grid grid-cols-1 md:grid-cols-3 gap-6">
              {hardwareComponents.map((component, idx) => (
                <div key={idx} className="bg-slate-50/50 border border-slate-200/60 rounded-2xl p-6 md:p-8 shadow-xs flex flex-col justify-between hover:border-blue-600/40 hover:bg-white hover:shadow-xl hover:shadow-slate-150/50 transition-all duration-300">
                  <div className="space-y-2">
                    <div className="flex items-center gap-2">
                      <span className="h-2 w-2 rounded-full bg-blue-600" />
                      <h4 className="font-black text-sm text-slate-900 uppercase tracking-wide">{component.name}</h4>
                    </div>
                    <p className="text-xs md:text-sm text-slate-500 font-medium leading-relaxed">{component.detail}</p>
                  </div>
                  <div className="mt-6 pt-4 border-t border-slate-100 flex items-center gap-1.5 text-[10px] text-slate-400 font-black uppercase tracking-wider">
                    <LuLayers className="w-3.5 h-3.5 text-slate-300" /> System Compatible Component
                  </div>
                </div>
              ))}
            </div>
          </div>

          {/* ─── GLOBAL PROCUREMENT CALL TO ACTION ─────────────────── */}

          <div className="flex justify-center">
            <Link href="/contact"
              className="inline-flex items-center gap-2 bg-cyan-500 hover:bg-cyan-600 text-white text-xs xl:text-sm font-bold px-10 py-4 rounded-full transition-all duration-200 active:scale-95 shadow-md shadow-cyan-500/10 w-full sm:w-auto justify-center uppercase tracking-wider"
            >
              Send Enquiry
              <FaArrowRight className="w-3.5 h-3.5" />
            </Link>
          </div>
        </div>
      </div>
    </>
  );
}