"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroSplitDualMedia from '@/components/sections/hero/HeroSplitDualMedia';
import BlogCardOne from '@/components/sections/blog/BlogCardOne';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterSimple from '@/components/sections/footer/FooterSimple';
import { Sparkles, BookOpen, Mail } from "lucide-react";

export default function BlogPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="slide-background"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="mediumSmall"
      sizing="medium"
      background="floatingGradient"
      cardStyle="gradient-radial"
      primaryButtonStyle="primary-glow"
      secondaryButtonStyle="glass"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen
          brandName="BlogHub"
          navItems={[
            { name: "Home", id: "home" },
            { name: "Articles", id: "blog" },
            { name: "Categories", id: "categories" },
            { name: "About", id: "about" },
            { name: "Contact", id: "contact" }
          ]}
          bottomLeftText="© 2025 BlogHub"
          bottomRightText="hello@bloghub.com"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplitDualMedia
          title="Discover Insights & Stories That Matter"
          description="Welcome to our blog hub. Explore in-depth articles about technology, design, business strategy, and productivity to elevate your knowledge and inspire your next breakthrough."
          tag="Blog Hub"
          tagIcon={Sparkles}
          background={{ variant: "plain" }}
          buttons={[
            { text: "Explore Articles", href: "#blog" },
            { text: "Subscribe", href: "#newsletter" }
          ]}
          mediaItems={[
            {
              imageSrc: "https://img.b2bpic.net/free-photo/hands-writing-notebook_1150-162.jpg",              imageAlt: "Blog writing and content creation workspace"
            },
            {
              imageSrc: "https://img.b2bpic.net/free-photo/e-mail-global-communications-connection-social-networking-concept_53876-134026.jpg",              imageAlt: "Newsletter subscription and email communication"
            }
          ]}
          rating={5}
          ratingText="Trusted by 50K+ readers"
        />
      </div>

      <div id="blog" data-section="blog">
        <BlogCardOne
          title="Latest Articles"
          description="Stay informed with our curated collection of thought-provoking articles and industry insights"
          tag="Blog"
          tagIcon={BookOpen}
          blogs={[
            {
              id: "1",              category: "Technology",              title: "The Future of Artificial Intelligence in 2025",              excerpt: "Exploring how AI is transforming industries and what it means for the future of work and innovation.",              imageSrc: "https://img.b2bpic.net/free-photo/working-office_1150-129.jpg",              imageAlt: "AI and technology innovation",              authorName: "Sarah Johnson",              authorAvatar: "https://img.b2bpic.net/free-photo/close-up-portrait-young-handsome-successful-man_1163-5475.jpg",              date: "15 Jan 2025"
            },
            {
              id: "2",              category: "Design",              title: "Principles of Modern UX Design",              excerpt: "Master the core principles that make digital experiences intuitive, beautiful, and user-centered.",              imageSrc: "https://img.b2bpic.net/free-photo/view-business-desk-assortment_23-2148128298.jpg",              imageAlt: "UX design principles and creative workspace",              authorName: "Michael Chen",              authorAvatar: "https://img.b2bpic.net/free-photo/happy-businessman-smiling-camera_1163-4660.jpg",              date: "12 Jan 2025"
            },
            {
              id: "3",              category: "Business",              title: "Scaling Your Startup: Key Strategies for Growth",              excerpt: "Learn proven strategies to scale your business sustainably and attract investors in today's competitive market.",              imageSrc: "https://img.b2bpic.net/free-photo/young-woman-with-glasses-cafe_273609-3980.jpg",              imageAlt: "Business growth and startup strategy",              authorName: "Emma Rodriguez",              authorAvatar: "https://img.b2bpic.net/free-photo/portrait-smiley-business-man_23-2148514859.jpg",              date: "10 Jan 2025"
            },
            {
              id: "4",              category: "Productivity",              title: "Tools and Techniques for Maximum Productivity",              excerpt: "Discover the best productivity tools and techniques to optimize your workflow and achieve more in less time.",              imageSrc: "https://img.b2bpic.net/free-photo/working-office_1150-120.jpg",              imageAlt: "Productivity tools and efficient workflow",              authorName: "James Wilson",              authorAvatar: "https://img.b2bpic.net/free-photo/pensive-person-alone-corridor-serious_1262-1042.jpg",              date: "08 Jan 2025"
            }
          ]}
          textboxLayout="default"
          useInvertedBackground="noInvert"
          animationType="slide-up"
          carouselMode="buttons"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Newsletter"
          title="Get Weekly Insights"
          description="Subscribe to our newsletter and receive curated articles, industry trends, and exclusive content delivered to your inbox every week."
          tagIcon={Mail}
          background={{ variant: "sparkles-gradient" }}
          useInvertedBackground="invertDefault"
          imageSrc="https://img.b2bpic.net/free-photo/e-mail-global-communications-connection-social-networking-concept_53876-134026.jpg"
          mediaPosition="right"
          inputPlaceholder="Enter your email address"
          buttonText="Subscribe Now"
          termsText="We respect your privacy. Unsubscribe at any time. No spam, just great content."
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterSimple
          columns={[
            {
              title: "Navigate",              items: [
                { label: "Home", href: "#home" },
                { label: "Articles", href: "#blog" },
                { label: "Categories", href: "#categories" }
              ]
            },
            {
              title: "Resources",              items: [
                { label: "Blog Archive", href: "#" },
                { label: "Guest Writers", href: "#" },
                { label: "Contribute", href: "#" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "#about" },
                { label: "Contact", href: "#contact" },
                { label: "Privacy Policy", href: "#" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Twitter", href: "https://twitter.com" },
                { label: "LinkedIn", href: "https://linkedin.com" },
                { label: "Email", href: "mailto:hello@bloghub.com" }
              ]
            }
          ]}
          bottomLeftText="© 2025 BlogHub. All rights reserved."
          bottomRightText="Made with passion and coffee"
        />
      </div>
    </ThemeProvider>
  );
}