"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import FeatureHoverPattern from "@/components/sections/feature/featureHoverPattern/FeatureHoverPattern";
import ProductCardThree from "@/components/sections/product/ProductCardThree";
import SocialProofOne from "@/components/sections/socialProof/SocialProofOne";
import FooterBaseCard from "@/components/sections/footer/FooterBaseCard";
import { Grid3x3, Flame } from "lucide-react";

export default function CategoriesPage() {
  const navItems = [
    { name: "Home", id: "home" },
    { name: "Categories", id: "categories" },
    { name: "Featured", id: "featured" },
    { name: "Deals", id: "deals" },
    { name: "About", id: "about" },
    { name: "Contact", id: "contact" },
  ];

  const footerColumns = [
    {
      title: "Shop",
      items: [
        { label: "All Products", href: "/categories" },
        { label: "Electronics", href: "/categories" },
        { label: "Fashion", href: "/categories" },
        { label: "Home & Garden", href: "/categories" },
        { label: "Food & Groceries", href: "/categories" },
      ],
    },
    {
      title: "Customer Service",
      items: [
        { label: "Contact Us", href: "/" },
        { label: "Track Order", href: "/" },
        { label: "Returns & Exchanges", href: "/" },
        { label: "Shipping Info", href: "/" },
        { label: "FAQ", href: "/" },
      ],
    },
    {
      title: "Company",
      items: [
        { label: "About Us", href: "/" },
        { label: "Blog", href: "/" },
        { label: "Careers", href: "/" },
        { label: "Partners", href: "/" },
        { label: "Press", href: "/" },
      ],
    },
    {
      title: "Legal",
      items: [
        { label: "Privacy Policy", href: "#" },
        { label: "Terms of Service", href: "#" },
        { label: "Cookie Policy", href: "#" },
        { label: "Accessibility", href: "#" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="text-stagger"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="mediumSmall"
      sizing="mediumLargeSizeMediumTitles"
      background="aurora"
      cardStyle="glass-depth"
      primaryButtonStyle="gradient"
      secondaryButtonStyle="solid"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={navItems}
          brandName="Uzum Market"
          bottomLeftText="Global Marketplace Community"
          bottomRightText="support@uzummarket.com"
        />
      </div>

      <div id="all-categories" data-section="all-categories">
        <FeatureHoverPattern
          title="All Product Categories"
          description="Explore our complete catalog across all major shopping categories with personalized recommendations and exclusive offers."
          tag="Browse All"
          tagIcon={Grid3x3}
          tagAnimation="slide-up"
          features={[
            {
              icon: "Smartphone",
              title: "Electronics & Tech",
              description: "Smartphones, laptops, tablets, cameras, and cutting-edge tech gadgets.",
            },
            {
              icon: "Shirt",
              title: "Fashion & Clothing",
              description: "Men, women, and kids apparel from casual to formal wear.",
            },
            {
              icon: "Home",
              title: "Home & Living",
              description: "Furniture, decor, appliances, and everything for your home.",
            },
            {
              icon: "UtensilsCrossed",
              title: "Food & Groceries",
              description: "Fresh produce, pantry staples, snacks, and beverages.",
            },
            {
              icon: "Heart",
              title: "Beauty & Wellness",
              description: "Skincare, cosmetics, fragrances, and health supplements.",
            },
            {
              icon: "Gamepad2",
              title: "Entertainment & Hobbies",
              description: "Games, books, sports equipment, and hobby items.",
            },
          ]}
          animationType="scale-rotate"
          textboxLayout="default"
          useInvertedBackground={true}
          buttons={[]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="bestsellers" data-section="bestsellers">
        <ProductCardThree
          title="Category Bestsellers"
          description="Top-rated and most popular products from each category selected by our community."
          tag="Best Sellers"
          tagIcon={Flame}
          tagAnimation="slide-up"
          products={[
            {
              id: "best-001",
              name: "Pro Smartphone 15",
              price: "599,999 UZS",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BFXLk9BIVZ4EdOfJDPnXCjvU6t/professional-product-photograph-of-premi-1774085816049-d2579199.png?_wi=2",
              imageAlt: "Pro Smartphone",
            },
            {
              id: "best-002",
              name: "Designer T-Shirt Premium",
              price: "89,999 UZS",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BFXLk9BIVZ4EdOfJDPnXCjvU6t/professional-product-photograph-of-an-el-1774085816136-5f1258a0.png?_wi=2",
              imageAlt: "Designer T-Shirt",
            },
            {
              id: "best-003",
              name: "Deluxe Sofa Sectional",
              price: "1,299,999 UZS",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BFXLk9BIVZ4EdOfJDPnXCjvU6t/professional-product-photograph-of-a-sta-1774085816758-2fee166d.png?_wi=2",
              imageAlt: "Deluxe Sofa",
            },
            {
              id: "best-004",
              name: "Fresh Organic Vegetables Box",
              price: "129,999 UZS",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BFXLk9BIVZ4EdOfJDPnXCjvU6t/professional-product-photograph-of-organ-1774085815547-17d93fb4.png?_wi=2",
              imageAlt: "Organic Vegetables",
            },
            {
              id: "best-005",
              name: "Anti-Aging Serum Collection",
              price: "159,999 UZS",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BFXLk9BIVZ4EdOfJDPnXCjvU6t/professional-product-photograph-of-a-sma-1774085815157-1df38171.png?_wi=2",
              imageAlt: "Skincare Serum",
            },
            {
              id: "best-006",
              name: "Board Game Collection Bundle",
              price: "249,999 UZS",
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BFXLk9BIVZ4EdOfJDPnXCjvU6t/professional-product-photograph-of-a-por-1774085817725-bfae8d8a.png?_wi=2",
              imageAlt: "Board Games",
            },
          ]}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          buttons={[]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="trusted-brands" data-section="trusted-brands">
        <SocialProofOne
          names={[
            "Samsung",
            "Apple",
            "Sony",
            "LG",
            "Philips",
            "Canon",
            "Nike",
            "Adidas",
            "Intel",
            "Microsoft",
          ]}
          logos={[
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BFXLk9BIVZ4EdOfJDPnXCjvU6t/samsung-corporation-official-logo-high-q-1774085817327-6407eda4.png",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BFXLk9BIVZ4EdOfJDPnXCjvU6t/apple-inc-official-logo-clean-iconic-app-1774085815767-bf9d3823.png",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BFXLk9BIVZ4EdOfJDPnXCjvU6t/sony-corporation-official-logo-professio-1774085815578-d2dde2dd.png",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BFXLk9BIVZ4EdOfJDPnXCjvU6t/lg-electronics-official-logo-professiona-1774085815833-2b3a7352.png",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BFXLk9BIVZ4EdOfJDPnXCjvU6t/philips-corporation-official-logo-profes-1774085815843-fc42f3e4.png",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BFXLk9BIVZ4EdOfJDPnXCjvU6t/canon-inc-official-logo-professional-bra-1774085814555-98c11c70.png",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BFXLk9BIVZ4EdOfJDPnXCjvU6t/nike-inc-official-logo-iconic-swoosh-sym-1774085816729-e747b029.png",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BFXLk9BIVZ4EdOfJDPnXCjvU6t/adidas-ag-official-logo-professional-bra-1774085815860-e71f1ff1.png",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BFXLk9BIVZ4EdOfJDPnXCjvU6t/intel-corporation-official-logo-professi-1774085815976-ea74d91c.png",
            "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3BFXLk9BIVZ4EdOfJDPnXCjvU6t/microsoft-corporation-official-logo-prof-1774085816504-880d86f8.png",
          ]}
          title="Trusted International Brands"
          description="Shop authorized products from the world's leading brands available exclusively on Uzum Market."
          textboxLayout="default"
          useInvertedBackground={true}
          speed={40}
          showCard={true}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseCard
          logoText="Uzum Market"
          columns={footerColumns}
          copyrightText="© 2025 Uzum Market. All rights reserved. | Made with ❤️ for Central Asia"
        />
      </div>
    </ThemeProvider>
  );
}