"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import HeroBillboardGallery from '@/components/sections/hero/HeroBillboardGallery';
import SplitAbout from '@/components/sections/about/SplitAbout';
import ProductCardFour from '@/components/sections/product/ProductCardFour';
import FeatureBorderGlow from '@/components/sections/feature/featureBorderGlow/FeatureBorderGlow';
import MetricCardThree from '@/components/sections/metrics/MetricCardThree';
import TestimonialCardSix from '@/components/sections/testimonial/TestimonialCardSix';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterCard from '@/components/sections/footer/FooterCard';
import { Heart, Home, Users, Handshake, Shield, Stethoscope, CheckCircle, Zap, Award, Smile, Sparkles, Share2 } from 'lucide-react';

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="shift-hover"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="medium"
      sizing="medium"
      background="none"
      cardStyle="solid"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="semibold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="PawsHome"
          navItems={[
            { name: "About", id: "about" },
            { name: "Pets", id: "pets" },
            { name: "Mission", id: "features" },
            { name: "Impact", id: "metrics" },
            { name: "Stories", id: "testimonials" }
          ]}
          button={{ text: "Adopt Now", href: "pets" }}
          className="rounded-2xl"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardGallery
          title="Find Your Perfect Companion"
          description="Give a loving pet a forever home. Browse our adoptable animals and change a life today."
          background={{ variant: "plain" }}
          tag="Open Hearts Welcome"
          tagIcon={Heart}
          mediaItems={[
            {
              imageSrc: "https://img.b2bpic.net/free-photo/closeup-adorable-five-purebred-italian-bracco-puppy-dogs-basket-meadow_181624-53406.jpg",              imageAlt: "Adorable puppies ready for adoption"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/funny-newborn-puppies-sleep-near-basket-blanket_169016-12359.jpg",              imageAlt: "Playful kittens looking for homes"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/young-parents-their-small-daughter-enjoying-with-dog-home-grandparents-are-standing-background_637285-5542.jpg",              imageAlt: "Happy family with adopted pets"
            }
          ]}
          buttons={[
            { text: "Browse Adoptable Pets", href: "pets" },
            { text: "Learn Our Story", href: "about" }
          ]}
        />
      </div>

      <div id="about" data-section="about">
        <SplitAbout
          title="Our Mission: Rescue, Rehabilitate, Rehome"
          description="PawsHome Shelter has been dedicated to saving lives since 2010. We provide shelter, medical care, and love to abandoned and neglected animals while finding them forever homes with caring families."
          tag="Our Story"
          tagIcon={Home}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          bulletPoints={[
            {
              title: "Rescue & Care",              description: "We rescue animals in need and provide comprehensive medical care, nutrition, and rehabilitation.",              icon: Heart
            },
            {
              title: "Find Perfect Matches",              description: "Our team carefully matches pets with families to ensure lifelong, happy placements.",              icon: Users
            },
            {
              title: "Community Support",              description: "We engage our community through volunteering, education, and adoption events.",              icon: Handshake
            },
            {
              title: "No-Kill Commitment",              description: "Every animal in our care receives the time and resources they need to thrive.",              icon: Shield
            }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/smiley-woman-playing-with-cute-dog-up-adoption_23-2148682991.jpg"
          imageAlt="PawsHome Shelter interior with animals and staff"
          imagePosition="right"
          buttons={[{ text: "Volunteer With Us", href: "contact" }]}
        />
      </div>

      <div id="pets" data-section="pets">
        <ProductCardFour
          title="Meet Our Adoptable Pets"
          description="Each of these wonderful animals is waiting for their forever home. Click to learn more about their personality and needs."
          tag="Ready for Adoption"
          tagIcon={Sparkles}
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="slide-up"
          gridVariant="uniform-all-items-equal"
          products={[
            {
              id: "1",              name: "Max",              price: "Adoption Fee: $150",              variant: "Golden Retriever • 3 years old",              imageSrc: "https://img.b2bpic.net/free-photo/funny-newborn-puppies-sleep-near-basket-blanket_169016-11523.jpg",              imageAlt: "Max the Golden Retriever",              isFavorited: false
            },
            {
              id: "2",              name: "Whiskers",              price: "Adoption Fee: $75",              variant: "Tabby Cat • 2 years old",              imageSrc: "https://img.b2bpic.net/free-photo/four-cute-golden-retriever-puppies-resting-grass-ground_181624-26268.jpg",              imageAlt: "Whiskers the tabby cat",              isFavorited: false
            },
            {
              id: "3",              name: "Daisy",              price: "Adoption Fee: $200",              variant: "Labrador • 4 years old",              imageSrc: "https://img.b2bpic.net/free-photo/closeup-shot-labrador-retriever-puppies-mother-green-grass_181624-57165.jpg",              imageAlt: "Daisy the Labrador",              isFavorited: false
            },
            {
              id: "4",              name: "Hopper",              price: "Adoption Fee: $50",              variant: "Holland Lop Rabbit • 1 year old",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-black-dachshund-puppies_342744-529.jpg",              imageAlt: "Hopper the rabbit",              isFavorited: false
            }
          ]}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureBorderGlow
          title="Why Choose PawsHome"
          description="We go above and beyond to ensure every animal receives the best care and finds the right home."
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          features={[
            {
              icon: Stethoscope,
              title: "Medical Excellence",              description: "Full veterinary care, vaccinations, spaying/neutering, and behavioral assessments for every animal."
            },
            {
              icon: Users,
              title: "Loving Community",              description: "Our dedicated volunteers provide individualized attention and socialization for all pets."
            },
            {
              icon: CheckCircle,
              title: "Perfect Matches",              description: "Careful matching process ensures lasting, happy relationships between pets and families."
            },
            {
              icon: Home,
              title: "Forever Home Guarantee",              description: "Lifelong support for adoptive families and a safety net if circumstances change."
            },
            {
              icon: Zap,
              title: "Quick Adoption Process",              description: "Streamlined application and approval process so pets find homes faster."
            },
            {
              icon: Award,
              title: "Award-Winning Care",              description: "Recognized by local and state animal welfare organizations for excellence in rescue work."
            }
          ]}
        />
      </div>

      <div id="metrics" data-section="metrics">
        <MetricCardThree
          title="Our Impact"
          description="Every number represents a life changed and a family made whole."
          textboxLayout="default"
          useInvertedBackground="invertDefault"
          animationType="slide-up"
          metrics={[
            {
              id: "1",              icon: Heart,
              title: "Animals Rescued",              value: "2,847+"
            },
            {
              id: "2",              icon: Home,
              title: "Forever Homes",              value: "2,634"
            },
            {
              id: "3",              icon: Users,
              title: "Active Volunteers",              value: "156"
            },
            {
              id: "4",              icon: Smile,
              title: "Happy Families",              value: "100%"
            }
          ]}
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardSix
          title="Stories from Our Families"
          description="Hear from real families whose lives have been transformed by their adoptions."
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          testimonials={[
            {
              id: "1",              name: "Sarah Mitchell",              handle: "@sarahmitchell",              testimonial: "Adopting Max from PawsHome was the best decision ever. The staff was so caring and helped us find the perfect fit for our family!",              imageSrc: "https://img.b2bpic.net/free-photo/front-view-beautiful-man_23-2148780802.jpg",              imageAlt: "Sarah Mitchell"
            },
            {
              id: "2",              name: "David Chen",              handle: "@davchen89",              testimonial: "The entire adoption process was smooth and they genuinely care about making sure pets go to loving homes. Highly recommend!",              imageSrc: "https://img.b2bpic.net/free-vector/variety-women_23-2147511800.jpg",              imageAlt: "David Chen"
            },
            {
              id: "3",              name: "Emma Rodriguez",              handle: "@emmavida",              testimonial: "Whiskers has brought so much joy to our home. PawsHome's team gave us all the information we needed to welcome her properly.",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-beautiful-woman-posing_23-2148677662.jpg",              imageAlt: "Emma Rodriguez"
            },
            {
              id: "4",              name: "James Thompson",              handle: "@jthompson_",              testimonial: "The volunteers are amazing! They helped us understand our rescue dog's needs and now she's thriving. Best shelter ever!",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-young-beautiful-smiling-hipster-girl-trendy-summer-checkered-shirt-jeans-clothes_158538-3329.jpg",              imageAlt: "James Thompson"
            },
            {
              id: "5",              name: "Lisa Park",              handle: "@lisapark_home",              testimonial: "We've adopted twice from PawsHome and both experiences were wonderful. They truly want what's best for the animals.",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-view-pleased-young-blonde-woman_141793-116583.jpg",              imageAlt: "Lisa Park"
            },
            {
              id: "6",              name: "Michael Lewis",              handle: "@mikelewis_",              testimonial: "Daisy is part of our family now. The support and guidance from PawsHome has been invaluable. Thank you for everything!",              imageSrc: "https://img.b2bpic.net/free-photo/woman-with-blond-short-hair-tanned-smiling-cute-gazing-camera-with-friendly_176420-44610.jpg",              imageAlt: "Michael Lewis"
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Get Involved"
          tagIcon={Heart}
          title="Stay Connected"
          description="Subscribe to our newsletter for adoption updates, volunteer opportunities, and heartwarming success stories from our community."
          useInvertedBackground="invertDefault"
          imageSrc="https://img.b2bpic.net/free-photo/cute-little-dog-with-owners-pet-shop_23-2148872591.jpg"
          imageAlt="PawsHome volunteers with animals"
          mediaPosition="right"
          inputPlaceholder="Enter your email"
          buttonText="Subscribe"
          termsText="We respect your privacy and will never spam you. Unsubscribe anytime."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterCard
          logoText="PawsHome"
          copyrightText="© 2025 PawsHome Animal Shelter. All rights reserved. Helping animals find forever homes."
          socialLinks={[
            {
              icon: Heart,
              href: "https://facebook.com/pawshomeshelter",              ariaLabel: "Follow us on Facebook"
            },
            {
              icon: Share2,
              href: "https://instagram.com/pawshomeshelter",              ariaLabel: "Follow us on Instagram"
            },
            {
              icon: Zap,
              href: "https://twitter.com/pawshome",              ariaLabel: "Follow us on Twitter"
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}