"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import HeroBillboardGallery from '@/components/sections/hero/HeroBillboardGallery';
import BlogCardThree from '@/components/sections/blog/BlogCardThree';
import FeatureBorderGlow from '@/components/sections/feature/featureBorderGlow/FeatureBorderGlow';
import ContactCTA from '@/components/sections/contact/ContactCTA';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { Sparkles, BookOpen, FolderOpen, Mail, Zap, Palette, TrendingUp } from "lucide-react";

export default function BlogPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="hover-magnetic"
      defaultTextAnimation="background-highlight"
      borderRadius="pill"
      contentWidth="mediumLarge"
      sizing="mediumLargeSizeMediumTitles"
      background="none"
      cardStyle="gradient-mesh"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="solid"
      headingFontWeight="bold"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen 
          navItems={[
            { name: "Home", id: "hero" },
            { name: "Articles", id: "blog" },
            { name: "Categories", id: "features" },
            { name: "Subscribe", id: "contact" },
            { name: "About", id: "about" }
          ]}
          brandName="BlogHub"
          bottomLeftText="Insights & Stories"
          bottomRightText="hello@bloghub.com"
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroBillboardGallery 
          title="Welcome to BlogHub"
          description="Discover insightful articles on technology, design, marketing, and creative entrepreneurship. Read stories from industry experts and get inspired."
          tag="Latest Insights"
          tagIcon={Sparkles}
          background={{ variant: "radial-gradient" }}
          buttons={[
            { text: "Browse Articles", href: "blog" },
            { text: "Subscribe Now", href: "contact" }
          ]}
          mediaItems={[
            { imageSrc: "https://img.b2bpic.net/free-photo/working-office_1150-120.jpg", imageAlt: "blog writing content creative workspace" },
            { imageSrc: "https://img.b2bpic.net/free-photo/portrait-smiling-coworkers-looking-revenue-figures-paperwork_482257-126641.jpg", imageAlt: "technology digital innovation startup tech" },
            { imageSrc: "https://img.b2bpic.net/free-photo/person-working-relation-innovation_53876-16535.jpg", imageAlt: "design creative ui ux web design" },
            { imageSrc: "https://img.b2bpic.net/free-photo/businessman-checking-report-tablet_482257-120320.jpg", imageAlt: "marketing strategy business growth analytics" },
            { imageSrc: "https://img.b2bpic.net/free-photo/multiethnic-specialists-engineers-doing-teamwork-modern-production-line_482257-125956.jpg", imageAlt: "productivity workflow tools efficiency planning" }
          ]}
        />
      </div>

      <div id="blog" data-section="blog">
        <BlogCardThree 
          title="Featured Articles"
          description="Explore our latest posts on trending topics, expert insights, and industry analysis"
          tag="Blog"
          tagIcon={BookOpen}
          blogs={[
            {
              id: "1",              category: "Technology",              title: "The Future of AI in Content Creation",              excerpt: "Exploring how artificial intelligence is transforming the way we create, curate, and consume content online.",              imageSrc: "https://img.b2bpic.net/free-photo/portrait-smiling-coworkers-looking-revenue-figures-paperwork_482257-126641.jpg",              imageAlt: "technology digital innovation startup tech",              authorName: "Sarah Mitchell",              authorAvatar: "https://img.b2bpic.net/free-photo/pensive-person-alone-corridor-serious_1262-1042.jpg",              date: "Jan 22, 2025"
            },
            {
              id: "2",              category: "Design",              title: "Minimalist Web Design Trends for 2025",              excerpt: "Discover how less is more in modern web design. A deep dive into minimalism, whitespace, and user experience.",              imageSrc: "https://img.b2bpic.net/free-photo/person-working-relation-innovation_53876-16535.jpg",              imageAlt: "design creative ui ux web design",              authorName: "Alex Johnson",              authorAvatar: "https://img.b2bpic.net/free-photo/smart-looking-teacher_53876-23045.jpg",              date: "Jan 20, 2025"
            },
            {
              id: "3",              category: "Marketing",              title: "Building Your Personal Brand in 2025",              excerpt: "Strategic tips and practical advice for establishing a strong online presence and growing your personal brand.",              imageSrc: "https://img.b2bpic.net/free-photo/businessman-checking-report-tablet_482257-120320.jpg",              imageAlt: "marketing strategy business growth analytics",              authorName: "Emma Rodriguez",              authorAvatar: "https://img.b2bpic.net/free-photo/serene-businessman-with-glasses_1098-719.jpg",              date: "Jan 18, 2025"
            },
            {
              id: "4",              category: "Productivity",              title: "Mastering Remote Work: Tools and Tips",              excerpt: "Learn the best practices and tools for maintaining productivity and work-life balance while working remotely.",              imageSrc: "https://img.b2bpic.net/free-photo/multiethnic-specialists-engineers-doing-teamwork-modern-production-line_482257-125956.jpg",              imageAlt: "productivity workflow tools efficiency planning",              authorName: "Michael Chen",              authorAvatar: "https://img.b2bpic.net/free-photo/pensive-person-alone-corridor-serious_1262-1042.jpg",              date: "Jan 15, 2025"
            },
            {
              id: "5",              category: "Content Writing",              title: "How to Write Engaging Blog Posts",              excerpt: "Master the art of storytelling and learn proven techniques for writing blog posts that captivate your audience.",              imageSrc: "https://img.b2bpic.net/free-photo/ideas-progress-vision-inspiration-design-concept_53876-120004.jpg",              imageAlt: "content writing storytelling journal blog",              authorName: "Lisa Wang",              authorAvatar: "https://img.b2bpic.net/free-photo/smart-looking-teacher_53876-23045.jpg",              date: "Jan 12, 2025"
            },
            {
              id: "6",              category: "Social Media",              title: "Social Media Strategy for Business Growth",              excerpt: "Develop a comprehensive social media strategy that drives engagement, builds community, and increases conversions.",              imageSrc: "https://img.b2bpic.net/free-photo/community-cloud-storage-sync-secure_53876-120425.jpg",              imageAlt: "social media digital marketing trends online engagement",              authorName: "David Park",              authorAvatar: "https://img.b2bpic.net/free-photo/smiling-businessman-face-portrait-wearing-suit_53876-148135.jpg",              date: "Jan 10, 2025"
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          carouselMode="buttons"
        />
      </div>

      <div id="features" data-section="features">
        <FeatureBorderGlow 
          title="Browse by Category"
          description="Find content that interests you with our organized category system"
          tag="Categories"
          tagIcon={FolderOpen}
          features={[
            {
              icon: Zap,
              title: "Technology",              description: "Latest tech trends, innovations, and insights from industry leaders"
            },
            {
              icon: Palette,
              title: "Design",              description: "Creative design principles, trends, and case studies for inspiration"
            },
            {
              icon: TrendingUp,
              title: "Marketing",              description: "Strategic marketing tips, growth hacks, and digital strategies"
            },
            {
              icon: Zap,
              title: "Productivity",              description: "Tools, techniques, and workflows to boost your efficiency"
            },
            {
              icon: BookOpen,
              title: "Writing",              description: "Content creation tips, storytelling, and writing best practices"
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="invertDefault"
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactCTA 
          tag="Stay Updated"
          tagIcon={Mail}
          title="Never Miss an Article"
          description="Subscribe to our newsletter and get curated content delivered directly to your inbox every week. Join thousands of readers who are staying informed."
          buttons={[
            { text: "Subscribe Now", href: "https://example.com/subscribe" },
            { text: "Learn More", href: "#blog" }
          ]}
          background={{ variant: "sparkles-gradient" }}
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal 
          columns={[
            {
              title: "Content",              items: [
                { label: "All Articles", href: "blog" },
                { label: "Categories", href: "features" },
                { label: "Archives", href: "blog" },
                { label: "Subscribe", href: "contact" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About Us", href: "about" },
                { label: "Contact", href: "contact" },
                { label: "Privacy Policy", href: "#" },
                { label: "Terms of Service", href: "#" }
              ]
            },
            {
              title: "Connect",              items: [
                { label: "Twitter", href: "https://twitter.com" },
                { label: "LinkedIn", href: "https://linkedin.com" },
                { label: "Instagram", href: "https://instagram.com" },
                { label: "Email", href: "mailto:hello@bloghub.com" }
              ]
            }
          ]}
          copyrightText="© 2025 BlogHub. All rights reserved."
        />
      </div>
    </ThemeProvider>
  );
}