"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import TestimonialCardSixteen from "@/components/sections/testimonial/TestimonialCardSixteen";
import AboutMetric from "@/components/sections/about/AboutMetric";
import ContactSplitForm from "@/components/sections/contact/ContactSplitForm";
import FooterLogoReveal from "@/components/sections/footer/FooterLogoReveal";
import { Star, Smile, Zap } from "lucide-react";

export default function ReviewsPage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Services", id: "/services" },
    { name: "Reviews", id: "/reviews" },
    { name: "Gallery", id: "/gallery" },
    { name: "Contact", id: "/contact" },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="medium"
      sizing="largeSmall"
      background="circleGradient"
      cardStyle="glass-elevated"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="semibold"
    >
      {/* Navbar */}
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={navItems}
          brandName="Dynamite Plumbing"
          bottomLeftText="Hunt County, TX"
          bottomRightText="+1 469-410-2657"
        />
      </div>

      {/* Customer Reviews */}
      <div id="all-reviews" data-section="all-reviews">
        <TestimonialCardSixteen
          title="Trusted by Hunt County Homeowners"
          description="Discover why our customers consistently rate us 5 stars for service, quality, and professionalism"
          tag="Customer Reviews"
          tagAnimation="slide-up"
          testimonials={[
            {
              id: "1",
              name: "Jacob M.",
              role: "Property Owner",
              company: "Hunt County",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg?_wi=3",
              imageAlt: "Jacob M.",
            },
            {
              id: "2",
              name: "Sarah K.",
              role: "Homeowner",
              company: "Local Resident",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/closeup-young-female-professional-making-eye-contact-against-colored-background_662251-651.jpg?_wi=2",
              imageAlt: "Sarah K.",
            },
            {
              id: "3",
              name: "Michael T.",
              role: "Landlord",
              company: "Property Manager",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg?_wi=4",
              imageAlt: "Michael T.",
            },
            {
              id: "4",
              name: "Emily R.",
              role: "Homeowner",
              company: "Local Customer",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-businessman-suit-looking-camera-meeting_1163-4654.jpg?_wi=2",
              imageAlt: "Emily R.",
            },
          ]}
          kpiItems={[
            { value: "29+", label: "5-Star Reviews" },
            { value: "100%", label: "Satisfaction Rate" },
            { value: "2,000+", label: "Happy Customers" },
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          ariaLabel="Customer reviews section"
        />
      </div>

      {/* Review Stats */}
      <div id="review-stats" data-section="review-stats">
        <AboutMetric
          title="Our Commitment to Excellence"
          metrics={[
            { icon: Star, label: "Average Rating", value: "4.9/5.0" },
            { icon: Smile, label: "Customer Satisfaction", value: "99%+" },
            { icon: Zap, label: "Repeat Customers", value: "85%" },
            { icon: Star, label: "Years in Business", value: "15+" },
          ]}
          metricsAnimation="slide-up"
          useInvertedBackground={true}
          ariaLabel="Review statistics section"
        />
      </div>

      {/* Review Request */}
      <div id="review-request" data-section="review-request">
        <ContactSplitForm
          title="Share Your Experience"
          description="We'd love to hear about your experience with Dynamite Plumbing. Your feedback helps us serve better."
          inputs={[
            { name: "name", type: "text", placeholder: "Your Name", required: true },
            { name: "email", type: "email", placeholder: "Email Address", required: true },
            { name: "service_received", type: "text", placeholder: "Service Received", required: false },
            { name: "rating", type: "text", placeholder: "Rate Your Experience (1-5)", required: false },
          ]}
          textarea={{
            name: "review_text",
            placeholder: "Share your review and experience with our team...",
            rows: 5,
            required: true,
          }}
          buttonText="Submit Review"
          useInvertedBackground={false}
          mediaAnimation="slide-up"
          mediaPosition="right"
          imageSrc="http://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg?_wi=5"
          imageAlt="Happy customer"
          ariaLabel="Review submission form"
          onSubmit={(data) => {
            console.log("Review submitted:", data);
          }}
        />
      </div>

      {/* Footer */}
      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="Dynamite Plumbing"
          leftLink={{ text: "Privacy Policy", href: "/" }}
          rightLink={{ text: "Terms of Service", href: "/" }}
          ariaLabel="Site footer"
        />
      </div>
    </ThemeProvider>
  );
}