"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroSplitDualMedia from '@/components/sections/hero/HeroSplitDualMedia';
import FeatureCardSixteen from '@/components/sections/feature/FeatureCardSixteen';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import ContactText from '@/components/sections/contact/ContactText';
import MediaAbout from '@/components/sections/about/MediaAbout';
import MetricCardTen from '@/components/sections/metrics/MetricCardTen';
import FaqBase from '@/components/sections/faq/FaqBase';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import Link from 'next/link';
import { Leaf, Award, Sparkles, MapPin, Zap, HelpCircle, Star } from 'lucide-react';

export default function HomePage() {
  const navItems = [
    { name: "Home", id: "home" },
    { name: "Products", id: "products" },
    { name: "Bulk Orders", id: "bulk-orders" },
    { name: "Gallery", id: "gallery" },
    { name: "Contact", id: "contact" }
  ];

  const footerColumns = [
    {
      title: "Quick Links",
      items: [
        { label: "Home", href: "/" },
        { label: "Products", href: "/products" },
        { label: "Bulk Orders", href: "/bulk-orders" },
        { label: "Gallery", href: "/gallery" }
      ]
    },
    {
      title: "Contact",
      items: [
        { label: "📞 +91-98765-43210", href: "tel:+919876543210" },
        { label: "💬 WhatsApp Us", href: "https://wa.me/919876543210" },
        { label: "📍 Byculla West, Mumbai", href: "https://maps.google.com/?q=Byculla+Fruit+Market+Mumbai" },
        { label: "⏰ Open Daily until 10 PM", href: "#" }
      ]
    },
    {
      title: "Our Services",
      items: [
        { label: "Fresh Produce", href: "/products" },
        { label: "Bulk Orders", href: "/bulk-orders" },
        { label: "Wholesale Pricing", href: "/bulk-orders" },
        { label: "Seasonal Specialties", href: "/products" }
      ]
    },
    {
      title: "Trust & Reviews",
      items: [
        { label: "⭐ 4.1 Rating (1,781 reviews)", href: "#" },
        { label: "Local Business Since 2010", href: "#" },
        { label: "Trusted by 1000s", href: "#" },
        { label: "100% Fresh Guarantee", href: "#" }
      ]
    }
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="mediumSmall"
      sizing="mediumLarge"
      background="noiseDiagonalGradient"
      cardStyle="solid"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="layered"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Byculla Fruit Market"
          navItems={navItems}
        />
      </div>

      <div id="hero-home" data-section="hero-home">
        <HeroSplitDualMedia
          title="Fresh Fruits & Vegetables in Mumbai"
          description="Quality produce available daily at Byculla Fruit Market. We deliver farm-fresh fruits, vegetables, and seasonal specialties to your doorstep."
          tag="🌿 Trusted Local Market"
          tagIcon={Leaf}
          tagAnimation="blur-reveal"
          rating={4.1}
          ratingText="4.1★ from 1,781 customers"
          background={{ variant: "radial-gradient" }}
          buttons={[
            { text: "📞 Call Now", href: "tel:+919876543210" },
            { text: "💬 WhatsApp Order", href: "https://wa.me/919876543210" },
            { text: "📍 Get Directions", href: "https://maps.google.com/?q=Byculla+Fruit+Market+Mumbai" }
          ]}
          buttonAnimation="blur-reveal"
          mediaItems={[
            {
              imageSrc: "http://img.b2bpic.net/free-photo/overhead-view-fresh-raw-vegetables-wooden-desk_23-2147882045.jpg",
              imageAlt: "Fresh fruits and vegetables display"
            },
            {
              imageSrc: "http://img.b2bpic.net/free-photo/close-up-woman-holding-eggplant_23-2148238109.jpg",
              imageAlt: "Byculla market bustling atmosphere"
            }
          ]}
          mediaAnimation="blur-reveal"
          ariaLabel="Hero section showcasing fresh fruits and vegetables"
        />
      </div>

      <div id="why-choose-us" data-section="why-choose-us">
        <FeatureCardSixteen
          title="Why Choose Byculla Fruit Market?"
          description="Trusted by families, restaurants, and resellers across Mumbai for over a decade."
          tag="🏆 Local Trust"
          tagIcon={Award}
          tagAnimation="blur-reveal"
          textboxLayout="default"
          animationType="blur-reveal"
          useInvertedBackground={false}
          positiveCard={{
            items: [
              "✅ 4.1★ rating from 1,781 verified reviews",
              "✅ Fresh produce daily – farm to market",
              "✅ Convenient location in Byculla West, Chinchpokli",
              "✅ Bulk orders available at wholesale prices",
              "✅ Wide variety of seasonal fruits & vegetables",
              "✅ Fast service & friendly staff"
            ]
          }}
          negativeCard={{
            items: [
              "❌ No stale or low-quality produce",
              "❌ No hidden charges on bulk orders",
              "❌ No delays – pick up fresh same day",
              "❌ No compromise on freshness"
            ]
          }}
          buttons={[
            { text: "Order Bulk Now", href: "/bulk-orders" },
            { text: "View Products", href: "/products" }
          ]}
          buttonAnimation="blur-reveal"
          ariaLabel="Feature comparison section highlighting why choose us"
        />
      </div>

      <div id="popular-products" data-section="popular-products">
        <ProductCardFour
          title="Popular Produce"
          description="Fresh fruits and vegetables available year-round at competitive prices."
          tag="🍎 Fresh Daily"
          tagIcon={Sparkles}
          tagAnimation="blur-reveal"
          textboxLayout="default"
          animationType="blur-reveal"
          useInvertedBackground={false}
          gridVariant="three-columns-all-equal-width"
          products={[
            {
              id: "apples",
              name: "Fresh Apples",
              price: "₹80-120/kg",
              variant: "Red, Green, Golden",
              imageSrc: "http://img.b2bpic.net/free-photo/people-working-apple-orchard-picking-fruit-placing-them-into-basket_342744-600.jpg?_wi=1",
              imageAlt: "Fresh red apples"
            },
            {
              id: "bananas",
              name: "Yellow Bananas",
              price: "₹40-60/dozen",
              variant: "Ripe, Semi-Ripe",
              imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-smiley-man-with-bananas_23-2150830594.jpg?_wi=1",
              imageAlt: "Fresh yellow bananas"
            },
            {
              id: "mangoes",
              name: "Seasonal Mangoes",
              price: "₹100-150/kg",
              variant: "Alphonso, Kesar, Langra",
              imageSrc: "http://img.b2bpic.net/free-photo/high-angle-colorful-delicious-fruits_23-2149672989.jpg?_wi=1",
              imageAlt: "Fresh golden mangoes"
            },
            {
              id: "tomatoes",
              name: "Fresh Tomatoes",
              price: "₹30-50/kg",
              variant: "Firm, Ripe Red",
              imageSrc: "http://img.b2bpic.net/free-photo/heap-fresh-red-tomatoes-market_23-2147916087.jpg?_wi=1",
              imageAlt: "Fresh red tomatoes"
            },
            {
              id: "leafy",
              name: "Leafy Greens",
              price: "₹20-40/bunch",
              variant: "Spinach, Lettuce, Kale",
              imageSrc: "http://img.b2bpic.net/free-photo/wet-fresh-green-baby-spinach-leaves-wooden-background_169016-27765.jpg?_wi=1",
              imageAlt: "Fresh leafy green vegetables"
            },
            {
              id: "seasonal",
              name: "Seasonal Fruits",
              price: "Varies",
              variant: "Guava, Papaya, Grapes",
              imageSrc: "http://img.b2bpic.net/free-photo/top-view-composition-autumn-fruits-with-copy-space_23-2148634412.jpg?_wi=1",
              imageAlt: "Fresh seasonal produce"
            }
          ]}
          carouselMode="buttons"
          buttons={[
            { text: "📞 Order by Phone", href: "tel:+919876543210" },
            { text: "💬 WhatsApp", href: "https://wa.me/919876543210" }
          ]}
          buttonAnimation="blur-reveal"
          ariaLabel="Product section with fresh fruits and vegetables"
        />
      </div>

      <div id="testimonials-home" data-section="testimonials-home">
        <TestimonialCardThirteen
          title="What Customers Say"
          description="Thousands of satisfied families, restaurants, and businesses trust us for fresh produce."
          tag="⭐ Customer Reviews"
          tagIcon={Star}
          tagAnimation="blur-reveal"
          textboxLayout="default"
          animationType="blur-reveal"
          useInvertedBackground={false}
          showRating={true}
          carouselMode="buttons"
          testimonials={[
            {
              id: "test-1",
              name: "Priya Sharma",
              handle: "Local Family",
              testimonial: "Great variety of fruits and vegetables. Fresh produce at reasonable prices. We've been buying here for 5 years!",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-vector/people-speaking-different-languages-with-flat-design_23-2147864742.jpg",
              imageAlt: "Priya Sharma"
            },
            {
              id: "test-2",
              name: "Rahul Patel",
              handle: "Restaurant Owner",
              testimonial: "Excellent quality for bulk orders. Reliable supplier for our restaurant. Fast delivery and professional service.",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-smiley-man-posing_23-2148243624.jpg",
              imageAlt: "Rahul Patel"
            },
            {
              id: "test-3",
              name: "Anjali Gupta",
              handle: "Grocery Reseller",
              testimonial: "Best wholesale prices in Byculla. Always fresh stock. The team is very helpful with bulk orders.",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/portrait-pretty-woman-smiling_23-2148729681.jpg",
              imageAlt: "Anjali Gupta"
            },
            {
              id: "test-4",
              name: "Vikram Deshmukh",
              handle: "Family Customer",
              testimonial: "Busy market but good quality items. Direct from market means fresh! Recommended for serious produce buyers.",
              rating: 4,
              imageSrc: "http://img.b2bpic.net/free-photo/handsome-bearded-caucasian-man-white-polo-shirt_181624-51206.jpg",
              imageAlt: "Vikram Deshmukh"
            },
            {
              id: "test-5",
              name: "Meera Nair",
              handle: "Health-Conscious Buyer",
              testimonial: "Organic and pesticide-free options available. Staff is knowledgeable about seasonal produce. Very satisfied!",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/portrait-middle-aged-businesswoman_23-2148204378.jpg",
              imageAlt: "Meera Nair"
            },
            {
              id: "test-6",
              name: "Arjun Singh",
              handle: "Catering Business Owner",
              testimonial: "Perfect for bulk catering orders. Consistent quality and competitive pricing. Will definitely use again.",
              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/upbeat-saleswoman-hired-explain-vehicle-pricing-options-clients_482257-118422.jpg",
              imageAlt: "Arjun Singh"
            }
          ]}
          buttons={[
            { text: "📞 Call Now", href: "tel:+919876543210" },
            { text: "💬 WhatsApp Order", href: "https://wa.me/919876543210" }
          ]}
          buttonAnimation="blur-reveal"
          ariaLabel="Customer testimonials section"
        />
      </div>

      <div id="bulk-order-form" data-section="bulk-order-form">
        <ContactText
          text="Need Fresh Fruits & Vegetables Today? Place Your Bulk Order Now! Fill out the form below or call us directly."
          animationType="entrance-slide"
          background={{ variant: "radial-gradient" }}
          useInvertedBackground={false}
          buttons={[
            { text: "📞 Call +91-98765-43210", href: "tel:+919876543210" },
            { text: "💬 WhatsApp Order", href: "https://wa.me/919876543210" },
            { text: "📝 Fill Order Form", href: "/bulk-orders" }
          ]}
          ariaLabel="Contact section for bulk orders"
        />
      </div>

      <div id="location-section" data-section="location-section">
        <MediaAbout
          title="Visit Us Today!"
          description="Byculla Fruit Market, located in the heart of Byculla West, Chinchpokli, Mumbai, is open daily. We're just a short walk away! Fresh produce awaits you every day."
          tag="📍 Byculla West"
          tagIcon={MapPin}
          tagAnimation="blur-reveal"
          imageSrc="http://img.b2bpic.net/free-photo/assorted-mixed-fruits_74190-948.jpg"
          imageAlt="Byculla market produce display"
          useInvertedBackground={false}
          buttons={[
            { text: "📍 Get Directions", href: "https://maps.google.com/?q=Byculla+Fruit+Market+Mumbai" },
            { text: "📞 Call Market", href: "tel:+919876543210" }
          ]}
          buttonAnimation="blur-reveal"
          ariaLabel="Location and directions section"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple
          columns={footerColumns}
          bottomLeftText="© 2025 Byculla Fruit Market. All rights reserved."
          bottomRightText="Fresh Fruits & Vegetables | Local Market Trusted Since 2010"
          ariaLabel="Site footer"
        />
      </div>
    </ThemeProvider>
  );
}