"use client";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import FooterBase from '@/components/sections/footer/FooterBase';
import ProductCardOne from '@/components/sections/product/ProductCardOne';
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';

const StorePage = () => {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Store", id: "/store" },
    { name: "Ranks", id: "/ranks" },
    { name: "Keys", id: "/keys" },
    { name: "Vote", id: "/vote" },
    { name: "Support", id: "/support" }
  ];

  const footerNavItems = [
    {title:"Community",items:[{label:"Discord",href:"https://discord.gg/MEveY2k6Ta"},{label:"YouTube",href:"#"},{label:"Instagram",href:"#"},{label:"Vote",href:"/vote"}]},
    {title:"Store",items:[{label:"Ranks",href:"/ranks"},{label:"Keys",href:"/keys"},{label:"All Products",href:"/store"}]},
    {title:"Information",items:[{label:"Rules",href:"/rules"},{label:"Staff Team",href:"/team"},{label:"FAQ",href:"/faq"},{label:"Support",href:"/support"}]},
    {title:"Legal",items:[{label:"Privacy Policy",href:"/privacy"},{label:"Terms of Service",href:"/terms"}]}
  ];

  return (
    <ThemeProvider
      defaultButtonVariant={"icon-arrow"}
      defaultTextAnimation={"reveal-blur"}
      borderRadius={"soft"}
      contentWidth={"medium"}
      sizing={"mediumLarge"}
      background={"none"}
      cardStyle={"soft-shadow"}
      primaryButtonStyle={"radial-glow"}
      secondaryButtonStyle={"solid"}
      headingFontWeight={"semibold"}
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName={"Kachhua MC"}
          logoSrc={"http://img.b2bpic.net/free-photo/skull-bones-from-sugar-black-background-flat-lay_169016-24652.jpg"}
          logoAlt={"minecraft server logo tortoise gold green"}
          navItems={navItems}
          button={{text:"Login / Register",href:"/auth"}}
          animateOnLoad={true}
        />
      </div>
      <div id="store-products" data-section="store-products">
        <ProductCardOne
          title={"Kachhua MC Store"}
          description={"Explore all our premium products, including exclusive ranks and valuable keys to enhance your Lifesteal experience."}
          gridVariant={"two-columns-alternating-heights"}
          animationType={"scale-rotate"}
          useInvertedBackground={false}
          products={[{id:"rank-demon-store",name:"Demon Rank",price:"₹499",imageSrc:"http://img.b2bpic.net/free-photo/view-rhinoceros-animal-with-futuristic-robotic-parts_23-2151742086.jpg?_wi=2",imageAlt:"minecraft demon rank icon"},{id:"key-master-store",name:"Master Key",price:"₹30",imageSrc:"http://img.b2bpic.net/free-photo/flat-lay-still-life-printer-toners-assortment_23-2149120690.jpg?_wi=2",imageAlt:"minecraft master key crate icon"},{id:"rank-titan-store",name:"Titan Rank",price:"₹80",imageSrc:"http://img.b2bpic.net/free-photo/8-bits-characters-gaming-assets_23-2151143638.jpg?_wi=2",imageAlt:"minecraft titan rank icon"},{id:"key-empire-store",name:"Empire Key",price:"₹40",imageSrc:"http://img.b2bpic.net/free-vector/gold-chest-ui-game-vector-icon-element-set-casino-cartoon-interface-pack-with-lock-open-money-box-heart-star-coin-gear-settings-2d-fantasy-online-computer-app-isolated-loot-object_107791-22883.jpg?_wi=2",imageAlt:"minecraft empire key crate icon"},{id:"rank-lord-store",name:"Lord Rank",price:"₹199",imageSrc:"http://img.b2bpic.net/free-photo/3d-rendering-elegant-cross_23-2150913410.jpg?_wi=2",imageAlt:"minecraft lord rank icon"},{id:"key-steal-store",name:"Steal Key",price:"₹10",imageSrc:"http://img.b2bpic.net/free-photo/3d-rendering-valentines-day-gift_23-2151254285.jpg?_wi=2",imageAlt:"minecraft steal key crate icon"},{id:"rank-void-store",name:"Void Rank",price:"₹299",imageSrc:"http://img.b2bpic.net/free-vector/military-game-insignia-rank-badge-cartoon-vector_107791-19729.jpg?_wi=2",imageAlt:"minecraft void rank icon"},{id:"key-koth-store",name:"Koth Key",price:"₹20",imageSrc:"http://img.b2bpic.net/free-photo/medieval-crown-royalty-still-life_23-2150385426.jpg?_wi=2",imageAlt:"minecraft koth key crate icon"},{id:"rank-knight-store",name:"Knight Rank",price:"₹399",imageSrc:"http://img.b2bpic.net/free-vector/realistic-green-shield-background_23-2147610622.jpg?_wi=2",imageAlt:"minecraft knight rank icon"}]}
        />
      </div>
      <div id="faq-section-store" data-section="faq-section-store">
        <FaqSplitMedia
          title={"Frequently Asked Questions"}
          description={"Find answers to common questions about Kachhua MC, Lifesteal, purchases, and server rules."}
          imageSrc={"http://img.b2bpic.net/free-photo/people-hanging-out-with-robot_23-2151112112.jpg"}
          imageAlt={"minecraft faq illustration server help"}
          mediaAnimation={"slide-up"}
          faqsAnimation={"blur-reveal"}
          textboxLayout={"default"}
          useInvertedBackground={false}
          faqs={[{id:"faq1",title:"What is Kachhua MC Lifesteal?",content:"Kachhua MC is a unique Minecraft server featuring the Lifesteal SMP game mode. When you kill another player, you steal their hearts, making every encounter critical and exciting."},{id:"faq2",title:"How do I join the server?",content:"You can join Kachhua MC by opening Minecraft Java Edition and adding our server IP: play.kachhuamc.fun to your server list. Ensure you are on the latest Minecraft version for optimal experience."},{id:"faq3",title:"What payment methods are supported?",content:"We support Razorpay, UPI Payments, and secure checkout options for all purchases. All transactions are automated for instant rank and key delivery."},{id:"faq4",title:"What if I have an issue with my purchase?",content:"If you encounter any issues with your purchase, please contact our support team through the 'Support' page or join our Discord server. We are here to help resolve any problems promptly."},{id:"faq5",title:"Can I get a refund for my purchase?",content:"Refunds are generally not provided for digital goods. However, if there's a technical issue or a mistake in your purchase, please reach out to our support team, and we will review your case."}]}
        />
      </div>
      <div id="social-proof-store" data-section="social-proof-store">
        <SocialProofOne
          title={"Trusted by Thousands of Players"}
          description={"Our network is home to a thriving community and partners with leading Minecraft content creators and guilds."}
          textboxLayout={"default"}
          useInvertedBackground={false}
          names={["Team Zenith","Nova Gaming","Pixel Guild","BlockCrafters","MineVerse","Apex Legends MC","Eternal Realms"]}
          speed={40}
        />
      </div>
      <div id="footer" data-section="footer">
        <FooterBase
          logoText={"Kachhua MC"}
          logoSrc={"http://img.b2bpic.net/free-photo/skull-bones-from-sugar-black-background-flat-lay_169016-24652.jpg"}
          logoAlt={"minecraft server logo tortoise gold green"}
          columns={footerNavItems}
          copyrightText={"© 2024 Kachhua MC. All rights reserved."}
        />
      </div>
    </ThemeProvider>
  );
};

export default StorePage;
