"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroSplitDualMedia from '@/components/sections/hero/HeroSplitDualMedia';
import FeatureBorderGlow from '@/components/sections/feature/featureBorderGlow/FeatureBorderGlow';
import ProductCardThree from '@/components/sections/product/ProductCardThree';
import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
import BlogCardOne from '@/components/sections/blog/BlogCardOne';
import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve';
import ContactText from '@/components/sections/contact/ContactText';
import FooterBase from '@/components/sections/footer/FooterBase';
import { Bell, Camera, DollarSign, Heart, Home, MapPin, Star } from "lucide-react";

export default function LandingPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="directional-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="mediumSmall"
      sizing="mediumLarge"
      background="floatingGradient"
      cardStyle="outline"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="PropertyHub"
          navItems={[
            { name: "Browse", id: "properties" },
            { name: "Features", id: "features" },
            { name: "Testimonials", id: "testimonials" },
            { name: "Contact", id: "contact" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitDualMedia
          title="Find Your Dream Home Today"
          description="Discover exceptional properties in your ideal location. Browse thousands of listings, filter by your preferences, and connect with trusted real estate professionals."
          tag="Real Estate Marketplace"
          tagIcon={Home}
          buttons={[
            { text: "Browse Properties", href: "#properties" },
            { text: "Schedule Viewing", href: "#contact" }
          ]}
          mediaItems={[
            {
              imageSrc: "https://img.b2bpic.net/free-photo/swimming-pool-beach-luxury-hotel-type-entertainment-complex-amara-dolce-vita-luxury-hotel-resort-tekirova-kemer-turkey_146671-18719.jpg",              imageAlt: "Modern house exterior"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/full-shot-young-woman-stairs_23-2149204468.jpg",              imageAlt: "Luxury apartment interior"
            }
          ]}
          rating={5}
          ratingText="Trusted by thousands of homebuyers"
          background={{ variant: "plain" }}
        />
      </div>

      <div id="features" data-section="features">
        <FeatureBorderGlow
          title="Advanced Search & Filter Tools"
          description="Find properties that match your exact criteria with our powerful filtering system."
          tag="Platform Features"
          features={[
            {
              icon: MapPin,
              title: "Location-Based Search",              description: "Search by neighborhood, city, or zip code with interactive map integration"
            },
            {
              icon: DollarSign,
              title: "Price Filtering",              description: "Set custom price ranges to narrow down options within your budget"
            },
            {
              icon: Home,
              title: "Property Type Filter",              description: "Filter by houses, apartments, condos, and other property types"
            },
            {
              icon: Star,
              title: "Save Favorites",              description: "Save and organize your favorite properties for quick access"
            },
            {
              icon: Bell,
              title: "Price Alerts",              description: "Receive notifications when new matching properties become available"
            },
            {
              icon: Camera,
              title: "Virtual Tours",              description: "Explore properties with immersive photo galleries and 360° views"
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="properties" data-section="properties">
        <ProductCardThree
          title="Featured Listings"
          description="Browse our handpicked selection of available properties"
          products={[
            {
              id: "prop-001",              name: "Modern Downtown Loft",              price: "$450,000",              imageSrc: "https://img.b2bpic.net/free-photo/full-shot-woman-vacation_23-2149204469.jpg",              imageAlt: "Modern downtown loft exterior",              initialQuantity: 1
            },
            {
              id: "prop-002",              name: "Urban Studio Apartment",              price: "$280,000",              imageSrc: "https://img.b2bpic.net/free-photo/beach-chair-resort_1150-17976.jpg",              imageAlt: "Urban studio apartment",              initialQuantity: 1
            },
            {
              id: "prop-003",              name: "Suburban Family Home",              price: "$595,000",              imageSrc: "https://img.b2bpic.net/free-photo/luxury-travel-full-shot-woman_23-2149204471.jpg",              imageAlt: "Suburban family home",              initialQuantity: 1
            }
          ]}
          textboxLayout="default"
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          buttons={[
            { text: "View All Properties", href: "#contact" }
          ]}
        />
      </div>

      <div id="map-integration" data-section="map-integration">
        <MetricCardTwo
          title="Interactive Map View"
          description="Explore properties directly on our integrated map with location-based filtering"
          metrics={[
            {
              id: "1",              value: "2,500+",              description: "Active Listings"
            },
            {
              id: "2",              value: "50+",              description: "Neighborhoods Covered"
            },
            {
              id: "3",              value: "$150K-$2M",              description: "Price Range"
            },
            {
              id: "4",              value: "Real-Time",              description: "Updated Listings"
            }
          ]}
          gridVariant="uniform-all-items-equal"
          animationType="slide-up"
          textboxLayout="default"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="featured-properties" data-section="featured-properties">
        <BlogCardOne
          title="Premium Properties"
          description="Explore our curated selection of luxury and premium listings"
          blogs={[
            {
              id: "1",              category: "Luxury",              title: "Stunning Waterfront Villa",              excerpt: "Gorgeous waterfront property with private beach access and modern amenities",              imageSrc: "https://img.b2bpic.net/free-photo/happy-caucasian-woman-short-summer-dress-outside-villa-hotel-by-tree-blue-swimming-pool_343596-691.jpg",              imageAlt: "Waterfront villa",              authorName: "Sarah Mitchell",              authorAvatar: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              date: "Available Now"
            },
            {
              id: "2",              category: "Premium",              title: "Exclusive Penthouse Suite",              excerpt: "High-rise penthouse with panoramic city views and luxury finishes",              imageSrc: "https://img.b2bpic.net/free-photo/mother-with-daughter-posing-street_1303-31802.jpg",              imageAlt: "Penthouse apartment",              authorName: "James Cooper",              authorAvatar: "https://img.b2bpic.net/free-photo/happy-businessman-smiling-camera_1163-4660.jpg",              date: "Available Now"
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          carouselMode="buttons"
        />
      </div>

      <div id="testimonials" data-section="testimonials">
        <TestimonialCardTwelve
          testimonials={[
            {
              id: "1",              name: "Emily Johnson",              imageSrc: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              imageAlt: "Emily Johnson"
            },
            {
              id: "2",              name: "Michael Chen",              imageSrc: "https://img.b2bpic.net/free-photo/happy-businessman-smiling-camera_1163-4660.jpg",              imageAlt: "Michael Chen"
            },
            {
              id: "3",              name: "Jennifer Williams",              imageSrc: "https://img.b2bpic.net/free-photo/smiling-homosexual-man-official-suit-looking-camera-close-up-shot-happy-gay-getting-dressed-wedding-ceremony-standing-hotel-room-with-his-partner-background-love-emotion-concept_74855-22675.jpg",              imageAlt: "Jennifer Williams"
            },
            {
              id: "4",              name: "Robert Anderson",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-smiley-business-woman_23-2148603029.jpg",              imageAlt: "Robert Anderson"
            },
            {
              id: "5",              name: "Amanda Lee",              imageSrc: "https://img.b2bpic.net/free-photo/pensive-person-alone-corridor-serious_1262-1042.jpg",              imageAlt: "Amanda Lee"
            },
            {
              id: "6",              name: "David Martinez",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-smiley-business-man_23-2148514859.jpg",              imageAlt: "David Martinez"
            }
          ]}
          cardTitle="Trusted by over 15,000 satisfied homebuyers and sellers"
          cardTag="Success Stories"
          cardTagIcon={Heart}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactText
          text="Ready to find your perfect home? Connect with our expert team today for personalized property recommendations and assistance throughout your home buying journey."
          animationType="entrance-slide"
          buttons={[
            { text: "Get Started", href: "#" },
            { text: "Schedule Consultation", href: "#" }
          ]}
          background={{ variant: "plain" }}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBase
          logoText="PropertyHub"
          copyrightText="© 2025 PropertyHub. All rights reserved."
          columns={[
            {
              title: "Browse",              items: [
                { label: "All Properties", href: "properties" },
                { label: "New Listings", href: "#" },
                { label: "Saved Favorites", href: "#" }
              ]
            },
            {
              title: "Resources",              items: [
                { label: "Buying Guide", href: "#" },
                { label: "Market Insights", href: "#" },
                { label: "Agent Directory", href: "#" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#" },
                { label: "Contact", href: "contact" },
                { label: "Privacy Policy", href: "#" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}