"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleMinimal from '@/components/navbar/NavbarStyleMinimal';
import HeroBillboard from '@/components/sections/hero/HeroBillboard';
import MediaSplitTabsAbout from '@/components/sections/about/MediaSplitTabsAbout';
import FeatureHoverPattern from '@/components/sections/feature/featureHoverPattern/FeatureHoverPattern';
import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Coffee, Leaf, Zap, Users, Heart, Star, MessageSquare } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="compact"
      sizing="largeSmallSizeMediumTitles"
      background="circleGradient"
      cardStyle="outline"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="layered"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleMinimal
          brandName="Brew Haven"
          button={{
            text: "Reserve a Table",            href: "contact"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboard
          title="Welcome to Brew Haven"
          description="Discover the perfect blend of exceptional coffee, warm hospitality, and a space that feels like home. Join us for fresh-roasted espresso and moments that matter."
          background={{ variant: "canvas-reveal" }}
          tag="Craft Coffee"
          tagIcon={Coffee}
          buttons={[
            { text: "View Menu", href: "features" },
            { text: "Visit Us", href: "contact" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/empty-wood-chair-restaurant_1339-5949.jpg"
          imageAlt="Cozy cafe interior with warm lighting and comfortable seating"
        />
      </div>

      <div id="about" data-section="about">
        <MediaSplitTabsAbout
          title="Our Story"
          description="From passion to your cup, we craft every coffee with intention."
          tabs={[
            {
              id: "mission",              label: "Our Mission",              description: "We are committed to sourcing the finest single-origin and specialty blend beans from ethical, sustainable farms worldwide. Every cup tells a story of craftsmanship and dedication."
            },
            {
              id: "expertise",              label: "Expert Baristas",              description: "Our team of certified baristas brings years of experience and passion for the art of coffee-making. We train continuously to perfect our craft and deliver consistent, exceptional quality."
            },
            {
              id: "community",              label: "Community Hub",              description: "Brew Haven is more than a cafe—it's a gathering place where ideas flourish, connections deepen, and community thrives. We host events, workshops, and create spaces for meaningful interactions."
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/parisian-coffee-shop-style-with-tasty-coffee-served-wooden-table-coffee-shop-design_482257-18283.jpg"
          imageAlt="Expert barista crafting specialty coffee with precision"
          imagePosition="right"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureHoverPattern
          features={[
            {
              icon: Leaf,
              title: "Ethically Sourced",              description: "We partner directly with sustainable farms, ensuring fair wages and environmental responsibility in every bean we source."
            },
            {
              icon: Zap,
              title: "Fresh Roasted Daily",              description: "Our in-house roasting ensures maximum freshness and flavor complexity in every cup you enjoy."
            },
            {
              icon: Users,
              title: "Welcoming Community",              description: "A vibrant space where locals, remote workers, and friends gather to connect, collaborate, and create memories."
            },
            {
              icon: Heart,
              title: "Artisan Quality",              description: "Every drink is crafted with attention to detail and passion, from espresso pulls to latte art designs."
            }
          ]}
          title="What Makes Us Special"
          description="Experience coffee crafted with care, served in a space designed for comfort and connection."
          tag="Premium Experience"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwelve
          testimonials={[
            {
              id: "1",              name: "Sarah Martinez",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg",              imageAlt: "Sarah Martinez portrait"
            },
            {
              id: "2",              name: "James Chen",              imageSrc: "https://img.b2bpic.net/free-photo/older-woman-with-thumb-up_1149-1162.jpg",              imageAlt: "James Chen portrait"
            },
            {
              id: "3",              name: "Emma Rodriguez",              imageSrc: "https://img.b2bpic.net/free-photo/happy-man-with-thumbs-up_1187-3144.jpg",              imageAlt: "Emma Rodriguez portrait"
            },
            {
              id: "4",              name: "Michael Thompson",              imageSrc: "https://img.b2bpic.net/free-photo/handsome-man-making-ok-sign_1368-6336.jpg",              imageAlt: "Michael Thompson portrait"
            }
          ]}
          cardTitle="Loved by our local community—over 2,000 loyal customers trust Brew Haven for their daily caffeine fix and favorite hangout spot"
          cardTag="Customer Favorites"
          cardTagIcon={Star}
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Get in Touch"
          tagIcon={MessageSquare}
          title="Visit Brew Haven Today"
          description="Whether you're stopping by for your morning espresso, working on your laptop, or meeting friends, we'd love to see you. Subscribe to our newsletter for special offers and event updates."
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/empty-wood-chair-restaurant_1339-5949.jpg"
          imageAlt="Brew Haven cafe storefront"
          mediaPosition="right"
          inputPlaceholder="Enter your email"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime. By subscribing, you'll receive our weekly newsletter with coffee tips, new menu items, and exclusive cafe events."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: "Cafe",              items: [
                { label: "Our Story", href: "about" },
                { label: "Menu", href: "features" },
                { label: "Events", href: "features" },
                { label: "Careers", href: "#" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Contact Us", href: "contact" },
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Facebook", href: "https://facebook.com" },
                { label: "Newsletter", href: "contact" }
              ]
            },
            {
              title: "Hours",              items: [
                { label: "Mon-Fri: 6am - 7pm", href: "#" },
                { label: "Sat-Sun: 7am - 8pm", href: "#" },
                { label: "123 Main Street", href: "#" },
                { label: "(555) 123-4567", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 Brew Haven Cafe. Crafted with ☕ and love for our community."
        />
      </div>
    </ThemeProvider>
  );
}