"use client";

import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import FeatureHoverPattern from '@/components/sections/feature/featureHoverPattern/FeatureHoverPattern';
import PricingCardTwo from '@/components/sections/pricing/PricingCardTwo';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import { Sparkles, Zap, Star, Heart, Crown } from "lucide-react";

export default function ProductsPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="slide-background"
      defaultTextAnimation="reveal-blur"
      borderRadius="rounded"
      contentWidth="smallMedium"
      sizing="mediumLargeSizeLargeTitles"
      background="floatingGradient"
      cardStyle="glass-elevated"
      primaryButtonStyle="flat"
      secondaryButtonStyle="solid"
      headingFontWeight="light"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="LuxeGlow"
          navItems={[
            { name: "Home", id: "/" },
            { name: "Products", id: "/products" },
            { name: "Pricing", id: "/pricing" },
            { name: "FAQ", id: "/faq" }
          ]}
          button={{
            text: "Shop Now",            href: "/products"
          }}
        />
      </div>

      <div id="products" data-section="products">
        <ProductCardOne
          title="Our Complete Skincare Collection"
          description="Discover our full range of premium skincare products designed to address every skin concern and deliver visible results"
          tag="All Products"
          tagIcon={Sparkles}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          products={[
            {
              id: "1",              name: "Luminous Hydrating Serum",              price: "$68",              imageSrc: "https://images.unsplash.com/photo-1556228578-8c89e6adf883?w=400&h=400&fit=crop",              imageAlt: "Hydrating serum bottle with light blue formulation"
            },
            {
              id: "2",              name: "Time-Defying Face Cream",              price: "$85",              imageSrc: "https://images.unsplash.com/photo-1596755094514-f87e34085b2c?w=400&h=400&fit=crop",              imageAlt: "Premium anti-aging face cream in luxury packaging"
            },
            {
              id: "3",              name: "Gentle Cleansing Oil",              price: "$52",              imageSrc: "https://images.unsplash.com/photo-1576426863848-c21cb6cb1e6d?w=400&h=400&fit=crop",              imageAlt: "Pure cleansing oil for makeup removal"
            },
            {
              id: "4",              name: "Revitalizing Sheet Mask",              price: "$12",              imageSrc: "https://images.unsplash.com/photo-1556228578-8c89e6adf883?w=400&h=400&fit=crop",              imageAlt: "Premium sheet mask treatment for instant glow"
            },
            {
              id: "5",              name: "Brightening Vitamin C Serum",              price: "$75",              imageSrc: "https://images.unsplash.com/photo-1596755094514-f87e34085b2c?w=400&h=400&fit=crop",              imageAlt: "Vitamin C brightening serum"
            },
            {
              id: "6",              name: "Nourishing Night Cream",              price: "$92",              imageSrc: "https://images.unsplash.com/photo-1576426863848-c21cb6cb1e6d?w=400&h=400&fit=crop",              imageAlt: "Rich night moisturizer for deep repair"
            }
          ]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureHoverPattern
          title="The Science Behind Our Formulations"
          description="Each product is engineered to deliver powerful results while maintaining the gentleness your skin deserves"
          tag="How It Works"
          tagIcon={Zap}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="slide-up"
          features={[
            {
              icon: Sparkles,
              title: "Deep Hydration",              description: "Our proprietary blend of hyaluronic acid and botanical extracts penetrates multiple skin layers to deliver intense, long-lasting moisture"
            },
            {
              icon: Zap,
              title: "Protective Shield",              description: "Advanced antioxidant complex protects against environmental stressors while strengthening your skin barrier"
            },
            {
              icon: Star,
              title: "Natural Nourishment",              description: "Plant-based vitamins and peptides work synergistically to improve texture, elasticity, and radiance"
            }
          ]}
        />
      </div>

      <div id="pricing" data-section="pricing">
        <PricingCardTwo
          title="Choose Your Skincare Journey"
          description="Select the perfect plan to achieve your best skin"
          tag="Pricing Plans"
          tagIcon={Sparkles}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          plans={[
            {
              id: "1",              badge: "Starter",              badgeIcon: Star,
              price: "$49",              subtitle: "Essential skincare basics",              buttons: [
                { text: "Get Started", href: "/products" },
                { text: "Learn More", href: "/pricing" }
              ],
              features: [
                "Gentle Cleansing Oil",                "Hydrating Serum",                "Basic moisturizer",                "Access to skincare tips"
              ]
            },
            {
              id: "2",              badge: "Most Popular",              badgeIcon: Heart,
              price: "$129",              subtitle: "Complete daily routine",              buttons: [
                { text: "Get Started", href: "/products" },
                { text: "Contact Sales", href: "/contact" }
              ],
              features: [
                "All Starter products",                "Premium face cream",                "Weekly face mask",                "Email skincare support",                "15% member discount"
              ]
            },
            {
              id: "3",              badge: "Luxury",              badgeIcon: Crown,
              price: "$249",              subtitle: "Full professional regimen",              buttons: [
                { text: "Get Started", href: "/products" },
                { text: "Contact Sales", href: "/contact" }
              ],
              features: [
                "All Premium products",                "Exclusive serums & treatments",                "Monthly deliveries",                "Priority VIP support",                "Free consultations",                "25% member discount"
              ]
            }
          ]
        />
      </div>

      <FooterSimple 
        columns={[
          {
            title: "Navigate",            items: [
              { label: "Home", href: "/" },
              { label: "Products", href: "/products" },
              { label: "Pricing", href: "/pricing" },
              { label: "FAQ", href: "/faq" }
            ]
          },
          {
            title: "Support",            items: [
              { label: "Contact", href: "/contact" },
              { label: "Help Center", href: "/help" },
              { label: "Skincare Guide", href: "/guide" }
            ]
          },
          {
            title: "Legal",            items: [
              { label: "Privacy Policy", href: "/privacy" },
              { label: "Terms of Service", href: "/terms" },
              { label: "Return Policy", href: "/returns" }
            ]
          }
        ]}
        bottomLeftText="© 2025 LuxeGlow. All rights reserved."
        bottomRightText="Made with Webild"
      />
    </ThemeProvider>
  );
}