"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import HeroBillboardScroll from '@/components/sections/hero/HeroBillboardScroll';
import TextAbout from '@/components/sections/about/TextAbout';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import MetricCardSeven from '@/components/sections/metrics/MetricCardSeven';
import TestimonialCardOne from '@/components/sections/testimonial/TestimonialCardOne';
import FaqBase from '@/components/sections/faq/FaqBase';
import ContactCenter from '@/components/sections/contact/ContactCenter';
import FooterCard from '@/components/sections/footer/FooterCard';
import { Award, Coffee, Facebook, Instagram, Twitter } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="medium"
      sizing="largeSmallSizeLargeTitles"
      background="aurora"
      cardStyle="glass-elevated"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="solid"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="Bean Haven"
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About", id: "about" },
            { name: "Menu", id: "products" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Order Now",            href: "products"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardScroll
          title="Welcome to Bean Haven"
          description="Experience the finest specialty coffee crafted with passion and expertise. From our ethically sourced beans to your perfect cup, every detail matters."
          tag="Artisan Coffee Culture"
          tagIcon={Coffee}
          background={{ variant: "aurora" }}
          imageSrc="https://img.b2bpic.net/free-photo/parisian-coffee-shop-style-with-tasty-coffee-served-wooden-table-coffee-shop-design_482257-18283.jpg"
          imageAlt="Cozy coffee shop interior with warm lighting"
          buttons={[
            { text: "Explore Our Menu", href: "products" },
            { text: "Visit Us Today", href: "contact" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <TextAbout
          tag="Our Story"
          title="Crafting exceptional coffee experiences since 2015. We believe in sustainable sourcing, skilled craftsmanship, and building a welcoming community around great coffee."
          useInvertedBackground="invertDefault"
          buttons={[
            { text: "Learn More", href: "contact" }
          ]}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardFour
          title="Featured Coffee Selection"
          description="Discover our hand-picked collection of premium specialty coffees from around the world"
          tag="Premium Selection"
          tagIcon={Award}
          products={[
            {
              id: "espresso-blend",              name: "Classic Espresso Blend",              price: "$16.99",              variant: "Dark Roast • 1lb Bag",              imageSrc: "https://img.b2bpic.net/free-photo/empty-wood-chair-restaurant_1339-5949.jpg",              imageAlt: "Premium espresso blend coffee beans"
            },
            {
              id: "morning-brew",              name: "Morning Brew",              price: "$14.99",              variant: "Medium Roast • 1lb Bag",              imageSrc: "https://img.b2bpic.net/free-photo/cozy-cafe_1098-13854.jpg",              imageAlt: "Morning brew coffee in cup"
            },
            {
              id: "cold-brew",              name: "Cold Brew Concentrate",              price: "$12.99",              variant: "Ready-to-Serve • 32oz",              imageSrc: "https://img.b2bpic.net/free-photo/empty-wood-chair-restaurant_1339-5949.jpg",              imageAlt: "Cold brew concentrate"
            },
            {
              id: "single-origin",              name: "Single Origin Ethiopian",              price: "$18.99",              variant: "Light Roast • 1lb Bag",              imageSrc: "https://img.b2bpic.net/free-photo/cozy-cafe_1098-13854.jpg",              imageAlt: "Single origin Ethiopian coffee"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardSeven
          title="Our Impact"
          description="Proud to serve our community with quality, sustainability, and exceptional customer care"
          tag="By The Numbers"
          metrics={[
            {
              id: "1",              value: "5K+",              title: "Happy Customers Daily",              items: [
                "Served across multiple locations",                "Community members and regulars",                "Growing every month"
              ]
            },
            {
              id: "2",              value: "12+",              title: "Months Roasting Excellence",              items: [
                "Ethically sourced beans",                "Premium roasting standards",                "Quality guaranteed"
              ]
            },
            {
              id: "3",              value: "98%",              title: "Customer Satisfaction Rate",              items: [
                "Exceptional service",                "Premium quality products",                "Welcoming atmosphere"
              ]
            }
          ]}
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardOne
          title="What Our Customers Love"
          description="Real feedback from our coffee community"
          tag="Testimonials"
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell",              role: "Regular Customer",              company: "Local Professional",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/male-barista-preparing-cappuccino-coffee-shop_1303-29343.jpg",              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",              name: "James Chen",              role: "Coffee Enthusiast",              company: "Tech Startup",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/portrait-young-man-working-as-barista-making-coffee-restaurant-barista-apron-white-shirt-standing-with-cup-coffee-his-workplace-coffee-shop_574295-4957.jpg",              imageAlt: "James Chen"
            },
            {
              id: "3",              name: "Maria Rodriguez",              role: "Barista",              company: "Downtown Location",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/low-angle-male-employee-coffee-shop_23-2148366548.jpg",              imageAlt: "Maria Rodriguez"
            },
            {
              id: "4",              name: "David Thompson",              role: "Business Owner",              company: "Community Partner",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/coffee-business-concept-handsome-bearded-man-apron-making-coffee-while-standing-cafe_1258-104246.jpg",              imageAlt: "David Thompson"
            },
            {
              id: "5",              name: "Emma Wilson",              role: "Student",              company: "Coffee Shop Regular",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/high-angle-business-man-working_23-2148366589.jpg",              imageAlt: "Emma Wilson"
            },
            {
              id: "6",              name: "Michael Lee",              role: "Freelancer",              company: "Remote Worker",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/young-barista-eyeglasses-cap-standing-bar-counter-preparing-pour-coffee-while-working-cafe_574295-3460.jpg",              imageAlt: "Michael Lee"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqBase
          title="Frequently Asked Questions"
          description="Everything you need to know about Bean Haven"
          tag="Help & Support"
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="smooth"
          faqs={[
            {
              id: "1",              title: "What makes your coffee special?",              content: "We source our beans from ethical, sustainable farms and roast them in-house to ensure peak freshness. Our baristas are trained to craft each cup with precision and care, delivering exceptional flavor in every sip."
            },
            {
              id: "2",              title: "Do you offer subscription plans?",              content: "Yes! Our subscription service delivers freshly roasted beans to your door monthly. You can choose from single-origin, blends, or let us surprise you with our barista's selection. Cancel anytime with no commitment."
            },
            {
              id: "3",              title: "Are your beans fair-trade and sustainable?",              content: "Absolutely. We work directly with farmers and cooperatives that practice ethical sourcing. Every purchase supports sustainable farming practices and fair compensation for our growers."
            },
            {
              id: "4",              title: "What payment methods do you accept?",              content: "We accept all major credit cards, digital wallets (Apple Pay, Google Pay), and cash at our physical locations. Online orders can be placed through our website with secure checkout."
            },
            {
              id: "5",              title: "Do you have a loyalty program?",              content: "Yes! Join our Bean Rewards program and earn points on every purchase. Points can be redeemed for free drinks, merchandise, or exclusive limited-edition beans."
            },
            {
              id: "6",              title: "Can I host events at Bean Haven?",              content: "We offer space for private events and meetings. Contact our team to discuss availability, capacity, and custom catering options for your group."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenter
          tag="Newsletter"
          title="Stay Connected with Bean Haven"
          description="Subscribe to our newsletter for exclusive coffee tips, new arrivals, special promotions, and community updates delivered right to your inbox."
          background={{ variant: "canvas-reveal" }}
          useInvertedBackground="noInvert"
          inputPlaceholder="Your email address"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime. By subscribing, you agree to our terms."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterCard
          logoText="Bean Haven"
          copyrightText="© 2025 Bean Haven Coffee Co. All rights reserved."
          socialLinks={[
            {
              icon: Instagram,
              href: "https://instagram.com/beanhaven",              ariaLabel: "Instagram"
            },
            {
              icon: Facebook,
              href: "https://facebook.com/beanhaven",              ariaLabel: "Facebook"
            },
            {
              icon: Twitter,
              href: "https://twitter.com/beanhaven",              ariaLabel: "Twitter"
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}