"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroCarouselLogo from '@/components/sections/hero/heroCarouselLogo/HeroCarouselLogo';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import AboutMetric from '@/components/sections/about/AboutMetric';
import FeatureProcessSteps from '@/components/sections/feature/FeatureProcessSteps';
import ContactSplitForm from '@/components/sections/contact/ContactSplitForm';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Coffee, Users, Award, Heart, CheckCircle } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="small"
      sizing="largeSmall"
      background="floatingGradient"
      cardStyle="gradient-bordered"
      primaryButtonStyle="flat"
      secondaryButtonStyle="layered"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="Café Barcelona"
          navItems={[
            { name: "Menu", id: "products" },
            { name: "About", id: "about" },
            { name: "Specialty", id: "process" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Reserve Table",            href: "contact"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroCarouselLogo
          logoText="Café Barcelona"
          description="Step into a world of vintage charm and artisan craftsmanship. Experience authentic coffee culture in our cozy Barcelona café, where every cup tells a story."
          buttons={[
            { text: "Explore Our Menu", href: "products" },
            { text: "Our Story", href: "about" }
          ]}
          slides={[
            {
              imageSrc: "https://images.unsplash.com/photo-1442512595331-e89e30266358?w=1200&h=800&fit=crop",              imageAlt: "Cozy vintage café interior"
            },
            {
              imageSrc: "https://images.unsplash.com/photo-1495521821757-a1efb6729352?w=1200&h=800&fit=crop",              imageAlt: "Artisan coffee preparation"
            },
            {
              imageSrc: "https://images.unsplash.com/photo-1447933601403-0c6688de566e?w=1200&h=800&fit=crop",              imageAlt: "Vintage café seating"
            }
          ]}
          autoplayDelay={4000}
          showDimOverlay={true}
          logoLineHeight={1.05}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardOne
          title="Signature Coffee & Pastries"
          description="Discover our carefully curated selection of specialty coffees sourced from the finest roasters, paired with freshly baked pastries made daily using traditional recipes."
          products={[
            {
              id: "1",              name: "Barcelona Espresso",              price: "€3.50",              imageSrc: "https://images.unsplash.com/photo-1495521821757-a1efb6729352?w=500&h=500&fit=crop",              imageAlt: "Rich espresso shot"
            },
            {
              id: "2",              name: "Vintage Cappuccino",              price: "€4.50",              imageSrc: "https://images.unsplash.com/photo-1517668808822-9ebb02ae2a0e?w=500&h=500&fit=crop",              imageAlt: "Silky cappuccino with latte art"
            },
            {
              id: "3",              name: "House Blend Cold Brew",              price: "€4.00",              imageSrc: "https://images.unsplash.com/photo-1517701550927-30cf4ba53202?w=500&h=500&fit=crop",              imageAlt: "Refreshing cold brew coffee"
            },
            {
              id: "4",              name: "Almond Croissant",              price: "€3.75",              imageSrc: "https://images.unsplash.com/photo-1555507036-ab1f4038808a?w=500&h=500&fit=crop",              imageAlt: "Butter croissant with almonds"
            }
          ]}
          gridVariant="two-columns-alternating-heights"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="about" data-section="about">
        <AboutMetric
          title="A Legacy of Authentic Coffee Culture. Vintage charm meets modern passion for the perfect brew."
          metrics={[
            {
              icon: Coffee,
              label: "Years of Tradition",              value: "20+"
            },
            {
              icon: Users,
              label: "Coffee Lovers",              value: "10K+"
            },
            {
              icon: Award,
              label: "Award-Winning Blends",              value: "15+"
            },
            {
              icon: Heart,
              label: "Daily Visitors",              value: "500+"
            }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="process" data-section="process">
        <FeatureProcessSteps
          title="Our Coffee Journey"
          description="From bean selection to your cup, we honor every step of the coffee-making process with care and expertise passed down through generations."
          tag="Specialty Coffee"
          tagIcon={CheckCircle}
          steps={[
            {
              number: "01",              title: "Sourcing",              tag: "Global Selection",              description: "We partner with ethical coffee farmers from around the world, selecting only the finest, sustainably grown beans for our roastery."
            },
            {
              number: "02",              title: "Roasting",              tag: "Artisan Craft",              description: "Our master roasters carefully profile each batch, developing rich, balanced flavors that showcase the unique characteristics of each origin."
            },
            {
              number: "03",              title: "Grinding",              tag: "Precision",              description: "Fresh ground to order at the exact moment of brewing, ensuring maximum aroma and flavor extraction for your perfect cup."
            },
            {
              number: "04",              title: "Brewing",              tag: "Expert Technique",              description: "Our baristas use time-honored methods and modern precision to brew each cup to perfection, tailored to your preferences."
            }
          ]}
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplitForm
          title="Visit Us Today"
          description="Stop by our vintage café for a warm cup of coffee and the perfect escape from the bustle of Barcelona. We look forward to welcoming you."
          inputs={[
            {
              name: "name",              type: "text",              placeholder: "Your Name",              required: true
            },
            {
              name: "email",              type: "email",              placeholder: "Email Address",              required: true
            },
            {
              name: "phone",              type: "tel",              placeholder: "Phone Number",              required: false
            }
          ]}
          textarea={{
            name: "message",            placeholder: "Tell us about your visit or ask about our special events, catering, or private bookings...",            rows: 5,
            required: true
          }}
          buttonText="Send Message"
          imageSrc="https://images.unsplash.com/photo-1499750310107-5fef28a66643?w=600&h=600&fit=crop"
          imageAlt="Vintage café Barcelona seating"
          mediaPosition="right"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="Café Barcelona"
          copyrightText="© 2025 Café Barcelona | Vintage Coffee Culture"
          columns={[
            {
              title: "Menu",              items: [
                { label: "Coffee Selection", href: "products" },
                { label: "Pastries", href: "products" },
                { label: "Our Process", href: "process" }
              ]
            },
            {
              title: "About",              items: [
                { label: "Our Story", href: "about" },
                { label: "Coffee Culture", href: "process" },
                { label: "Contact Us", href: "contact" }
              ]
            },
            {
              title: "Visit",              items: [
                { label: "Barcelona, Spain", href: "#" },
                { label: "Hours & Info", href: "contact" },
                { label: "Reservations", href: "contact" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}
