"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroLogoBillboardSplit from '@/components/sections/hero/HeroLogoBillboardSplit';
import MediaSplitAbout from '@/components/sections/about/MediaSplitAbout';
import FeatureCardTwentyOne from '@/components/sections/feature/FeatureCardTwentyOne';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo';
import ContactText from '@/components/sections/contact/ContactText';
import FooterSplit from '@/components/sections/footer/FooterSplit';
import { Phone, Mail, MapPin } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-bubble"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="smallMedium"
      sizing="large"
      background="plain"
      cardStyle="glass-depth"
      primaryButtonStyle="layered-depth"
      secondaryButtonStyle="layered"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "hero" },
            { name: "About", id: "about" },
            { name: "Beers", id: "products" },
            { name: "Contact", id: "contact" }
          ]}
          brandName="BrewCraft"
          bottomLeftText="Crafted with passion"
          bottomRightText="hello@brewcraft.com"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoBillboardSplit
          logoText="BrewCraft"
          description="Discover award-winning craft beers brewed with passion and precision. Experience the perfect blend of tradition and innovation in every sip."
          buttons={[
            { text: "Explore Our Beers", href: "#products" },
            { text: "Learn Our Story", href: "#about" }
          ]}
          layoutOrder="default"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766737135258-nan0236n.jpg"
          imageAlt="Golden craft beer in glass"
          frameStyle="card"
        />
      </div>

      <div id="about" data-section="about">
        <MediaSplitAbout
          title="Our Brewing Heritage"
          description="Since 2015, BrewCraft has been committed to creating exceptional beers that celebrate quality ingredients and time-honored brewing techniques. Our team of passionate brewers combines traditional methods with modern innovation to deliver unforgettable flavors that bring people together."
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766754473712-5n2zhhfp.jpg"
          imageAlt="Brewery interior with wooden barrels"
          buttons={[
            { text: "Visit Us", href: "#contact" },
            { text: "View Gallery", href: "#products" }
          ]}
          imagePosition="right"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardTwentyOne
          title="What Makes Us Different"
          description="We believe in quality over quantity. Every batch is crafted with meticulous attention to detail and the finest ingredients sourced from trusted suppliers worldwide."
          tag="Our Process"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766754476446-z1kd2t19.jpg"
          imageAlt="Brewing process and fermentation"
          accordionItems={[
            {
              id: "1",
              title: "Premium Ingredients",
              content: "We source malts, hops, and yeast from the world's finest suppliers to ensure every beer meets our exacting standards."
            },
            {
              id: "2",
              title: "Small Batch Brewing",
              content: "Each batch is carefully monitored throughout the brewing process to maintain consistency and quality without compromise."
            },
            {
              id: "3",
              title: "Traditional Methods",
              content: "We honor time-tested brewing techniques passed down through generations while embracing modern quality control."
            }
          ]}
          useInvertedBackground="noInvert"
          mediaPosition="left"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardThree
          products={[
            {
              id: "1",
              name: "Golden Horizon IPA",
              price: "$8.99",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766737135258-nan0236n.jpg",
              imageAlt: "Golden Horizon IPA bottle",
              initialQuantity: 1
            },
            {
              id: "2",
              name: "Midnight Stout",
              price: "$9.49",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766737180748-7ybmc2yf.jpg",
              imageAlt: "Midnight Stout glass",
              initialQuantity: 1
            },
            {
              id: "3",
              name: "Dark Matter Porter",
              price: "$8.99",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766754475232-37s6hpl5.jpg",
              imageAlt: "Dark Matter Porter pour",
              initialQuantity: 1
            }
          ]}
          title="Featured Brews"
          description="Hand-selected beers that represent the heart of our brewery. Each one tells a story of craftsmanship and passion."
          tag="Popular"
          textboxLayout="default"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardTwo
          metrics={[
            { id: "1", value: "50K+", description: "Satisfied Customers" },
            { id: "2", value: "15", description: "Award-Winning Brews" },
            { id: "3", value: "100%", description: "Craft Ingredients" },
            { id: "4", value: "10 Years", description: "Brewing Excellence" }
          ]}
          title="Brewing by the Numbers"
          description="Our commitment to quality is reflected in these milestones that define our journey."
          tag="Our Impact"
          textboxLayout="default"
          gridVariant="four-items-2x2-equal-grid"
          animationType="slide-up"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwo
          testimonials={[
            {
              id: "1",
              name: "Marcus Johnson",
              role: "Beer Enthusiast",
              testimonial: "BrewCraft beers are exceptional. The flavor complexity and attention to detail is unmatched. I've recommended them to all my friends.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766140064413-lmtijaij.jpg",
              imageAlt: "Marcus Johnson"
            },
            {
              id: "2",
              name: "Sarah Chen",
              role: "Restaurant Owner",
              testimonial: "Our customers love having BrewCraft on tap. The consistency and quality make them perfect for our establishment. Highly recommended!",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766140101670-ttp7xdlv.jpg",
              imageAlt: "Sarah Chen"
            },
            {
              id: "3",
              name: "James Mitchell",
              role: "Craft Beer Collector",
              testimonial: "As someone who appreciates fine craft beers, BrewCraft stands out. Their brewing process and ingredient selection are top-notch.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766140152452-p4x3ah4p.jpg",
              imageAlt: "James Mitchell"
            },
            {
              id: "4",
              name: "Emily Roberts",
              role: "Food Critic",
              testimonial: "Tasting BrewCraft's portfolio was a revelation. These are beers that deserve recognition at the highest level of craft brewing.",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766754478801-sutnq4vu.jpg",
              imageAlt: "Emily Roberts"
            }
          ]}
          title="What Beer Lovers Say"
          description="Join our community of satisfied customers who appreciate the BrewCraft difference."
          tag="Reviews"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to taste the difference? Join our mailing list for exclusive beer releases, brewery events, and special offers delivered to your inbox."
          animationType="entrance-slide"
          buttons={[
            { text: "Sign Up Now", href: "#" },
            { text: "Visit Brewery", href: "#" }
          ]}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSplit
          logoText="BrewCraft"
          columns={[
            {
              title: "Products",
              items: [
                { label: "Our Beers", href: "#products" },
                { label: "Brewing Process", href: "#features" }
              ]
            },
            {
              title: "Company",
              items: [
                { label: "About Us", href: "#about" },
                { label: "Contact", href: "#contact" }
              ]
            },
            {
              title: "Legal",
              items: [
                { label: "Terms of Service", href: "/terms" },
                { label: "Privacy Policy", href: "/privacy" }
              ]
            }
          ]}
          title="Craft Beer Made with Heart and Soul"
          contactItems={[
            { icon: Phone, text: "(555) 123-4567" },
            { icon: Mail, text: "hello@brewcraft.com" },
            { icon: MapPin, text: "123 Brewing Lane, Craft City, CB 12345" }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}