"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroLogoBillboardSplit from '@/components/sections/hero/HeroLogoBillboardSplit';
import MediaSplitTabsAbout from '@/components/sections/about/MediaSplitTabsAbout';
import FeatureCardTwentyOne from '@/components/sections/feature/FeatureCardTwentyOne';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterCard from '@/components/sections/footer/FooterCard';
import { Users, Coffee, Globe, Award, Instagram, Facebook, Twitter } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="mediumLarge"
      background="floatingGradient"
      cardStyle="solid"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Brew Haven"
          navItems={[
            { name: "Menu", id: "menu" },
            { name: "About", id: "about" },
            { name: "Location", id: "contact" },
            { name: "Visit Us", id: "https://www.google.com/maps" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoBillboardSplit
          logoText="BREW HAVEN"
          description="Experience the art of exceptional coffee. From hand-roasted beans to perfectly crafted espresso, discover your new favorite blend in our cozy café."
          buttons={[
            { text: "Explore Menu", href: "#menu" },
            { text: "Visit Us Today", href: "#contact" }
          ]}
          layoutOrder="default"
          imageSrc="https://img.b2bpic.net/free-photo/empty-wood-chair-restaurant_1339-5949.jpg"
          imageAlt="Coffee shop interior with warm ambiance"
          frameStyle="card"
          logoLineHeight={1.2}
        />
      </div>

      <div id="about" data-section="about">
        <MediaSplitTabsAbout
          title="Our Coffee Story"
          description="At Brew Haven, we're passionate about delivering the finest coffee experience."
          tabs={[
            {
              id: "sourcing",              label: "Ethical Sourcing",              description: "We partner with sustainable farms worldwide to source the highest quality, ethically-grown coffee beans that support farmers and protect the environment."
            },
            {
              id: "roasting",              label: "Artisan Roasting",              description: "Every batch is roasted in-house by our expert roasters. We take pride in bringing out the unique flavor profiles of each origin."
            },
            {
              id: "expertise",              label: "Barista Craft",              description: "Our trained baristas combine traditional techniques with modern precision to create consistently exceptional drinks every time."
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/cozy-cafe_1098-13854.jpg"
          imageAlt="Skilled barista preparing premium espresso"
          imagePosition="right"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="menu" data-section="menu">
        <FeatureCardTwentyOne
          title="Signature Menu"
          description="Discover our carefully curated selection of specialty drinks and food pairings, crafted to delight every coffee enthusiast."
          tag="Menu Highlights"
          accordionItems={[
            {
              id: "1",              title: "Single Origin Espressos",              content: "Experience pure origin flavors with our rotating selection of single-origin espressos sourced directly from renowned coffee regions around the world."
            },
            {
              id: "2",              title: "Specialty Lattes & Cappuccinos",              content: "Perfectly steamed milk combined with our signature espresso blends, including seasonal flavor variations and vegan alternatives."
            },
            {
              id: "3",              title: "Cold Brew & Iced Selections",              content: "Smooth cold brew concentrate and refreshing iced coffee drinks perfect for any season, served with premium milk alternatives."
            },
            {
              id: "4",              title: "Pastries & Food Pairing",              content: "Artisan pastries from local bakeries and freshly prepared food items designed to complement your coffee experience."
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/parisian-coffee-shop-style-with-tasty-coffee-served-wooden-table-coffee-shop-design_482257-18283.jpg"
          imageAlt="Beautifully crafted espresso-based drink"
          useInvertedBackground="invertDefault"
          mediaPosition="left"
          buttons={[
            { text: "View Full Menu", href: "#" }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardThree
          title="Brew Haven by Numbers"
          description="Join thousands of coffee lovers who've discovered their favorite blend with us."
          metrics={[
            {
              id: "1",              icon: Users,
              title: "Loyal Customers",              value: "8,500+"
            },
            {
              id: "2",              icon: Coffee,
              title: "Cups Served",              value: "125,000+"
            },
            {
              id: "3",              icon: Globe,
              title: "Origins Sourced",              value: "32"
            },
            {
              id: "4",              icon: Award,
              title: "Barista Awards",              value: "7"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="What Our Guests Love"
          description="Hear from coffee enthusiasts who've made Brew Haven their daily destination."
          showRating={true}
          testimonials={[
            {
              id: "1",              name: "Maria Rodriguez",              handle: "@mariacoffee",              testimonial: "The baristas here are true artists. Every drink is perfectly crafted and tastes incredible. This is my go-to spot!",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/woman-holding-coffee-cup-work-medium-shot_23-2149308464.jpg",              imageAlt: "Maria Rodriguez customer testimonial"
            },
            {
              id: "2",              name: "James Mitchell",              handle: "@jamism",              testimonial: "Best espresso I've had outside of Italy. The coffee sourcing philosophy is impressive and you taste the difference.",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-woman-holding-disposable-coffee-cup_107420-12333.jpg",              imageAlt: "James Mitchell customer testimonial"
            },
            {
              id: "3",              name: "Sophie Chen",              handle: "@sophiecoffee",              testimonial: "The atmosphere is so welcoming and calm. Perfect place to work, meet friends, or just enjoy an amazing coffee.",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/business-woman-standing-with-coffee-cup_23-2148095740.jpg",              imageAlt: "Sophie Chen customer testimonial"
            },
            {
              id: "4",              name: "David Thompson",              handle: "@davidthompson",              testimonial: "I've visited dozens of coffee shops and this is the only one where I can consistently taste the quality difference. Highly recommend!",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/elegant-woman-pink-jacket-spending-time-cafe_1157-32548.jpg",              imageAlt: "David Thompson customer testimonial"
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Newsletter"
          title="Join Our Coffee Community"
          description="Subscribe to our newsletter for exclusive deals, new blend announcements, and coffee brewing tips delivered to your inbox."
          imageSrc="https://img.b2bpic.net/free-photo/cafe-interior-with-orange-sofa-three-tables-three-black-chairs_181624-8624.jpg"
          imageAlt="Cozy coffee shop seating area"
          mediaPosition="right"
          useInvertedBackground="noInvert"
          inputPlaceholder="Your email address"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime. No spam, just great coffee content."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterCard
          logoText="BREW HAVEN"
          copyrightText="© 2025 Brew Haven Coffee | Crafted with passion for coffee lovers"
          socialLinks={[
            {
              icon: Instagram,
              href: "https://instagram.com/brewhaven",              ariaLabel: "Follow us on Instagram"
            },
            {
              icon: Facebook,
              href: "https://facebook.com/brewhaven",              ariaLabel: "Follow us on Facebook"
            },
            {
              icon: Twitter,
              href: "https://twitter.com/brewhaven",              ariaLabel: "Follow us on Twitter"
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}