"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroBillboardSplit from '@/components/sections/hero/HeroBillboardSplit';
import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard';
import ProductCardSeven from '@/components/sections/product/ProductCardSeven';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import ContactCenterForm from '@/components/sections/contact/ContactCenterForm';
import FooterSocial from '@/components/sections/footer/FooterSocial';
import { Heart, Star, Quote, Instagram, Facebook, MapPin, Phone, Clock } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="reveal-blur"
      borderRadius="sharp"
      contentWidth="medium"
      sizing="largeSmall"
      background="circleGradient"
      cardStyle="gradient-radial"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="layered"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={[
            { name: "Home", id: "home" },
            { name: "About", id: "about" },
            { name: "Products", id: "products" },
            { name: "Contact", id: "contact" }
          ]}
          brandName="Sweet Bakes"
          bottomLeftText="Freshly Baked Daily"
          bottomRightText="hello@sweetbakes.com"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardSplit
          title="Sweet Bakery "
          description="Made with love every morning."
          tag=""
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766917795607-6sca7wpy.jpg"
          imageAlt="Fresh bakery display with pastries and bread"
          frameStyle="browser"
          buttons={[{"text":"Order","href":"https://google.com"},
            {"text":"Skip","href":"about"}]}
        />
      </div>

      <div id="about" data-section="about">
        <TestimonialAboutCard
          tag="Our Story"
          title="Started in a small kitchen, now serving hundreds of happy customers daily."
          description="Maria Santos"
          subdescription="Owner & Head Baker"
          icon={Heart}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766923138738-fu9kdakz.jpg"
          imageAlt="Maria Santos, bakery owner"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardSeven
          title="Our Signature Collection"
          description="Explore our best-selling bakery items made fresh daily with premium ingredients"
          tag="Best Sellers"
          tagIcon={Star}
          textboxLayout="default"
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          products={[
            {
              id: "1",
              name: "Classic Croissant",
              price: "$4.99",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766245914004-rta09f98.jpg",
              imageAlt: "Buttery croissant",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            },
            {
              id: "2",
              name: "Artisan Sourdough",
              price: "$7.99",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766815285364-7q7e9roz.jpg",
              imageAlt: "Artisan sourdough bread",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            },
            {
              id: "3",
              name: "Chocolate Cake",
              price: "$24.99",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766849870204-lmbcrr56.jpg",
              imageAlt: "Decadent chocolate cake",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            },
            {
              id: "4",
              name: "Glazed Donuts",
              price: "$3.99",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766915699751-fy2shocj.jpg",
              imageAlt: "Glazed donuts",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            },
            {
              id: "5",
              name: "Blueberry Muffin",
              price: "$5.99",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766245914004-rta09f98.jpg",
              imageAlt: "Fresh blueberry muffin",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            },
            {
              id: "6",
              name: "Almond Croissant",
              price: "$6.99",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766815285364-7q7e9roz.jpg",
              imageAlt: "Almond-filled croissant",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            },
            {
              id: "7",
              name: "Strawberry Tart",
              price: "$8.99",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766849870204-lmbcrr56.jpg",
              imageAlt: "Fresh strawberry tart",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            },
            {
              id: "8",
              name: "Cinnamon Roll",
              price: "$5.49",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766915699751-fy2shocj.jpg",
              imageAlt: "Warm cinnamon roll",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            },
            {
              id: "9",
              name: "Macarons Assortment",
              price: "$12.99",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766245914004-rta09f98.jpg",
              imageAlt: "Colorful macaron assortment",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            },
            {
              id: "10",
              name: "Baguette",
              price: "$6.49",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766815285364-7q7e9roz.jpg",
              imageAlt: "Traditional French baguette",
              onProductClick: () => window.location.href = "#contact",
              isFavorited: false
            }
          ]}
        />
      </div>

      <div id="map" data-section="map">
        <div style={{
          width: "100%",
          height: "500px",
          backgroundColor: "#f0f0f0",
          display: "flex",
          alignItems: "center",
          justifyContent: "center",
          flexDirection: "column",
          gap: "16px"
        }}>
          <MapPin size={48} />
          <p style={{ fontSize: "18px", fontWeight: "600" }}>Map</p>
          <p style={{ fontSize: "14px", color: "#666" }}>Locations map coming soon</p>
        </div>
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="What Our Customers Say"
          description="Join hundreds of satisfied customers who love our fresh-baked treats"
          tag="Reviews"
          tagIcon={Quote}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          showRating={true}
          testimonials={[
            {
              id: "1",
              name: "Sarah Mitchell",
              handle: "@sarahmitchell",
              testimonial: "The croissants here are absolutely incredible! Perfectly buttery and fresh every single time. My go-to spot for breakfast.",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766154635301-vse33sxl.jpg",
              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",
              name: "James Chen",
              handle: "@jameschen92",
              testimonial: "Best sourdough in town! The flavor is incredible and they use only natural ingredients. Worth every penny.",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766183842429-uezzjpov.jpg",
              imageAlt: "James Chen"
            },
            {
              id: "3",
              name: "Emma Rodriguez",
              handle: "@emmarod",
              testimonial: "I order their birthday cakes for all my celebrations. Beautiful designs and absolutely delicious. Highly recommended!",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766184309647-aqbmmuiq.jpg",
              imageAlt: "Emma Rodriguez"
            },
            {
              id: "4",
              name: "David Thompson",
              handle: "@davidthompson",
              testimonial: "Sweet Bakes has become my daily ritual. Their pastries are made with such care and attention to detail. Love this place!",
              rating: 5,
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766849444575-td00y2fe.jpg",
              imageAlt: "David Thompson"
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCenterForm
          title="Place Your Order"
          description="Fill out the form below to order your favorite fresh-baked items. We'll confirm your order within 2 hours."
          useInvertedBackground="noInvert"
          buttonText="Send Order"
          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: true }
          ]}
          textarea={{ name: "order", placeholder: "What would you like to order? Include quantities and any special requests...", rows: 5, required: true }}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSocial
          logoText="Sweet Bakery"
          columns={[
            {
              title: "Company",
              items: [
                { label: "About Us", href: "about" },
                { label: "Contact", href: "contact" }
              ]
            },
            {
              title: "Products",
              items: [
                { label: "Pastries", href: "products" },
                { label: "Custom Orders", href: "contact" }
              ]
            },
            {
              title: "Legal",
              items: [
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" }
              ]
            }
          ]}
          socialLinks={[
            { icon: Instagram, href: "https://instagram.com", ariaLabel: "Instagram" },
            { icon: Facebook, href: "https://facebook.com", ariaLabel: "Facebook" }
          ]}
          copyrightText="© Sweet Bakery, 2025. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}