"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroCentered from '@/components/sections/hero/HeroCentered';
import SplitAbout from '@/components/sections/about/SplitAbout';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve';
import FeatureCardTwentyOne from '@/components/sections/feature/FeatureCardTwentyOne';
import FaqDouble from '@/components/sections/faq/FaqDouble';
import ContactFaq from '@/components/sections/contact/ContactFaq';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import { BookOpen, Star, Heart, Users, Sparkles, Calendar, HelpCircle, MapPin } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="background-highlight"
      borderRadius="rounded"
      contentWidth="smallMedium"
      sizing="mediumLarge"
      background="floatingGradient"
      cardStyle="solid"
      primaryButtonStyle="diagonal-gradient"
      secondaryButtonStyle="layered"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          brandName="Wellesley Bookstore"
          navItems={[
            { name: "Shop Books", id: "shop" },
            { name: "Staff Picks", id: "staff-picks" },
            { name: "Events", id: "events" },
            { name: "About Us", id: "about" }
          ]}
          button={{ text: "Visit the Store", href: "#contact" }}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroCentered
          title="Discover Your Next Favorite Book"
          description="A beloved independent bookstore in the heart of Wellesley with expertly curated books, thoughtful staff recommendations, and gifts you won't find anywhere else. Where readers of all ages gather to discover stories, connect with community, and experience the joy of real shelves."
          background="radial-gradient"
          avatars={[
            { src: "http://img.b2bpic.net/free-photo/full-shot-student-learning-stairs_23-2149127109.jpg", alt: "Wellesley Bookstore interior" }
          ]}
          buttons={[
            { text: "Shop Books", href: "#staff-picks" },
            { text: "Visit the Store", href: "#contact" }
          ]}
          buttonAnimation="slide-up"
          marqueeItems={[
            { type: "text", text: "Curated Selection" },
            { type: "text", text: "Expert Recommendations" },
            { type: "text", text: "Community Connection" },
            { type: "text", text: "Thoughtful Gifts" },
            { type: "text", text: "Events & Gatherings" }
          ]}
          showMarqueeCard={true}
        />
      </div>

      <div id="about" data-section="about">
        <SplitAbout
          title="Why Wellesley Bookstore"
          description="Since opening our doors, we've been more than a bookstore—we're a gathering place for readers, dreamers, and curious minds. Our carefully curated selection reflects our deep knowledge of literature and our commitment to supporting voices we believe in."
          tag="Our Story"
          tagIcon={BookOpen}
          tagAnimation="slide-up"
          bulletPoints={[
            {
              title: "Expert Curation",              description: "Every book on our shelves is hand-selected by our passionate staff who genuinely love reading and understand what makes a great story.",              icon: Star
            },
            {
              title: "Staff Picks & Recommendations",              description: "Handwritten recommendation cards from our booksellers guide you to your next favorite read, complete with personal notes about why we loved each book.",              icon: Heart
            },
            {
              title: "Community Events",              description: "Author readings, book clubs, literary discussions, and seasonal gatherings create a vibrant hub where readers connect and celebrate literature together.",              icon: Users
            },
            {
              title: "Thoughtful Gifts",              description: "Discover unique gifts for every reader and occasion—from curated book bundles to literary merchandise you won't find in chain stores."
            }
          ]}
          imageSrc="http://img.b2bpic.net/free-photo/students-working-study-group_23-2149281170.jpg"
          imageAlt="Wellesley Bookstore team"
          imagePosition="left"
          textboxLayout="default"
          mediaAnimation="slide-up"
          useInvertedBackground={false}
          buttons={[
            { text: "Learn More", href: "#staff-picks" }
          ]}
        />
      </div>

      <div id="staff-picks" data-section="staff-picks">
        <ProductCardTwo
          title="Staff Picks This Month"
          description="Handpicked recommendations from our booksellers. Each selection comes with a personal note about why our team loved it."
          tag="Curated Selection"
          tagIcon={Sparkles}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          products={[
            {
              id: "pick-1",              brand: "Staff Pick",              name: "The Midnight Library",              price: "$18.99",              rating: 5,
              reviewCount: "2,847",              imageSrc: "http://img.b2bpic.net/free-photo/front-view-book-line_23-2147978258.jpg",              imageAlt: "The Midnight Library book cover"
            },
            {
              id: "pick-2",              brand: "Staff Pick",              name: "Lessons in Chemistry",              price: "$17.99",              rating: 5,
              reviewCount: "1,923",              imageSrc: "http://img.b2bpic.net/free-psd/law-poster-design-template_23-2149191089.jpg",              imageAlt: "Lessons in Chemistry book cover"
            },
            {
              id: "pick-3",              brand: "Staff Pick",              name: "The Wager",              price: "$19.99",              rating: 5,
              reviewCount: "856",              imageSrc: "http://img.b2bpic.net/free-photo/portrait-interracial-young-couple-reading-book-home_23-2148151838.jpg",              imageAlt: "The Wager book cover"
            },
            {
              id: "pick-4",              brand: "Staff Pick",              name: "Where the Crawdads Sing",              price: "$16.99",              rating: 5,
              reviewCount: "3,421",              imageSrc: "http://img.b2bpic.net/free-vector/flat-design-muted-colors-cards-set_23-2150050120.jpg",              imageAlt: "Where the Crawdads Sing book cover"
            }
          ]}
          buttons={[
            { text: "Browse All Books", href: "#" }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwelve
          cardTitle="Loved by Readers"
          cardTag="Community Stories"
          cardTagIcon={Users}
          cardAnimation="slide-up"
          useInvertedBackground={false}
          testimonials={[
            { id: "1", name: "Sarah Mitchell", imageSrc: "http://img.b2bpic.net/free-photo/classmates-studying-together_329181-19507.jpg", imageAlt: "Sarah Mitchell" },
            { id: "2", name: "James Chen", imageSrc: "http://img.b2bpic.net/free-photo/young-man-reading-book-sitting-chair-high-quality-photo_114579-35591.jpg", imageAlt: "James Chen" },
            { id: "3", name: "Emma Rodriguez", imageSrc: "http://img.b2bpic.net/free-photo/blonde-woman-reading-her-book_23-2148396328.jpg", imageAlt: "Emma Rodriguez" },
            { id: "4", name: "Margaret Thompson", imageSrc: "http://img.b2bpic.net/free-photo/businesswoman-working-with-digital-assistant_23-2149258054.jpg", imageAlt: "Margaret Thompson" },
            { id: "5", name: "David Park", imageSrc: "http://img.b2bpic.net/free-photo/man-thinking-order-cafe_23-2147775846.jpg", imageAlt: "David Park" },
            { id: "6", name: "The Chen Family", imageSrc: "http://img.b2bpic.net/free-photo/full-shot-woman-reading-couch_23-2149141856.jpg", imageAlt: "The Chen Family" }
          ]}
        />
      </div>

      <div id="events" data-section="events">
        <FeatureCardTwentyOne
          title="Events & Community"
          description="Join us for author readings, book clubs, literary discussions, and seasonal celebrations. We host events weekly to create meaningful connections between readers and authors."
          tag="What's Happening"
          tagIcon={Calendar}
          tagAnimation="slide-up"
          imageSrc="http://img.b2bpic.net/free-photo/medium-shot-happy-senior-couple_23-2148399479.jpg"
          imageAlt="Community book event at Wellesley Bookstore"
          mediaAnimation="slide-up"
          useInvertedBackground={false}
          mediaPosition="right"
          accordionItems={[
            {
              id: "event-1",              title: "Weekly Book Club Meetings",              content: "Join our discussion circle every Wednesday evening at 7 PM. We rotate through fiction, non-fiction, and memoir selections. Coffee and snacks provided."
            },
            {
              id: "event-2",              title: "Author Events & Readings",              content: "Meet visiting authors, listen to readings from their latest works, and get personalized book signings. Events held most Saturdays. RSVP required."
            },
            {
              id: "event-3",              title: "Themed Literary Nights",              content: "Monthly themed evenings celebrating specific genres, authors, or literary movements. Perfect for deepening your appreciation of literature and connecting with fellow enthusiasts."
            },
            {
              id: "event-4",              title: "Children's Story Time",              content: "Saturday mornings feature interactive story time for ages 3-8, complete with crafts and activities. A wonderful introduction to the joy of reading."
            }
          ]}
          buttons={[
            { text: "View Full Calendar", href: "#contact" }
          ]}
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqDouble
          title="Frequently Asked Questions"
          description="Everything you need to know about shopping at Wellesley Bookstore, our services, and how to get the most out of your visit."
          tag="Help & Support"
          tagIcon={HelpCircle}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          faqsAnimation="slide-up"
          faqs={[
            {
              id: "faq-1",              title: "Do you offer online ordering with store pickup?",              content: "Yes! You can browse our inventory online and place orders for in-store pickup within 24 hours. We also offer nationwide shipping for most titles. Contact us at orders@wellesleybookstore.com or call 781-555-BOOK."
            },
            {
              id: "faq-2",              title: "How can I get personalized book recommendations?",              content: "Our staff loves nothing more than recommending books! Visit us in person and chat with our booksellers, or email your reading preferences and interests to recommendations@wellesleybookstore.com. We'll send curated suggestions within two business days."
            },
            {
              id: "faq-3",              title: "Do you have a rewards or loyalty program?",              content: "Yes! Join our Readers Club for exclusive benefits: early access to author events, special discounts on new releases, personalized recommendations, and monthly newsletters featuring staff picks and upcoming events. Sign up in-store or online for free."
            },
            {
              id: "faq-4",              title: "Can you special order books not currently in stock?",              content: "Absolutely. We can special order almost any book in print. Typically arrives within 5-7 business days. No additional charge for special orders over $15."
            },
            {
              id: "faq-5",              title: "What are your store hours?",              content: "Monday-Friday: 10 AM - 8 PM | Saturday: 9 AM - 6 PM | Sunday: 12 PM - 5 PM. We're closed on major holidays. Check our website for holiday hours."
            },
            {
              id: "faq-6",              title: "Do you accept gift returns and exchanges?",              content: "Yes! Gifts can be exchanged within 30 days with receipt. Without receipt, store credit is available at the lowest sale price. Books must be in unmarked, resalable condition."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactFaq
          ctaTitle="Ready to Visit or Connect?"
          ctaDescription="Stop by our store to browse our curated selection in person, join us for an event, or get personalized recommendations from our passionate team."
          ctaButton={{ text: "Get Directions", href: "https://maps.google.com" }}
          ctaIcon={MapPin}
          animationType="slide-up"
          useInvertedBackground={false}
          faqs={[
            {
              id: "contact-1",              title: "Store Location",              content: "Wellesley Bookstore | 123 Central Street | Wellesley, MA 02482"
            },
            {
              id: "contact-2",              title: "Phone",              content: "781-555-BOOK (2665) | Hours: Mon-Fri 10 AM-8 PM, Sat 9 AM-6 PM, Sun 12 PM-5 PM"
            },
            {
              id: "contact-3",              title: "Email & Online",              content: "orders@wellesleybookstore.com | recommendations@wellesleybookstore.com | events@wellesleybookstore.com"
            },
            {
              id: "contact-4",              title: "Join Our Readers Club",              content: "Sign up for our email newsletter to receive exclusive event announcements, new release alerts, staff picks, and special discounts. Free to join!"
            }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="http://img.b2bpic.net/free-photo/full-shot-student-learning-stairs_23-2149127109.jpg"
          imageAlt="Wellesley Bookstore storefront"
          logoText="Wellesley Bookstore"
          copyrightText="© 2025 Wellesley Bookstore. All rights reserved."
          columns={[
            {
              title: "Shop",              items: [
                { label: "All Books", href: "#staff-picks" },
                { label: "Staff Picks", href: "#staff-picks" },
                { label: "New Releases", href: "#" },
                { label: "Gifts", href: "#" }
              ]
            },
            {
              title: "Community",              items: [
                { label: "Events", href: "#events" },
                { label: "Book Club", href: "#events" },
                { label: "Author Readings", href: "#events" },
                { label: "Readers Club", href: "#contact" }
              ]
            },
            {
              title: "About",              items: [
                { label: "Our Story", href: "#about" },
                { label: "Contact Us", href: "#contact" },
                { label: "Get Directions", href: "https://maps.google.com" },
                { label: "Hours", href: "#contact" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "Online Ordering", href: "#" },
                { label: "Special Orders", href: "#contact" },
                { label: "FAQs", href: "#faq" },
                { label: "Privacy Policy", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}