"use client";

import Image from "next/image";
import Link from "next/link";
import { FaArrowRight, FaChargingStation, FaCompass } from "react-icons/fa";
import { LuCpu, LuPercent, LuActivity } from "react-icons/lu";
import Breadcrumb from "@/components/Common/Breadcrumb";
export default function Mrp11RelayDetail() {

  const salientFeatures = [
    {
      title: "5% High Sensitivity",
      desc: "Fine-tuned pickup thresholds capable of recognizing minute reverse current flows efficiently.",
      icon: <LuPercent className="w-5 h-5 text-cyan-600" />
    },
    {
      title: "Four Quadrant Operations",
      desc: "Complete comprehensive phase-angle vector monitoring across all operational conditions.",
      icon: <FaCompass className="w-5 h-5 text-cyan-600" />
    },
    {
      title: "Reactive Power Option",
      desc: "Convertible into a dedicated reverse reactive relay using an additional potential transformer.",
      icon: <LuActivity className="w-5 h-5 text-cyan-600" />
    },
    {
      title: "Flexible Voltage Input",
      desc: "Field-selectable 110V or 415V AC threshold configuration to match varying line parameters.",
      icon: <FaChargingStation className="w-5 h-5 text-cyan-600" />
    }
  ];

  return (
    <>
      <Breadcrumb
        pageName="MRP11 Reverse Power Relay"
        description="MRP11 Reverse Power Relay is a high-performance, single-phase, non-directional protective relay engineered specifically to safeguard power systems against devastating Over Current faults and Earth Fault anomalies."
      />
      <div className="min-h-screen bg-white text-slate-800 py-16 lg:py-24 xl:py-28 3xl:py-32 selection:bg-emerald-100 selection:text-cyan-600 w-full">
        {/* 👑 CRITICAL LARGE SCREEN REPAIR: Bounded maximum container width tailored for ultra-wide setups up to 1560px */}
        <div className="container mx-auto px-4 max-w-7xl 2xl:max-w-[1440px] 3xl:max-w-[1560px]">

          {/* ─── MAIN HERO SECTION: DETAILS & IMAGE ────────────────── */}
          <div className="grid grid-cols-1 lg:grid-cols-2 gap-12 xl:gap-16 items-center mb-24 3xl:mb-28">

            {/* Left Side: Technical Specifications & Application */}
            <div className="space-y-6 order-2 lg:order-1">
              {/* <span className="inline-flex items-center gap-1.5 rounded-full bg-slate-100 px-4 py-1.5 text-xs font-bold tracking-wider text-slate-600 uppercase border border-slate-200/80">
              <span className="h-2 w-2 rounded-full bg-emerald-500 animate-pulse" />
              Generator &amp; Grid Protection
            </span> */}

              <h1 className="text-3xl md:text-4xl xl:text-5xl 3xl:text-6xl font-black tracking-tight text-slate-900 leading-tight">
                MRP11  <br />
                <span className="text-cyan-500 font-extrabold text-xl md:text-2xl xl:text-3xl 3xl:text-4xl block mt-2">
                  REVERSE POWER RELAY
                </span>
              </h1>

              <div className="space-y-4 text-slate-600 text-sm md:text-base xl:text-lg leading-relaxed font-normal">
                <p>
                  The <strong className="text-slate-900 font-bold">MRP11</strong> is an advanced microcontroller-based, single-phase reverse power protective relay built with a dedicated high-precision measuring element.
                </p>
                <p>
                  Engineered with absolute vector locks, the relay operates exclusively for <strong className="text-slate-900 font-bold">pure active reverse power conditions</strong>. This robust internal filtering safeguards your architecture by completely avoiding spurious or false tripping scenarios induced by sudden power factor (PF) fluctuations within the electrical system.
                </p>

                <div className="pt-4 mt-2 border-t border-slate-100">
                  <h3 className="text-cyan-600 font-bold text-xs xl:text-sm uppercase tracking-wider mb-2">Primary Applications</h3>
                  <p className="text-slate-500 text-xs xl:text-sm leading-relaxed font-medium">
                    Ideally deployed for the crucial protection of active generators running parallel against motoring reverse power conditions. It serves as a dependable module in complex grid islanding schemes to rapidly register mains supply failure or block back-feeding power flow from localized small-scale micro-generators to the utility grid network.
                  </p>
                </div>
              </div>
            </div>

            {/* Right Side: Framed Asset Box (Proportional Constraint Array for Ultra-wides) */}
            <div className="order-1 lg:order-2 flex justify-center">
              <div className="relative w-full max-w-[440px] xl:max-w-[500px] 3xl:max-w-[540px] aspect-[4/3] rounded-3xl bg-slate-50 p-6 border border-slate-200/60 shadow-xs group hover:border-emerald-200 transition-all duration-300 flex items-center justify-center">
                <div className="relative w-full h-full min-h-[260px] xl:min-h-[300px]">
                  <Image
                    src="/images/mrp11-1.jpg"
                    alt="MRP11 Single Phase Reverse Power Relay Interface Layout"
                    fill
                    priority
                    className="object-contain filter drop-shadow-[0_6px_16px_rgba(0,0,0,0.03)] group-hover:scale-102 transition-transform duration-500"
                    sizes="(max-width: 768px) 100vw, (max-width: 1440px) 500px, 540px"
                  />
                </div>
              </div>
            </div>
          </div>

          {/* ─── GRID CARD SECTION: SALIENT FEATURES (Fluid 4-Column Grid Layout) ─── */}
          <div className="mb-24 xl:mb-28">
            <h2 className="text-xl xl:text-2xl font-bold text-slate-900 mb-8 flex items-center gap-3 border-b border-slate-100 pb-4">
              <span className="h-5 w-1 rounded-full bg-cyan-600" />
              Salient Operational Features
            </h2>

            <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 xl:gap-8">
              {salientFeatures?.map((feat, idx) => (
                <div
                  key={idx}
                  className="bg-slate-50/50 hover:bg-white text-slate-800 rounded-2xl p-6 xl:p-8 transition-all duration-300 border border-slate-200/60 hover:border-emerald-200 hover:shadow-[0_15px_40px_rgba(0,0,0,0.02)] flex flex-col justify-between group"
                >
                  <div>
                    <div className="flex items-center justify-between mb-4">
                      <h3 className="text-sm xl:text-base font-black text-slate-900 tracking-tight">{feat.title}</h3>
                      {/* Synchronized color state flip matching theme token triggers on hover */}
                      <div className="p-2.5 bg-white border border-slate-200/60 shadow-xs rounded-xl transition-all duration-300 group-hover:bg-cyan-500  group-hover:border-cyan-500 group-hover:text-white text-cyan-600">
                        {feat.icon}
                      </div>
                    </div>
                    <p className="text-xs xl:text-sm text-slate-500 leading-relaxed font-semibold">
                      {feat.desc}
                    </p>
                  </div>
                </div>
              ))}
            </div>
          </div>

          {/* ─── ACTION FOOTER SECTION: ENQUIRY CTA (Fluid Proportional Box) ─── */}
          <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 >
    </>
  );
}