"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroBillboardRotatedCarousel from '@/components/sections/hero/HeroBillboardRotatedCarousel';
import MediaSplitTabsAbout from '@/components/sections/about/MediaSplitTabsAbout';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import MetricCardEleven from '@/components/sections/metrics/MetricCardEleven';
import TestimonialCardFifteen from '@/components/sections/testimonial/TestimonialCardFifteen';
import FaqBase from '@/components/sections/faq/FaqBase';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import { Coffee, Heart, TrendingUp, HelpCircle, Mail } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="medium"
      sizing="largeSmallSizeMediumTitles"
      background="none"
      cardStyle="gradient-bordered"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="solid"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Brew Haven"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About", id: "about" },
            { name: "Menu", id: "products" },
            { name: "Contact", id: "contact" },
            { name: "Order", id: "https://www.example.com/order" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardRotatedCarousel
          title="Brew Haven Coffee"
          description="Experience the finest specialty coffee crafted by passionate baristas. From light single-origin blends to rich espresso classics, discover your new favorite cup."
          tag="Premium Craft Coffee"
          tagIcon={Coffee}
          buttons={[
            { text: "Order Now", href: "https://www.example.com/order" },
            { text: "Learn More" }
          ]}
          carouselItems={[
            { id: "1", imageSrc: "https://img.b2bpic.net/free-photo/high-angle-glass-with-delicious-coffee_23-2149703761.jpg", imageAlt: "Fresh espresso shot" },
            { id: "2", imageSrc: "https://img.b2bpic.net/free-photo/delicious-coffee-with-milk_23-2147985001.jpg", imageAlt: "Creamy cappuccino" },
            { id: "3", imageSrc: "https://img.b2bpic.net/free-photo/close-up-tasty-coffee-morning_1232-811.jpg", imageAlt: "Cold brew coffee" },
            { id: "4", imageSrc: "https://img.b2bpic.net/free-photo/close-up-aromatic-coffee-plate_23-2148349623.jpg", imageAlt: "Chocolate mocha" },
            { id: "5", 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: "Espresso macchiato" },
            { id: "6", imageSrc: "https://img.b2bpic.net/free-photo/easter-coffee-decorations-still-life_23-2150244082.jpg", imageAlt: "Flat white coffee" }
          ]}
          autoPlay={true}
          autoPlayInterval={4000}
        />
      </div>

      <div id="about" data-section="about">
        <MediaSplitTabsAbout
          title="About Brew Haven"
          description="Where passion for coffee meets community spirit"
          tabs={[
            {
              id: "story",              label: "Our Story",              description: "Founded in 2015, Brew Haven began as a dream to bring exceptional third-wave coffee to our community. We source beans directly from sustainable farms and roast them fresh in our roastery to ensure every cup is perfection."
            },
            {
              id: "mission",              label: "Our Mission",              description: "We're committed to celebrating the art and science of coffee making. Our mission is to educate, inspire, and connect coffee lovers through expertly crafted beverages and a welcoming space for all."
            },
            {
              id: "community",              label: "Community",              description: "Brew Haven is more than a café—it's a gathering space. We host coffee cuppings, host local artists, and support neighborhood events. Every cup purchased supports our mission to build stronger communities."
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/empty-wood-chair-restaurant_1339-5949.jpg"
          imageAlt="Brew Haven café interior with cozy seating"
          imagePosition="right"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardFour
          title="Our Signature Drinks"
          description="Handcrafted beverages made with premium coffee and carefully selected ingredients"
          tag="Menu Favorites"
          tagIcon={Heart}
          textboxLayout="default"
          gridVariant="four-items-2x2-equal-grid"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          carouselMode="buttons"
          products={[
            {
              id: "1",              name: "Double Shot Espresso",              price: "$3.50",              variant: "Black, Pure, Bold",              imageSrc: "https://img.b2bpic.net/free-photo/delicious-cup-coffee-wooden-table_1232-414.jpg",              imageAlt: "Double shot espresso"
            },
            {
              id: "2",              name: "Silky Latte",              price: "$4.50",              variant: "Creamy, Smooth, Milk-Based",              imageSrc: "https://img.b2bpic.net/free-photo/espresso-cup-coffee-beans_1220-7116.jpg",              imageAlt: "Creamy latte with foam art"
            },
            {
              id: "3",              name: "Classic Cappuccino",              price: "$4.75",              variant: "Traditional, Balanced, Italian",              imageSrc: "https://img.b2bpic.net/free-photo/vintage-hot-coffee-cup-with-nice-latte-art-decoration-old-wooden-texture-table_1150-6312.jpg",              imageAlt: "Classic cappuccino with foam"
            },
            {
              id: "4",              name: "Americano",              price: "$3.75",              variant: "Rich, Full-Bodied, Smooth",              imageSrc: "https://img.b2bpic.net/free-photo/delicious-organic-latte-macchiato-with-milk_23-2148420330.jpg",              imageAlt: "Dark americano coffee"
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardEleven
          title="By The Numbers"
          description="See what makes Brew Haven the community's favorite coffee destination"
          tag="Our Impact"
          tagIcon={TrendingUp}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="slide-up"
          metrics={[
            {
              id: "1",              value: "15,000+",              title: "Happy Customers",              description: "Loyal coffee enthusiasts visit us monthly",              imageSrc: "https://img.b2bpic.net/free-photo/high-angle-glass-with-delicious-coffee_23-2149703761.jpg"
            },
            {
              id: "2",              value: "8 Years",              title: "In Business",              description: "Serving premium coffee since 2015",              imageSrc: "https://img.b2bpic.net/free-photo/empty-wood-chair-restaurant_1339-5949.jpg"
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardFifteen
          testimonial="Brew Haven has become my daily ritual. The quality of their coffee is unmatched, and the baristas truly care about perfecting each cup. It's more than just coffee—it's an experience."
          rating={5}
          author="Sarah Mitchell, Coffee Enthusiast"
          avatars={[
            { src: "https://img.b2bpic.net/free-photo/front-view-business-woman-suit_23-2148603018.jpg", alt: "Sarah Mitchell" },
            { src: "https://img.b2bpic.net/free-photo/happy-professional_1098-12931.jpg", alt: "James Chen" },
            { src: "https://img.b2bpic.net/free-photo/smiling-beautiful-middle-aged-business-woman_1262-3085.jpg", alt: "Emma Rodriguez" },
            { src: "https://img.b2bpic.net/free-photo/portrait-beautiful-business-office-business-center_1303-20365.jpg", alt: "Michael Thompson" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqBase
          title="Frequently Asked Questions"
          description="Find answers to common questions about Brew Haven and our services"
          tag="Help"
          tagIcon={HelpCircle}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="smooth"
          faqs={[
            {
              id: "1",              title: "What coffee beans do you use?",              content: "We source specialty coffee beans directly from sustainable farms around the world. Each month, we feature single-origin coffees and seasonal blends. All our beans are roasted fresh in-house to guarantee peak freshness and flavor."
            },
            {
              id: "2",              title: "Do you offer dairy-free options?",              content: "Absolutely! We offer oat milk, almond milk, soy milk, and coconut milk as alternatives. All milk alternatives are premium quality and complement our coffee perfectly. Ask your barista for recommendations."
            },
            {
              id: "3",              title: "Can I order wholesale coffee?",              content: "Yes! We offer wholesale pricing for offices, restaurants, and businesses. We can provide whole beans or pre-ground coffee. Contact us at wholesale@brewhaven.com for custom quotes and delivery options."
            },
            {
              id: "4",              title: "Do you offer barista training?",              content: "We offer barista workshops and latte art classes for coffee enthusiasts. Classes are held monthly on weekends. Visit our website or call us to book your spot and elevate your coffee skills."
            },
            {
              id: "5",              title: "What are your hours?",              content: "We're open Monday-Friday 6am-7pm, Saturday 7am-8pm, and Sunday 7am-6pm. We're closed on major holidays. Check our website for any seasonal hour adjustments or special events."
            },
            {
              id: "6",              title: "Do you have WiFi and seating?",              content: "Yes! We have free high-speed WiFi perfect for remote work, cozy seating areas, and a quiet zone for studying. We believe in creating a space where coffee lovers can connect, work, and relax."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Newsletter"
          title="Stay Brew-tiful with Our Newsletter"
          description="Subscribe to get exclusive offers, new menu launches, barista tips, and invites to special tasting events. Your inbox deserves better coffee."
          tagIcon={Mail}
          useInvertedBackground="noInvert"
          inputPlaceholder="Your email address"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime. No spam, just quality coffee updates and special offers."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="Brew Haven"
        />
      </div>
    </ThemeProvider>
  );
}