"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroLogoBillboard from '@/components/sections/hero/HeroLogoBillboard';
import SplitAbout from '@/components/sections/about/SplitAbout';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import FeatureCardOne from '@/components/sections/feature/FeatureCardOne';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import ContactFaq from '@/components/sections/contact/ContactFaq';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Target, CheckCircle, Lightbulb, Zap, DollarSign, Star, Phone } from "lucide-react";

export default function AutoPartsPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="entrance-slide"
      borderRadius="sharp"
      contentWidth="smallMedium"
      sizing="largeSmallSizeMediumTitles"
      background="radialGradient"
      cardStyle="gradient-mesh"
      primaryButtonStyle="flat"
      secondaryButtonStyle="solid"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          brandName="AutoParts Pro"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About", id: "about" },
            { name: "Products", id: "products" },
            { name: "Features", id: "features" },
            { name: "Contact", id: "contact" }
          ]}
          bottomLeftText="Quality Auto Parts"
          bottomRightText="info@autopartspro.com"
        />
      </div>
      
      <div id="hero" data-section="hero">
        <HeroLogoBillboard
          logoText="AutoParts Pro"
          description="Your trusted source for quality automotive parts. Premium components, expert advice, and fast delivery for all your vehicle needs."
          imageSrc="https://img.b2bpic.net/free-photo/mechanics-repairing-car-workshop_329181-11800.jpg"
          imageAlt="Professional automotive engine parts"
          frameStyle="card"
        />
      </div>
      
      <div id="about" data-section="about">
        <SplitAbout
          title="About AutoParts Pro"
          description="We are dedicated to providing automotive professionals and enthusiasts with the highest quality parts and exceptional service."
          tag="Our Mission"
          tagIcon={Target}
          bulletPoints={[
            {
              title: "Premium Quality",              description: "Only authentic, certified automotive parts from trusted manufacturers",              icon: CheckCircle
            },
            {
              title: "Expert Knowledge",              description: "Knowledgeable staff ready to assist with technical questions and recommendations",              icon: Lightbulb
            },
            {
              title: "Fast Shipping",              description: "Quick delivery to get your vehicle back on the road faster",              icon: Zap
            },
            {
              title: "Competitive Pricing",              description: "Best value without compromising on quality or reliability",              icon: DollarSign
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/man-tries-repair-broken-car_661209-359.jpg"
          imageAlt="Professional automotive workshop"
          imagePosition="right"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>
      
      <div id="products" data-section="products">
        <ProductCardOne
          title="Featured Products"
          description="Browse our selection of high-quality automotive parts and components"
          tag="Best Sellers"
          tagIcon={Star}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          products={[
            {
              id: "1",              name: "Premium Brake Pads",              price: "$49.99",              imageSrc: "https://img.b2bpic.net/free-photo/worker-repairing-car-side-view_23-2150171257.jpg",              imageAlt: "Premium brake pads set"
            },
            {
              id: "2",              name: "High-Performance Oil Filter",              price: "$24.99",              imageSrc: "https://img.b2bpic.net/free-photo/mechanic-changing-brake-discs-car-service_1303-26910.jpg",              imageAlt: "Engine oil filter"
            },
            {
              id: "3",              name: "Heavy-Duty Car Battery",              price: "$129.99",              imageSrc: "https://img.b2bpic.net/free-photo/side-view-worker-repairing-car_23-2150171256.jpg",              imageAlt: "Car battery"
            },
            {
              id: "4",              name: "Durable Alternator",              price: "$189.99",              imageSrc: "https://img.b2bpic.net/free-photo/car-repair-garage_1170-1497.jpg",              imageAlt: "Vehicle alternator"
            }
          ]}
        />
      </div>
      
      <div id="features" data-section="features">
        <FeatureCardOne
          title="Why Choose Us"
          description="Experience the difference with our commitment to excellence and customer satisfaction"
          tag="Our Advantages"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          features={[
            {
              title: "Guaranteed Authenticity",              description: "All parts are 100% genuine with manufacturer warranties and certifications",              imageSrc: "https://img.b2bpic.net/free-photo/front-view-man-holding-ballot_23-2148265570.jpg",              imageAlt: "Quality assurance badge"
            },
            {
              title: "Rapid Delivery",              description: "Fast shipping available nationwide with tracking and insurance protection",              imageSrc: "https://img.b2bpic.net/free-photo/standard-quality-control-collage_23-2149631011.jpg",              imageAlt: "Fast delivery truck"
            },
            {
              title: "Expert Support",              description: "Professional technical support team available to answer all your questions",              imageSrc: "https://img.b2bpic.net/free-photo/business-man-showing-ok-sign_23-2148479592.jpg",              imageAlt: "Customer support representative"
            }
          ]}
        />
      </div>
      
      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="AutoParts Pro has become our go-to supplier for all automotive components. Their quality is unmatched and the customer service is exceptional. Highly recommended!"
          rating={5}
          author="John Martinez, Garage Owner"
          avatars={[
            {
              src: "https://img.b2bpic.net/free-photo/builder-man-wearing-construction-uniform-standing-with-arms-crossed-with-confident-smile-isolated-orange-wall_141793-14478.jpg",              alt: "John Martinez"
            },
            {
              src: "https://img.b2bpic.net/free-photo/portrait-confident-male-electrician-standing-against-wall_23-2148087578.jpg",              alt: "Sarah Johnson"
            },
            {
              src: "https://img.b2bpic.net/free-photo/smiling-mechanic-standing-repair-shop_1170-1348.jpg",              alt: "Michael Chen"
            },
            {
              src: "https://img.b2bpic.net/free-photo/young-mechanic-working-his-workshop_23-2148970733.jpg",              alt: "Emily Davis"
            }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>
      
      <div id="contact" data-section="contact">
        <ContactFaq
          ctaTitle="Get In Touch"
          ctaDescription="Questions about our products? Need technical advice? Our team is ready to help."
          ctaButton={{
            text: "Contact Us",            href: "mailto:info@autopartspro.com"
          }}
          ctaIcon={Phone}
          faqs={[
            {
              id: "1",              title: "What payment methods do you accept?",              content: "We accept all major credit cards, PayPal, bank transfers, and purchase orders for business accounts."
            },
            {
              id: "2",              title: "Do you offer warranty on parts?",              content: "Yes, all our parts come with manufacturer warranties. Specific warranty periods depend on the product category."
            },
            {
              id: "3",              title: "What is your return policy?",              content: "We offer 30-day returns on unopened, unused parts. Defective items can be replaced immediately upon verification."
            },
            {
              id: "4",              title: "How quickly can you ship orders?",              content: "Most orders ship within 24 hours. Standard shipping takes 3-5 business days. Expedited options available."
            },
            {
              id: "5",              title: "Can I get technical support for installation?",              content: "Our experts are available via phone and email to provide installation guidance and technical assistance."
            },
            {
              id: "6",              title: "Do you serve commercial accounts?",              content: "Yes, we offer wholesale pricing and bulk discounts for repair shops, dealerships, and fleet operators."
            }
          ]}
          useInvertedBackground="invertDefault"
          animationType="slide-up"
          accordionAnimationType="smooth"
        />
      </div>
      
      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: "Products",              items: [
                { label: "Engine Parts", href: "products" },
                { label: "Filters", href: "products" },
                { label: "Batteries", href: "products" },
                { label: "Electrical", href: "products" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "about" },
                { label: "Contact", href: "contact" },
                { label: "Blog", href: "blog" },
                { label: "Careers", href: "careers" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "FAQ", href: "contact" },
                { label: "Shipping Info", href: "shipping" },
                { label: "Returns", href: "returns" },
                { label: "Privacy Policy", href: "privacy" }
              ]
            }
          ]}
          copyrightText="© 2025 AutoParts Pro. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}