"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroLogo from '@/components/sections/hero/HeroLogo';
import MediaSplitTabsAbout from '@/components/sections/about/MediaSplitTabsAbout';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import FeatureHoverPattern from '@/components/sections/feature/featureHoverPattern/FeatureHoverPattern';
import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterLogoReveal from '@/components/sections/footer/FooterLogoReveal';
import { Coffee, Zap, Heart } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="compact"
      sizing="largeSizeMediumTitles"
      background="aurora"
      cardStyle="gradient-radial"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Brew Haven"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About", id: "about" },
            { name: "Menu", id: "products" },
            { name: "Reviews", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Visit Us",            href: "contact"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogo
          logoText="Brew Haven"
          description="Artisan coffee crafted with passion. Premium beans, cozy ambiance, and unforgettable taste in every cup."
          buttons={[
            { text: "Explore Menu", href: "products" },
            { text: "Reserve Table", href: "contact" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/latte-coffee-cup_74190-1198.jpg"
          imageAlt="Freshly brewed specialty coffee"
          showDimOverlay={true}
          logoLineHeight={1.2}
        />
      </div>

      <div id="about" data-section="about">
        <MediaSplitTabsAbout
          title="Welcome to Brew Haven"
          description="Your destination for exceptional coffee experiences"
          tabs={[
            {
              id: "heritage",              label: "Our Heritage",              description: "Since 2015, Brew Haven has been dedicated to sourcing the finest single-origin coffee beans from sustainable farms across Ethiopia, Colombia, and Indonesia. We believe in transparency and direct relationships with our growers."
            },
            {
              id: "craft",              label: "Craft & Quality",              description: "Every espresso shot is pulled with precision on our vintage La Marzocco machine. Our baristas are certified specialists trained in the art of coffee extraction, temperature control, and milk steaming to create the perfect cup."
            },
            {
              id: "community",              label: "Community Hub",              description: "Brew Haven is more than coffee—it's a gathering place. With comfortable seating, free WiFi, and a curated atmosphere, we welcome freelancers, artists, friends, and neighbors to make this their second home."
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/parisian-coffee-shop-style-with-tasty-coffee-served-wooden-table-coffee-shop-design_482257-18283.jpg"
          imageAlt="Welcoming Brew Haven cafe interior with rustic charm"
          imagePosition="right"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardOne
          products={[
            {
              id: "1",              name: "Single Origin Espresso",              price: "$5.50",              imageSrc: "https://img.b2bpic.net/free-photo/high-angle-arrangement-with-black-coffee-cup_23-2148436991.jpg",              imageAlt: "Rich single origin espresso shot"
            },
            {
              id: "2",              name: "Creamy Cappuccino",              price: "$6.00",              imageSrc: "https://img.b2bpic.net/free-photo/double-espresso-coffee-mug-with-cinnamon-sticks-coffee-beans-wooden-board_181624-57338.jpg",              imageAlt: "Perfectly foamed cappuccino with latte art"
            },
            {
              id: "3",              name: "Cold Brew Concentrate",              price: "$5.25",              imageSrc: "https://img.b2bpic.net/free-photo/cup-aroma-coffee-with-coffee-beans-dark-board_114579-60410.jpg",              imageAlt: "Refreshing cold brew iced coffee"
            }
          ]}
          carouselMode="buttons"
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          title="Our Specialty Menu"
          description="Handcrafted beverages made with premium beans and expertise"
          tag="Coffee Selection"
          tagIcon={Coffee}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="signature-drinks" data-section="signature-drinks">
        <FeatureHoverPattern
          title="Signature Creations"
          description="Discover our most beloved drinks, crafted with precision and passion by our expert baristas"
          features={[
            {
              icon: Coffee,
              title: "Brew Haven Mocha",              description: "Rich espresso blended with smooth chocolate and velvety steamed milk, topped with a hint of cinnamon. A decadent favorite since day one."
            },
            {
              icon: Zap,
              title: "Macchiato Perfetto",              description: "Bold double espresso 'stained' with just a whisper of microfoam. For the purist who demands intensity and elegance in every sip."
            },
            {
              icon: Heart,
              title: "Flat White Dream",              description: "Velvety microfoam poured with precision over double espresso. Smooth, creamy, and dangerously easy to love. Our most ordered drink."
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          tag="Bestsellers"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwo
          testimonials={[
            {
              id: "1",              name: "Sarah Martinez",              role: "Marketing Manager",              testimonial: "Brew Haven has become my daily ritual. The quality is unmatched, and the baristas remember my order. This is authentic hospitality.",              imageSrc: "https://img.b2bpic.net/free-photo/front-view-cute-girl-looking-away_23-2148436134.jpg",              imageAlt: "Sarah Martinez, satisfied customer"
            },
            {
              id: "2",              name: "James Chen",              role: "Software Engineer",              testimonial: "Finally, a coffee shop that takes their craft seriously. The espresso is perfectly balanced, and the WiFi is reliable. Perfect workspace.",              imageSrc: "https://img.b2bpic.net/free-photo/mature-woman-smiling_1149-601.jpg",              imageAlt: "James Chen, loyal customer"
            },
            {
              id: "3",              name: "Emma Rodriguez",              role: "Artist",              testimonial: "The ambiance here inspires me. Cozy corners, excellent coffee, and the most welcoming staff. This is where my creativity flows.",              imageSrc: "https://img.b2bpic.net/free-photo/happy-beautiful-young-woman-standing-posing-co-working-coffee-shop-interior-looking-camera-smiling_74855-9955.jpg",              imageAlt: "Emma Rodriguez, creative customer"
            },
            {
              id: "4",              name: "Michael Thompson",              role: "Business Owner",              testimonial: "Brew Haven isn't just a coffee shop—it's a community. I've met incredible people here and conducted countless successful meetings.",              imageSrc: "https://img.b2bpic.net/free-photo/teen-age-youth-style-self-expression-concept-portrait-positive-happy-teenage-girl-with-bob-pinkish-hairstyle-facial-piercing-relaxing-indoors_343059-3781.jpg",              imageAlt: "Michael Thompson, business customer"
            },
            {
              id: "5",              name: "Lisa Park",              role: "University Professor",              testimonial: "The single-origin coffees are educational in themselves. Each cup tells a story. This is coffee with integrity and purpose.",              imageSrc: "https://img.b2bpic.net/free-photo/smiley-woman-posing-her-home_23-2148708980.jpg",              imageAlt: "Lisa Park, coffee enthusiast"
            },
            {
              id: "6",              name: "David Okonkwo",              role: "Photographer",              testimonial: "The aesthetic here is stunning. Every corner is Instagram-worthy, and the coffee is as beautiful as it photographs. Highly recommended.",              imageSrc: "https://img.b2bpic.net/free-photo/front-view-woman-looking-camera-office_23-2148218515.jpg",              imageAlt: "David Okonkwo, photographer"
            }
          ]}
          carouselMode="buttons"
          animationType="slide-up"
          title="What Our Customers Say"
          description="Join our growing community of coffee lovers who've made Brew Haven part of their daily lives"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          tag="Customer Love"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitText
          sideTitle="Frequently Asked Questions"
          sideDescription="Everything you need to know about Brew Haven and our coffee experience"
          faqs={[
            {
              id: "1",              title: "Where do you source your coffee beans?",              content: "We partner directly with sustainable farms in Ethiopia, Colombia, Indonesia, and Kenya. We visit our partner farms annually to ensure quality and fair practices. All our beans are single-origin and roasted in-house within 2 weeks of purchase for maximum freshness."
            },
            {
              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 our baristas are trained to handle dietary preferences and can customize any drink on our menu."
            },
            {
              id: "3",              title: "Can I book a private event or catering?",              content: "Yes! We offer catering services and can accommodate private events. Please email us at events@brewhaven.com or call (555) 123-4567 to discuss your specific needs and get a quote."
            },
            {
              id: "4",              title: "What are your operating hours?",              content: "We're open Monday-Friday 6:30 AM - 7:00 PM, Saturday 7:00 AM - 8:00 PM, and Sunday 8:00 AM - 6:00 PM. We're closed on major holidays. Check our website for holiday hours."
            },
            {
              id: "5",              title: "Do you have a loyalty program?",              content: "Yes! Join our Brew Haven Rewards program to earn points on every purchase. Get a free drink after 10 visits, exclusive discounts, and early access to limited edition seasonal drinks."
            },
            {
              id: "6",              title: "Is there free WiFi available?",              content: "Yes, we offer complimentary high-speed WiFi for all customers. No password needed—just connect and enjoy! We welcome remote workers, students, and freelancers."
            }
          ]}
          textPosition="left"
          useInvertedBackground="noInvert"
          animationType="smooth"
          showCard={true}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Visit Brew Haven"
          description="We'd love to see you! Stop by our cozy cafe for exceptional coffee, a warm smile, and a place that feels like home. Have questions? Get in touch."
          inputs={[
            {
              name: "name",              type: "text",              placeholder: "Your Name",              required: true
            },
            {
              name: "email",              type: "email",              placeholder: "Your Email",              required: true
            }
          ]}
          textarea={{
            name: "message",            placeholder: "What can we help you with? We'd love to hear your thoughts, questions, or catering inquiries.",            rows: 5,
            required: true
          }}
          useInvertedBackground="invertDefault"
          imageSrc="https://img.b2bpic.net/free-photo/lifestyle-people-carrying-puppy-bag_52683-100732.jpg"
          imageAlt="Brew Haven storefront and entrance"
          mediaPosition="right"
          buttonText="Send Message"
        />
      </div>

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