"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroBillboardRotatedCarousel from '@/components/sections/hero/HeroBillboardRotatedCarousel';
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import MetricCardSeven from '@/components/sections/metrics/MetricCardSeven';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import { Coffee, Leaf, Star, MessageCircle } from "lucide-react";

export default function CoffeePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="mediumLarge"
      sizing="mediumLargeSizeMediumTitles"
      background="aurora"
      cardStyle="subtle-shadow"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="solid"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="Bean & Brew"
          navItems={[
            { name: "Menu", id: "products" },
            { name: "About", id: "about" },
            { name: "Story", id: "metrics" },
            { name: "Reviews", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
          button={{
            text: "Order Now",            href: "products"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardRotatedCarousel
          title="Craft Your Perfect Cup"
          description="Experience the art of specialty coffee. From carefully sourced single-origin beans to expertly crafted beverages, discover why coffee lovers choose Bean & Brew."
          tag="Premium Coffee Since 2015"
          tagIcon={Coffee}
          buttons={[
            { text: "Explore Menu", href: "products" },
            { text: "Visit Us", href: "contact" }
          ]}
          background={{ variant: "aurora" }}
          carouselItems={[
            {
              id: "1",              imageSrc: "https://img.b2bpic.net/free-photo/high-angle-coffee-making-with-machine_23-2148865579.jpg",              imageAlt: "Premium espresso setup"
            },
            {
              id: "2",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-hand-pouring-milk-delicious-coffee-cup_23-2148865585.jpg",              imageAlt: "Barista pouring latte art"
            },
            {
              id: "3",              imageSrc: "https://img.b2bpic.net/free-photo/vertical-shot-man-pouring-milk-into-cappuccino_181624-19406.jpg",              imageAlt: "Freshly roasted coffee beans"
            },
            {
              id: "4",              imageSrc: "https://img.b2bpic.net/free-photo/barista-preparing-beverage_23-2149458092.jpg",              imageAlt: "Cozy cafe interior"
            },
            {
              id: "5",              imageSrc: "https://img.b2bpic.net/free-photo/vertical-high-angle-shot-man-making-cup-cappuccino_181624-58109.jpg",              imageAlt: "Refreshing cold brew"
            },
            {
              id: "6",              imageSrc: "https://img.b2bpic.net/free-photo/high-angle-coffee-making-with-machine_23-2148865579.jpg",              imageAlt: "Coffee preparation"
            }
          ]}
          autoPlay={true}
          autoPlayInterval={4000}
        />
      </div>

      <div id="about" data-section="about">
        <MetricSplitMediaAbout
          tag="Our Story"
          tagIcon={Leaf}
          title="Passion for Coffee Excellence"
          description="Bean & Brew was founded on the belief that great coffee starts with great sourcing and expertise. We partner directly with sustainable farms around the world to bring you the finest specialty coffee beans, roasted fresh and prepared with precision by our skilled baristas."
          metrics={[
            { value: "50+", title: "Single-Origin Varieties" },
            { value: "15+", title: "Years of Craftsmanship" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/barista-preparing-beverage_23-2149458092.jpg"
          imageAlt="Our cafe atmosphere"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardThree
          title="Featured Coffee Selection"
          description="Discover our handpicked collection of premium single-origin and house blend coffees"
          tag="Limited Edition"
          tagIcon={Star}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          gridVariant="three-columns-all-equal-width"
          carouselMode="buttons"
          products={[
            {
              id: "1",              name: "Ethiopian Highlands Single-Origin",              price: "$16.99",              imageSrc: "https://img.b2bpic.net/free-photo/vertical-shot-man-pouring-milk-into-cappuccino_181624-19406.jpg",              imageAlt: "Ethiopian coffee beans",              initialQuantity: 1
            },
            {
              id: "2",              name: "House Blend Espresso Dark Roast",              price: "$14.99",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-hand-pouring-milk-delicious-coffee-cup_23-2148865585.jpg",              imageAlt: "House blend espresso",              initialQuantity: 1
            },
            {
              id: "3",              name: "Cold Brew Concentrate",              price: "$12.99",              imageSrc: "https://img.b2bpic.net/free-photo/vertical-high-angle-shot-man-making-cup-cappuccino_181624-58109.jpg",              imageAlt: "Cold brew concentrate",              initialQuantity: 1
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardSeven
          title="By The Numbers"
          description="Our commitment to quality and customer satisfaction in numbers"
          textboxLayout="default"
          animationType="scale-rotate"
          useInvertedBackground="noInvert"
          metrics={[
            {
              id: "1",              value: "10,000+",              title: "Happy Customers Served",              items: ["Daily regular visitors", "Global fan base", "Community-driven"]
            },
            {
              id: "2",              value: "98%",              title: "Customer Satisfaction Rate",              items: ["Premium quality guaranteed", "Expert preparation", "Consistent excellence"]
            },
            {
              id: "3",              value: "100%",              title: "Sustainably Sourced",              items: ["Fair trade practices", "Eco-friendly packaging", "Community support"]
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="What Coffee Lovers Say"
          description="Real stories from our passionate community of coffee enthusiasts"
          textboxLayout="default"
          animationType="blur-reveal"
          useInvertedBackground="noInvert"
          showRating={true}
          carouselMode="buttons"
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell",              handle: "@sarahloves.coffee",              testimonial: "The best espresso in the city. Every cup is crafted with care and precision. I can't start my day without Bean & Brew!",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-man-sitting-cafe-table-gesturing_1262-1141.jpg",              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",              name: "James Chen",              handle: "@coffee.explorer",              testimonial: "Finally found a cafe that takes coffee seriously. The single-origin varieties are incredible, and the baristas really know their stuff.",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/older-woman-with-thumb-up_1149-1162.jpg",              imageAlt: "James Chen"
            },
            {
              id: "3",              name: "Emma Rodriguez",              handle: "@EmmaWrites",              testimonial: "Perfect place to work or relax. Amazing ambiance, friendly staff, and coffee that rivals any specialty cafe I've visited. Highly recommend!",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/handsome-man-making-ok-sign_1368-6336.jpg",              imageAlt: "Emma Rodriguez"
            },
            {
              id: "4",              name: "Michael Park",              handle: "@MorningCoffeeRitual",              testimonial: "The cold brew concentrate is a game-changer. Perfect for home brewing. Quality ingredients, sustainable practices. Love this place!",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-middle-aged-attractive-woman-showing-thumb-up-outdoors_1262-12526.jpg",              imageAlt: "Michael Park"
            },
            {
              id: "5",              name: "Lisa Thompson",              handle: "@CoffeeAddict",              testimonial: "Been coming here for years. Consistent quality, innovative drinks, and staff that genuinely care about their craft. 10/10!",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/front-view-cute-girl-looking-away_23-2148436134.jpg",              imageAlt: "Lisa Thompson"
            },
            {
              id: "6",              name: "David Okonkwo",              handle: "@SpecialtyCoffeeNerd",              testimonial: "The sourcing transparency is refreshing. You can taste the difference when coffee is treated with respect from farm to cup.",              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/smiling-middle-aged-woman-showing-ok-sign_1262-17571.jpg",              imageAlt: "David Okonkwo"
            }
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqDouble
          title="Frequently Asked Questions"
          description="Get answers to common questions about our coffee, ordering, and cafe experience"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="smooth"
          faqs={[
            {
              id: "1",              title: "What makes your coffee special?",              content: "We source only specialty-grade coffee beans from sustainable, direct-trade partnerships with farmers around the world. Every bean is roasted fresh in small batches and prepared by expertly trained baristas using precision techniques. This commitment to quality at every step results in exceptional flavor and consistency."
            },
            {
              id: "2",              title: "Do you offer subscription services?",              content: "Yes! We offer monthly subscription boxes with rotating single-origin selections. Subscribers receive freshly roasted beans delivered to their door with detailed tasting notes and brewing recommendations. Subscribe today and get 15% off your first box."
            },
            {
              id: "3",              title: "Are your beans ethically sourced?",              content: "Absolutely. All our coffee is certified fair-trade and sourced from farms that follow sustainable environmental practices. We pay above market rates to ensure farmers receive fair compensation, and we work directly with producers to maintain transparency throughout our supply chain."
            },
            {
              id: "4",              title: "Can I customize my drink?",              content: "Of course! Our skilled baristas are happy to customize any drink to your preferences. Whether you want a specific milk alternative, temperature adjustment, or flavor addition, we'll craft your perfect cup. Just let us know what you're in the mood for!"
            },
            {
              id: "5",              title: "What is your cafe seating policy?",              content: "All customers are welcome to stay as long as they'd like. We have comfortable seating, complimentary WiFi, and plenty of power outlets for laptops. Whether you're here for a quick coffee or working for hours, we're happy to have you. Just grab a drink and make yourself at home!"
            },
            {
              id: "6",              title: "Do you have seasonal drinks?",              content: "Yes! We release limited-edition seasonal beverages quarterly, featuring flavors that celebrate each time of year. Follow our social media for announcements about new releases. Our baristas also create custom seasonal drinks, so ask about what's available during your visit!"
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCTA
          tag="Get In Touch"
          tagIcon={MessageCircle}
          title="Ready for Your Next Great Cup?"
          description="Visit us at our cozy cafe, order online for pickup, or reach out with questions. Our team is here to help you discover your new favorite coffee."
          buttons={[
            { text: "Visit Us Today", href: "#" },
            { text: "Order Online", href: "#" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="Bean & Brew"
          columns={[
            {
              title: "Coffee",              items: [
                { label: "Single-Origin Beans", href: "#" },
                { label: "House Blends", href: "#" },
                { label: "Subscriptions", href: "#" },
                { label: "Cold Brew", href: "#" }
              ]
            },
            {
              title: "Cafe",              items: [
                { label: "Our Story", href: "#about" },
                { label: "Locations", href: "#" },
                { label: "Hours", href: "#" },
                { label: "Events", href: "#" }
              ]
            },
            {
              title: "Community",              items: [
                { label: "Blog", href: "#" },
                { label: "Sustainability", href: "#" },
                { label: "Careers", href: "#" },
                { label: "Contact", href: "#contact" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Facebook", href: "https://facebook.com" },
                { label: "Twitter", href: "https://twitter.com" },
                { label: "Newsletter", href: "#" }
              ]
            }
          ]}
          copyrightText="© 2025 Bean & Brew Coffee Co. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}