"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroBillboardDashboard from '@/components/sections/hero/HeroBillboardDashboard';
import MediaAbout from '@/components/sections/about/MediaAbout';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import FeatureCardNineteen from '@/components/sections/feature/FeatureCardNineteen';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import PricingCardOne from '@/components/sections/pricing/PricingCardOne';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { Award, CheckCircle, Croissant, Crown, Heart, Home, Package, ShoppingCart, Sparkles, Star, Truck, UtensilsCrossed } from 'lucide-react';

export default function BakeryPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="icon-arrow"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="medium"
      sizing="medium"
      background="circleGradient"
      cardStyle="layered-gradient"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="Artisan Bakery"
          navItems={[
            { name: "Home", id: "home" },
            { name: "About", id: "about" },
            { name: "Products", id: "products" },
            { name: "Why Us", id: "features" },
            { name: "Reviews", id: "testimonials" }
          ]}
          button={{
            text: "Order Now",            href: "#pricing"
          }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardDashboard
          title="Freshly Baked Goodness Every Morning"
          description="Discover artisanal breads, pastries, and treats crafted with the finest ingredients and traditional techniques. Order online for pickup or delivery."
          tag="Premium Artisan Bakery"
          tagIcon={Croissant}
          buttons={[
            { text: "Shop Now", href: "#products" },
            { text: "Learn Our Story", href: "#about" }
          ]}
          background={{ variant: "radial-gradient" }}
          dashboard={{
            title: "Today's Fresh Selection",            logoIcon: UtensilsCrossed,
            imageSrc: "http://img.b2bpic.net/free-photo/baker-holds-homemade-craft-bread-his-hands_166373-749.jpg?_wi=1",            imageAlt: "Fresh artisan bakery display",            buttons: [
              { text: "View Menu", href: "#products" },
              { text: "Contact Us", href: "#contact" }
            ],
            sidebarItems: [
              { icon: Home },
              { icon: ShoppingCart, active: true },
              { icon: Heart }
            ],
            stats: [
              {
                title: "Daily Bakes",                values: [45, 62, 58],
                description: "Fresh items baked daily"
              },
              {
                title: "Happy Customers",                values: [2840, 3120, 3450],
                description: "Loyal customers served"
              },
              {
                title: "Quality Score",                values: [98, 99, 100],
                valueSuffix: "%",                description: "Customer satisfaction"
              }
            ],
            chartTitle: "Weekly Sales Trend",            chartData: [
              { value: 65 },
              { value: 78 },
              { value: 82 },
              { value: 71 },
              { value: 85 }
            ],
            listTitle: "Recent Orders",            listItems: [
              {
                icon: Package,
                title: "Sourdough Loaf",                status: "Ready for Pickup"
              },
              {
                icon: Truck,
                title: "Croissant Box",                status: "Out for Delivery"
              },
              {
                icon: CheckCircle,
                title: "Birthday Cake",                status: "Completed"
              }
            ],
            searchPlaceholder: "Search products..."
          }}
        />
      </div>

      <div id="about" data-section="about">
        <MediaAbout
          title="Baked with Love Since 1998"
          description="For over 25 years, we've been perfecting our craft using traditional baking methods and the finest organic ingredients. Every loaf, pastry, and treat is made fresh in our open kitchen, right before your eyes."
          tag="Our Heritage"
          tagIcon={Heart}
          buttons={[
            { text: "Visit Us Today", href: "#contact" }
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/baker-kneading-delicious-dough_23-2147761393.jpg"
          imageAlt="Our artisan bakery kitchen"
          useInvertedBackground={false}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardThree
          title="Our Signature Collection"
          description="Hand-crafted with pride, each product celebrates simplicity and quality"
          tag="Bestsellers"
          tagIcon={Star}
          textboxLayout="default"
          useInvertedBackground={false}
          products={[
            {
              id: "1",              name: "Classic Sourdough Loaf",              price: "$8.99",              imageSrc: "http://img.b2bpic.net/free-photo/baker-holds-homemade-craft-bread-his-hands_166373-749.jpg?_wi=2",              imageAlt: "Classic sourdough loaf"
            },
            {
              id: "2",              name: "Butter Croissant (3-pack)",              price: "$12.50",              imageSrc: "http://img.b2bpic.net/free-photo/croissants-sugar_1220-102.jpg",              imageAlt: "Golden butter croissants"
            },
            {
              id: "3",              name: "Cinnamon Roll Special",              price: "$6.99",              imageSrc: "http://img.b2bpic.net/free-photo/traditional-cinnamon-buns-white-table-homemade-sweet-buns_127032-2691.jpg",              imageAlt: "Warm cinnamon roll"
            }
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureCardNineteen
          title="Why Choose Our Bakery"
          description="Experience the difference quality and tradition make"
          tag="Our Commitment"
          textboxLayout="default"
          useInvertedBackground={false}
          features={[
            {
              id: 1,
              tag: "Ingredients",              title: "100% Organic",              subtitle: "Sourced from trusted local farms",              description: "We believe in using only the finest organic ingredients. No preservatives, no additives—just pure, wholesome goodness in every bite."
            },
            {
              id: 2,
              tag: "Tradition",              title: "Time-Honored Recipes",              subtitle: "Passed down through generations",              description: "Our baking techniques are rooted in European tradition. Each recipe has been perfected over decades to deliver consistent quality and taste."
            },
            {
              id: 3,
              tag: "Community",              title: "Local & Sustainable",              subtitle: "Supporting our community daily",              description: "We're committed to sustainability and supporting local suppliers. Every purchase helps local farmers and artisans thrive."
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="What Our Customers Say"
          description="Join thousands of satisfied customers who trust us for their daily bread"
          tag="Reviews"
          textboxLayout="default"
          useInvertedBackground={false}
          showRating={true}
          animationType="slide-up"
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell",              handle: "@sarahmitchell",              testimonial: "The sourdough is absolutely incredible! I've tried bakeries all over the city, and nothing compares. Fresh, flavorful, and worth every penny.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/woman-with-big-smile-her-face-after-big-shopping_329181-18748.jpg?_wi=1",              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",              name: "James Rodriguez",              handle: "@jamesrodriguez",              testimonial: "I order their croissants every Friday for the office. My team raves about them. Fast delivery and consistently excellent quality.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-handsome-male-smiling_181624-41237.jpg?_wi=1",              imageAlt: "James Rodriguez"
            },
            {
              id: "3",              name: "Emma Thompson",              handle: "@emmathompson",              testimonial: "Custom cakes for my daughter's birthday were stunning and delicious. The team went above and beyond to make it perfect. Highly recommended!",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/woman-with-big-smile-her-face-after-big-shopping_329181-18748.jpg?_wi=2",              imageAlt: "Emma Thompson"
            },
            {
              id: "4",              name: "Michael Chen",              handle: "@mchen",              testimonial: "Supporting a local bakery that actually cares about quality. Every morning, I grab fresh bread before work. It's become part of my routine.",              rating: 5,
              imageSrc: "http://img.b2bpic.net/free-photo/closeup-shot-handsome-male-smiling_181624-41237.jpg?_wi=2",              imageAlt: "Michael Chen"
            }
          ]}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardOne
          title="Order for Every Occasion"
          description="Choose the perfect plan for your bakery needs"
          tag="Pricing"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="slide-up"
          plans={[
            {
              id: "1",              badge: "Popular",              price: "Starting at $8.99",              subtitle: "Single items & small orders",              features: [
                "Fresh daily bakes",                "Free delivery over $25",                "Same-day pickup available",                "Order flexibility"
              ],
              badgeIcon: Sparkles
            },
            {
              id: "2",              badge: "Best Value",              price: "Starting at $45",              subtitle: "Party & catering orders",              features: [
                "Bulk pricing discount",                "Custom creations available",                "Dedicated support",                "Early ordering incentives"
              ],
              badgeIcon: Award
            },
            {
              id: "3",              badge: "Premium",              price: "Custom Quote",              subtitle: "Corporate & events",              features: [
                "Full event catering",                "Custom menu design",                "Premium presentation",                "Concierge service"
              ],
              badgeIcon: Crown
            }
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqDouble
          title="Frequently Asked Questions"
          description="Everything you need to know about ordering from our bakery"
          tag="Help & Support"
          textboxLayout="default"
          useInvertedBackground={false}
          faqs={[
            {
              id: "1",              title: "How long do your baked goods stay fresh?",              content: "Most of our products are best enjoyed within 24-48 hours of baking. We recommend storing bread in a paper bag at room temperature and pastries in our branded box. All items can be frozen for up to 3 months for later enjoyment."
            },
            {
              id: "2",              title: "Do you offer gluten-free options?",              content: "Yes! We have a dedicated gluten-free line made in our separate facility. Our gluten-free breads and pastries are just as delicious as our traditional offerings. Please call ahead to ensure availability."
            },
            {
              id: "3",              title: "What are your delivery options?",              content: "We offer free delivery for orders over $25 within a 5-mile radius. Pickup is available daily at our storefront. Orders placed before 2 PM are typically ready same-day for pickup."
            },
            {
              id: "4",              title: "Can I customize orders for special occasions?",              content: "Absolutely! We specialize in custom cakes, specialty breads, and catering. Please contact us at least 48 hours in advance to discuss your vision and place a custom order."
            },
            {
              id: "5",              title: "What payment methods do you accept?",              content: "We accept all major credit cards, digital wallets, and cash. Online orders can be paid securely through our website. Gift cards are also available for purchase."
            },
            {
              id: "6",              title: "Are your products vegan-friendly?",              content: "We offer several vegan options including vegan croissants, plant-based muffins, and artisan vegetable breads. All vegan items are clearly labeled on our menu and website."
            }
          ]}
          faqsAnimation="slide-up"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple
          columns={[
            {
              title: "Navigate",              items: [
                { label: "Home", href: "#home" },
                { label: "Products", href: "#products" },
                { label: "About Us", href: "#about" },
                { label: "Contact", href: "#contact" }
              ]
            },
            {
              title: "Shop",              items: [
                { label: "Bread", href: "#products" },
                { label: "Pastries", href: "#products" },
                { label: "Custom Orders", href: "#pricing" },
                { label: "Gift Cards", href: "#" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "FAQ", href: "#faq" },
                { label: "Delivery Info", href: "#faq" },
                { label: "Contact Us", href: "#contact" },
                { label: "Feedback", href: "#" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "Our Story", href: "#about" },
                { label: "Careers", href: "#" },
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" }
              ]
            }
          ]}
          bottomLeftText="© 2025 Artisan Bakery. All rights reserved. Baked with love locally."
          bottomRightText="Crafted for quality. Designed for you."
        />
      </div>
    </ThemeProvider>
  );
}