"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroBillboardCarousel from '@/components/sections/hero/HeroBillboardCarousel';
import TextAbout from '@/components/sections/about/TextAbout';
import FeatureCardTwentyThree from '@/components/sections/feature/FeatureCardTwentyThree';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
import PricingCardThree from '@/components/sections/pricing/PricingCardThree';
import ContactFaq from '@/components/sections/contact/ContactFaq';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { Coffee, Leaf, MapPin, Star } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="mediumSmall"
      sizing="largeSizeMediumTitles"
      background="none"
      cardStyle="subtle-shadow"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="glass"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About", id: "about" },
            { name: "Menu", id: "products" },
            { name: "Reviews", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          brandName="BrewHaven"
          bottomLeftText="Located in Downtown"
          bottomRightText="hello@brewhaven.coffee"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardCarousel
          title="Welcome to BrewHaven"
          description="Discover the finest specialty coffee in a warm, welcoming atmosphere. Crafted by passionate baristas, served with care."
          background={{ variant: "sparkles-gradient" }}
          tag="Premium Coffee Shop"
          tagIcon={Coffee}
          buttons={[
            { text: "Explore Our Menu", href: "products" },
            { text: "Visit Us Today", href: "contact" }
          ]}
          mediaItems={[
            { imageSrc: "https://img.b2bpic.net/free-photo/apple-pie-cappuccino-wooden-table_501050-915.jpg", imageAlt: "Freshly brewed specialty coffee" },
            { imageSrc: "https://img.b2bpic.net/free-photo/table-set-dinning-table_1339-6425.jpg", imageAlt: "Cozy coffee shop interior" },
            { imageSrc: "https://img.b2bpic.net/free-photo/black-bearded-coffee-seller-pouring-coffee-shop_613910-443.jpg", imageAlt: "Expert barista preparing coffee" },
            { imageSrc: "https://img.b2bpic.net/free-photo/low-angle-male-employee-coffee-shop_23-2148366548.jpg", imageAlt: "Customers enjoying coffee together" },
            { imageSrc: "https://img.b2bpic.net/free-photo/dark-coffee-cup-wooden-table_1232-1152.jpg", imageAlt: "Morning coffee and pastry selection" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <TextAbout
          title="Crafted with passion, served with excellence. Every cup tells a story of quality, sustainability, and genuine connection."
          useInvertedBackground="invertDefault"
          buttons={[
            { text: "Learn Our Story", href: "about" },
            { text: "Browse Our Blends", href: "products" }
          ]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwentyThree
          title="Why Coffee Lovers Choose BrewHaven"
          description="Experience the perfect blend of quality, atmosphere, and expert craftsmanship"
          features={[
            {
              id: "1",              title: "Premium Specialty Blends",              tags: ["Single Origin", "Freshly Roasted"],
              imageSrc: "https://img.b2bpic.net/free-photo/close-up-tasty-cappuccino-with-milk_23-2148414059.jpg"
            },
            {
              id: "2",              title: "Expert Barista Craftsmanship",              tags: ["Trained Professionals", "Certified"],
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-waiter-making-cup-coffee_1170-577.jpg"
            },
            {
              id: "3",              title: "Warm, Inviting Atmosphere",              tags: ["Cozy Seating", "Perfect for Work"],
              imageSrc: "https://img.b2bpic.net/free-photo/table-set-dinning-table_1339-6420.jpg"
            },
            {
              id: "4",              title: "Sustainable & Ethical Sourcing",              tags: ["Fair Trade", "Eco-Friendly"],
              imageSrc: "https://img.b2bpic.net/free-photo/cup-coffee-spoon-wooden-table_107420-96310.jpg"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          tag="Our Commitment"
          tagIcon={Leaf}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardThree
          title="Our Signature Menu"
          description="From bold espressos to smooth seasonal blends, discover your new favorite coffee"
          products={[
            {
              id: "1",              name: "Dark Roast Espresso",              price: "$4.50",              imageSrc: "https://img.b2bpic.net/free-photo/cup-coffee-with-floral-decoration_1203-1628.jpg",              imageAlt: "Dark roast espresso blend"
            },
            {
              id: "2",              name: "Medium Roast Balance",              price: "$4.25",              imageSrc: "https://img.b2bpic.net/free-photo/cup-coffee-table-grey-background_1220-7312.jpg",              imageAlt: "Medium roast coffee blend"
            },
            {
              id: "3",              name: "Light Roast Bright",              price: "$4.75",              imageSrc: "https://img.b2bpic.net/free-photo/side-view-cup-with-creamy-cappuccino-latte-with-milky-foam-top-leaf-shape-isolated-wooden-plate-with-pattern-table-cafe-shop-presentation_346278-1479.jpg",              imageAlt: "Light roast coffee blend"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFive
          title="What Our Coffee Lovers Say"
          description="Join our community of satisfied customers who visit BrewHaven daily"
          testimonials={[
            {
              id: "1",              name: "Sarah Johnson, Daily Regular",              date: "Date: 15 January 2025",              title: "The best coffee spot in town!",              quote: "I've been coming to BrewHaven for over a year now. The quality of their coffee is unmatched, and the baristas always remember my order. It's become my favorite morning ritual.",              tag: "Regular Customer",              avatarSrc: "https://img.b2bpic.net/free-photo/male-barista-preparing-cappuccino-coffee-shop_1303-29343.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/low-angle-male-employee-coffee-shop_23-2148366548.jpg"
            },
            {
              id: "2",              name: "Michael Chen, Business Owner",              date: "Date: 10 January 2025",              title: "Perfect workspace atmosphere",              quote: "BrewHaven is my go-to spot for meetings and focused work. The ambiance is perfect, the WiFi is reliable, and the coffee keeps me motivated throughout the day.",              tag: "Business Professional",              avatarSrc: "https://img.b2bpic.net/free-photo/young-barista-eyeglasses-cap-standing-bar-counter-preparing-pour-coffee-while-working-cafe_574295-3460.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/table-set-dinning-table_1339-6425.jpg"
            },
            {
              id: "3",              name: "Emma Rodriguez, Food Blogger",              date: "Date: 5 January 2025",              title: "Exceptional quality and care",              quote: "Every cup at BrewHaven is crafted with precision and passion. You can taste the difference in their specialty blends. This is what premium coffee should taste like.",              tag: "Coffee Enthusiast",              avatarSrc: "https://img.b2bpic.net/free-photo/portrait-smiling-waitress-using-coffee-machine_107420-12297.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/black-bearded-coffee-seller-pouring-coffee-shop_613910-443.jpg"
            },
            {
              id: "4",              name: "James Park, Student",              date: "Date: 20 December 2024",              title: "My study haven",              quote: "As a student, BrewHaven has become my second home. The welcoming staff, great coffee, and comfortable seating make it the perfect place to study and socialize with friends.",              tag: "Student",              avatarSrc: "https://img.b2bpic.net/free-photo/high-angle-business-man-working_23-2148366589.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/dark-coffee-cup-wooden-table_1232-1152.jpg"
            },
            {
              id: "5",              name: "Lisa Anderson, Coffee Aficionado",              date: "Date: 15 December 2024",              title: "Sustainable and delicious",              quote: "I love that BrewHaven sources their beans ethically and sustainably. Knowing my coffee is helping farmers around the world while tasting incredible makes me a loyal customer.",              tag: "Sustainability Advocate",              avatarSrc: "https://img.b2bpic.net/free-photo/young-man-working-with-coffee-machine-bar-counter-restaurant-barista-apron-white-shirt-making-coffee-by-coffee-machine-cafe-boy-working-as-barista-coffee-shop_574295-4942.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-tasty-cappuccino-with-milk_23-2148414059.jpg"
            },
            {
              id: "6",              name: "David Martinez, Entrepreneur",              date: "Date: 10 December 2024",              title: "Where quality meets community",              quote: "BrewHaven isn't just a coffee shop; it's a community hub. The baristas are knowledgeable, friendly, and genuinely care about their craft. This is what makes it special.",              tag: "Entrepreneur",              avatarSrc: "https://img.b2bpic.net/free-photo/side-view-plus-size-man-working-as-barista_23-2150754681.jpg",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-waiter-making-cup-coffee_1170-577.jpg"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardThree
          title="Our Loyalty Program"
          description="Join BrewHaven Rewards and enjoy exclusive benefits with every visit"
          plans={[
            {
              id: "1",              price: "Free",              name: "Member",              buttons: [
                { text: "Sign Up Today", href: "contact" }
              ],
              features: [
                "Free loyalty card",                "Earn points with every purchase",                "Monthly specials and promotions",                "Birthday bonus points"
              ]
            },
            {
              id: "2",              badge: "Most Popular",              badgeIcon: Star,
              price: "$15/month",              name: "Premium Plus",              buttons: [
                { text: "Join Now", href: "contact" }
              ],
              features: [
                "Everything in Member, plus:",                "Free medium coffee weekly",                "10% off all purchases",                "Priority during rush hours",                "Exclusive member-only blends"
              ]
            },
            {
              id: "3",              price: "$30/month",              name: "Coffee Connoisseur",              buttons: [
                { text: "Become VIP", href: "contact" }
              ],
              features: [
                "Everything in Premium Plus, plus:",                "Free large coffee daily",                "15% off all purchases",                "Personal barista consultation",                "Unlimited pastry swaps"
              ]
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactFaq
          faqs={[
            {
              id: "1",              title: "What are your business hours?",              content: "We're open Monday through Friday from 6:00 AM to 8:00 PM, Saturday from 7:00 AM to 9:00 PM, and Sunday from 8:00 AM to 7:00 PM. We're closed on major holidays."
            },
            {
              id: "2",              title: "Do you offer online ordering?",              content: "Yes! You can pre-order your favorite drinks and pastries through our website or mobile app for convenient pickup. Orders placed before 2 PM are ready within 15 minutes."
            },
            {
              id: "3",              title: "Can I host a private event at BrewHaven?",              content: "Absolutely! We have a private event space perfect for small gatherings, meetings, or celebrations. Contact us to discuss your event needs and custom catering options."
            },
            {
              id: "4",              title: "Do you have vegan and dairy-free options?",              content: "Yes, we offer oat, almond, coconut, and soy milk alternatives for all our beverages. Many of our pastries are vegan-friendly. Ask our baristas for recommendations!"
            },
            {
              id: "5",              title: "Where do you source your coffee beans?",              content: "We partner with ethical, fair-trade coffee farms across Central America, East Africa, and Southeast Asia. All our beans are sustainably sourced and roasted fresh in-house weekly."
            }
          ]}
          ctaTitle="Ready to Visit?"
          ctaDescription="Stop by BrewHaven and experience coffee excellence. We're located in downtown, just a short walk away."
          ctaButton={{ text: "Get Directions", href: "contact" }}
          ctaIcon={MapPin}
          useInvertedBackground="noInvert"
          animationType="slide-up"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple
          columns={[
            {
              title: "Navigate",              items: [
                { label: "Home", href: "hero" },
                { label: "About Us", href: "about" },
                { label: "Menu", href: "products" },
                { label: "Rewards", href: "pricing" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Facebook", href: "https://facebook.com" },
                { label: "Contact Us", href: "contact" },
                { label: "Careers", href: "https://brewhaven.coffee/careers" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "FAQs", href: "contact" },
                { label: "Gift Cards", href: "https://brewhaven.coffee/gift-cards" },
                { label: "Catering", href: "https://brewhaven.coffee/catering" },
                { label: "Feedback", href: "https://brewhaven.coffee/feedback" }
              ]
            }
          ]}
          bottomLeftText="© 2025 BrewHaven Coffee. All rights reserved."
          bottomRightText="Crafted with care for coffee lovers."
        />
      </div>
    </ThemeProvider>
  );
}