"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroLogoBillboard from '@/components/sections/hero/HeroLogoBillboard';
import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import FeatureCardNine from '@/components/sections/feature/FeatureCardNine';
import TestimonialCardThirteen from '@/components/sections/testimonial/TestimonialCardThirteen';
import FooterMedia from '@/components/sections/footer/FooterMedia';
import { Heart } from "lucide-react";
import Link from "next/link";

export default function HomePage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="entrance-slide"
      borderRadius="soft"
      contentWidth="smallMedium"
      sizing="largeSmall"
      background="aurora"
      cardStyle="gradient-radial"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="PawsHome Shelter"
          navItems={[
            { name: "About", id: "/about" },
            { name: "Adopt", id: "/adopt" },
            { name: "Donate", id: "/donate" },
            { name: "Contact", id: "/contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroLogoBillboard
          logoText="Give Pets a Second Chance"
          description="Welcome to PawsHome Shelter, where every animal deserves a loving home. Browse our adoptable pets, learn about our mission, and join our community of animal lovers."
          background={{ variant: "sparkles-gradient" }}
          imageSrc="https://img.b2bpic.net/free-photo/woman-playing-with-rescue-dogs-shelter_23-2148682984.jpg"
          imageAlt="Pet shelter with happy animals"
          frameStyle="card"
          logoLineHeight={1.2}
        />
      </div>

      <div id="about" data-section="about">
        <TestimonialAboutCard
          tag="Our Mission"
          title="Dedicated to Rescuing and Rehoming Animals in Need"
          description="Founded in 2015, PawsHome Shelter has helped over 5,000 animals find loving families."
          subdescription="Compassionate Care • Community Support • Happy Endings"
          icon={Heart}
          imageSrc="https://img.b2bpic.net/free-photo/smiley-woman-spending-time-with-cute-rescue-dogs-shelter_23-2148682966.jpg"
          imageAlt="Shelter volunteers caring for animals"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="featured" data-section="featured">
        <ProductCardThree
          title="Meet Our Adoptable Pets"
          description="Browse our wonderful animals looking for their forever homes. Each pet has a unique personality and story waiting to be shared with you."
          products={[
            {
              id: "dog-golden",
              name: "Buddy - Golden Retriever",
              price: "Adoption Fee: $150",
              imageSrc: "https://img.b2bpic.net/free-photo/local-labrador-beige-puppy-chilling-grass-looking-camera-with-sad-droopy-eyes_1268-20171.jpg",
              imageAlt: "Golden Retriever available for adoption"
            },
            {
              id: "dog-lab",
              name: "Max - Labrador Mix",
              price: "Adoption Fee: $120",
              imageSrc: "https://img.b2bpic.net/free-photo/happy-pet-dogs-playing-park_1359-280.jpg",
              imageAlt: "Labrador mix ready for adoption"
            },
            {
              id: "cat-tabby",
              name: "Whiskers - Tabby Cat",
              price: "Adoption Fee: $50",
              imageSrc: "https://img.b2bpic.net/free-photo/closeup-shot-cute-golden-retriever-puppy-curiously-looking-camera_181624-15694.jpg",
              imageAlt: "Tabby cat looking for a home"
            }
          ]}
          textboxLayout="default"
          gridVariant="three-columns-all-equal-width"
          animationType="slide-up"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="adoption-steps" data-section="adoption-steps">
        <FeatureCardNine
          title="Simple Adoption Process"
          description="We make it easy to find your new family member"
          features={[
            {
              id: 1,
              title: "Browse & Connect",
              description: "Explore our available pets online and learn about their personalities, ages, and needs. Schedule a meet-and-greet at your convenience.",
              phoneOne: { imageSrc: "https://img.b2bpic.net/free-photo/colleagues-interviewing-new-candidate-job-interview-concept_329181-12058.jpg" },
              phoneTwo: { imageSrc: "https://img.b2bpic.net/free-photo/colleagues-interviewing-new-candidate-job-interview-concept_329181-12058.jpg" }
            },
            {
              id: 2,
              title: "Complete Application",
              description: "Fill out our adoption application to ensure a good match between you and your new pet. Our staff reviews each application carefully.",
              phoneOne: { imageSrc: "https://img.b2bpic.net/free-photo/colleagues-interviewing-new-candidate-job-interview-concept_329181-12058.jpg" },
              phoneTwo: { imageSrc: "https://img.b2bpic.net/free-photo/colleagues-interviewing-new-candidate-job-interview-concept_329181-12058.jpg" }
            },
            {
              id: 3,
              title: "Home Visit & Finalization",
              description: "We conduct a home visit to ensure a safe environment. Once approved, you'll complete final paperwork and bring your pet home!",
              phoneOne: { imageSrc: "https://img.b2bpic.net/free-photo/colleagues-interviewing-new-candidate-job-interview-concept_329181-12058.jpg" },
              phoneTwo: { imageSrc: "https://img.b2bpic.net/free-photo/colleagues-interviewing-new-candidate-job-interview-concept_329181-12058.jpg" }
            }
          ]}
          showStepNumbers={true}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardThirteen
          title="Success Stories"
          description="Hear from families who found their perfect companion at PawsHome Shelter"
          testimonials={[
            {
              id: "1",
              name: "Sarah Johnson",
              handle: "@sarahjohnson",
              testimonial: "Adopting Max from PawsHome was the best decision we ever made. The staff was so helpful and caring throughout the process. Max has brought so much joy to our family!",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/young-parents-their-small-daughter-enjoying-with-dog-home-grandparents-are-standing-background_637285-5542.jpg"
            },
            {
              id: "2",
              name: "Emily Chen",
              handle: "@emilyc",
              testimonial: "I came in looking for a cat and left with Whiskers. The team's dedication to animal welfare is truly inspiring. Highly recommended!",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/young-happy-family-their-dg-relaxing-by-window-home-looking-through-it_637285-2902.jpg"
            },
            {
              id: "3",
              name: "James & Lisa Martinez",
              handle: "@jlmartinez",
              testimonial: "The adoption process was smooth and professional. Our new family member has settled in perfectly. Thank you PawsHome!",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/happy-parents-their-daughters-enjoying-home-having-fun-with-their-dog_637285-2878.jpg"
            },
            {
              id: "4",
              name: "Michael Thompson",
              handle: "@mthompson",
              testimonial: "Best shelter ever! The team truly cares about finding the right homes for each animal. Our kids love our new puppy!",
              rating: 5,
              imageSrc: "https://img.b2bpic.net/free-photo/cousins-spending-time-together-home-with-pet-dog_23-2150167127.jpg"
            }
          ]}
          showRating={true}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="https://img.b2bpic.net/free-photo/smiley-woman-spending-time-with-cute-rescue-dogs-shelter_23-2148682966.jpg"
          imageAlt="PawsHome Shelter volunteers caring for animals"
          logoText="PawsHome Shelter"
          copyrightText="© 2025 PawsHome Shelter. All rights reserved."
          columns={[
            {
              title: "Adopt",
              items: [
                { label: "Browse Pets", href: "/adopt" },
                { label: "About Us", href: "/about" },
                { label: "Success Stories", href: "/" }
              ]
            },
            {
              title: "Support",
              items: [
                { label: "Donate", href: "/donate" },
                { label: "Contact", href: "/contact" },
                { label: "Volunteer", href: "/contact" }
              ]
            },
            {
              title: "Contact",
              items: [
                { label: "info@pawshome.org", href: "mailto:info@pawshome.org" },
                { label: "(555) 123-4567", href: "tel:+15551234567" },
                { label: "Tue-Sun 10am-6pm", href: "" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}