"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from "@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay";
import TestimonialCardTwelve from "@/components/sections/testimonial/TestimonialCardTwelve";
import MetricCardTen from "@/components/sections/metrics/MetricCardTen";
import ContactText from "@/components/sections/contact/ContactText";
import FooterBaseCard from "@/components/sections/footer/FooterBaseCard";
import { Star } from "lucide-react";

export default function ReviewsPage() {
  const navItems = [
    { name: "Home", id: "home" },
    { name: "Services", id: "services" },
    { name: "About", id: "about" },
    { name: "Reviews", id: "reviews" },
    { name: "Service Areas", id: "service-areas" },
    { name: "Contact", id: "contact" },
  ];

  const footerColumns = [
    {
      title: "Services",
      items: [
        { label: "Plumbing Repair", href: "/services#plumbing" },
        { label: "Drain Cleaning", href: "/services#drain" },
        { label: "Water Heater Service", href: "/services#heater" },
        { label: "Electrical Repairs", href: "/services#electrical" },
      ],
    },
    {
      title: "Company",
      items: [
        { label: "About Us", href: "/about" },
        { label: "Customer Reviews", href: "/reviews" },
        { label: "Service Areas", href: "#service-areas" },
        { label: "Contact Us", href: "/contact" },
      ],
    },
    {
      title: "Contact",
      items: [
        { label: "Call: +1 (657) 439-3277", href: "tel:+16574393277" },
        { label: "24/7 Emergency Service", href: "tel:+16574393277" },
        { label: "Licensed & Insured", href: "#" },
        { label: "Request Service", href: "/contact" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="smallMedium"
      sizing="large"
      background="noise"
      cardStyle="glass-depth"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Dickerson Plumbing & Electrical"
          navItems={navItems}
          button={{
            text: "Call Now",
            href: "tel:+16574393277",
          }}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwelve
          cardTitle="What Customers Are Saying"
          cardTag="Verified Reviews"
          cardTagIcon={Star}
          cardAnimation="blur-reveal"
          useInvertedBackground={true}
          testimonials={[
            {
              id: "testimonial-1",
              name: "Sarah Johnson",
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-businessmen-office_1098-240.jpg",
            },
            {
              id: "testimonial-2",
              name: "Michael Chen",
              imageSrc: "http://img.b2bpic.net/free-photo/woman-with-thumbs-up_1149-1163.jpg",
            },
            {
              id: "testimonial-3",
              name: "Emily Rodriguez",
              imageSrc: "http://img.b2bpic.net/free-photo/businesswoman-taking-selfie-work_23-2148826501.jpg",
            },
            {
              id: "testimonial-4",
              name: "David Kim",
              imageSrc: "http://img.b2bpic.net/free-photo/crazy-hippie-man-happy-expression_1194-3937.jpg",
            },
            {
              id: "testimonial-5",
              name: "Jessica Martinez",
              imageSrc: "http://img.b2bpic.net/free-photo/cheerful-businessman-using-cellphone-laughing_1262-2965.jpg",
            },
            {
              id: "testimonial-6",
              name: "Robert Williams",
              imageSrc: "http://img.b2bpic.net/free-photo/indoor-portrait-gorgeous-young-caucasian-female-student-with-perfect-healthy-skin_273609-9035.jpg",
            },
          ]}
        />
      </div>

      <div id="review-stats" data-section="review-stats">
        <MetricCardTen
          title="Customer Review Summary"
          description="Thousands of satisfied customers rate Dickerson Plumbing & Electrical consistently high across all service categories."
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          metrics={[
            {
              id: "plumbing-rating",
              title: "Plumbing Services",
              subtitle: "Leak repair, drain cleaning, water heaters",
              category: "Avg Rating",
              value: "4.9/5 ⭐",
            },
            {
              id: "electrical-rating",
              title: "Electrical Services",
              subtitle: "Panel upgrades, troubleshooting, installations",
              category: "Avg Rating",
              value: "4.9/5 ⭐",
            },
            {
              id: "emergency-rating",
              title: "Emergency Response",
              subtitle: "24/7 availability and fast dispatch",
              category: "Avg Rating",
              value: "5.0/5 ⭐",
            },
            {
              id: "overall-rating",
              title: "Overall Satisfaction",
              subtitle: "Based on 1,500+ verified customer reviews",
              category: "Avg Rating",
              value: "4.9/5 ⭐",
            },
          ]}
        />
      </div>

      <div id="review-cta" data-section="review-cta">
        <ContactText
          text="Ready to Experience Dickerson Quality?"
          animationType="entrance-slide"
          background={{
            variant: "radial-gradient",
          }}
          useInvertedBackground={true}
          buttons={[
            {
              text: "Call Now: +1 (657) 439-3277",
              href: "tel:+16574393277",
            },
            {
              text: "Request Service Online",
              href: "/contact",
            },
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="Dickerson Plumbing & Electrical"
          copyrightText="© 2025 Dickerson Plumbing & Electrical. All rights reserved."
          columns={footerColumns}
        />
      </div>
    </ThemeProvider>
  );
}