"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen";
import ContactSplit from "@/components/sections/contact/ContactSplit";
import FaqBase from "@/components/sections/faq/FaqBase";
import FooterLogoReveal from "@/components/sections/footer/FooterLogoReveal";
import Link from "next/link";
import { Mail, HelpCircle } from "lucide-react";

export default function ContactPage() {
  const navItems = [
    { name: "Home", id: "/" },
    { name: "Products", id: "/products" },
    { name: "Features", id: "/features" },
    { name: "Pricing", id: "/pricing" },
    { name: "Contact", id: "/contact" },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="smallMedium"
      sizing="large"
      background="floatingGradient"
      cardStyle="inset"
      primaryButtonStyle="shadow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          navItems={navItems}
          brandName="Samsung Mobile"
          bottomLeftText="Innovation in Every Frame"
          bottomRightText="support@samsung-mobile.com"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Get in Touch"
          title="Stay Updated with Latest Releases"
          description="Subscribe to our newsletter for exclusive offers, product launches, and special promotions directly to your inbox"
          tagIcon={Mail}
          background={{ variant: "sparkles-gradient" }}
          useInvertedBackground={false}
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AQJ7B8mYEMeFibP8zUealCeNvW/a-modern-samsung-customer-service-team-w-1772521648432-e2def41d.png"
          imageAlt="Samsung customer support team"
          mediaAnimation="slide-up"
          mediaPosition="right"
          inputPlaceholder="Enter your email address"
          buttonText="Subscribe Now"
          termsText="We respect your privacy. Unsubscribe anytime. By subscribing, you agree to our Terms and Conditions."
          onSubmit={(email) => console.log("Email subscribed:", email)}
        />
      </div>

      <div id="contact-faq" data-section="contact-faq">
        <FaqBase
          title="Frequently Asked Questions"
          description="Find answers to common questions about our Samsung mobile devices and services"
          tag="Help & Support"
          tagIcon={HelpCircle}
          textboxLayout="default"
          useInvertedBackground={false}
          faqsAnimation="slide-up"
          faqs={[
            {
              id: "1",
              title: "What is the warranty coverage for Samsung phones?",
              content: "All Samsung devices come with a standard 1-year warranty covering manufacturing defects, accidental damage, and hardware issues. Extended warranty options are available for purchase. Premium models include 2-3 years of comprehensive coverage.",
            },
            {
              id: "2",
              title: "Do you offer trade-in programs?",
              content: "Yes! We offer competitive trade-in values for your old devices. Simply visit our store or contact our support team with your device details to get an instant valuation. Trade-in credits can be applied towards your new purchase.",
            },
            {
              id: "3",
              title: "Are international warranty plans available?",
              content: "Absolutely. We provide international warranty coverage in 150+ countries. Your Samsung device will be covered for repairs and replacements wherever you travel. Contact our global support team for details.",
            },
            {
              id: "4",
              title: "What payment methods do you accept?",
              content: "We accept all major credit cards, debit cards, digital wallets (Apple Pay, Google Pay), bank transfers, and flexible payment plans. Financing options with zero-interest EMI are also available for purchases above certain amounts.",
            },
            {
              id: "5",
              title: "How fast is the delivery service?",
              content: "Standard delivery takes 3-5 business days. We also offer express delivery (1-2 days) and same-day delivery in select areas. Free shipping is available on orders above $500. Track your order in real-time through our mobile app.",
            },
            {
              id: "6",
              title: "Can I return or exchange my device?",
              content: "We offer a 30-day return and exchange policy for all devices in original condition with all accessories. No questions asked returns are available. If you're unhappy with your purchase, simply contact our support team to initiate the process.",
            },
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterLogoReveal
          logoText="Samsung Mobile"
          leftLink={{ text: "Privacy Policy", href: "#" }}
          rightLink={{ text: "Terms of Service", href: "#" }}
        />
      </div>
    </ThemeProvider>
  );
}