"use client"

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
import HeroSplit from '@/components/sections/hero/HeroSplit';
import MetricCardSeven from '@/components/sections/metrics/MetricCardSeven';
import FeatureCardThree from '@/components/sections/feature/featureCardThree/FeatureCardThree';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
import { BarChart3 } from 'lucide-react';

export default function DashboardPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="entrance-slide"
      borderRadius="sharp"
      contentWidth="smallMedium"
      sizing="mediumSizeLargeTitles"
      background="none"
      cardStyle="solid"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleApple
          brandName="Dashboard"
          navItems={[
            { name: "Overview", id: "overview" },
            { name: "Analytics", id: "analytics" },
            { name: "Reports", id: "reports" },
            { name: "Settings", id: "settings" }
          ]}
        />
      </div>

      <div id="hero" data-section="hero">
        <HeroSplit
          title="Your Analytics Dashboard"
          description="Monitor your key metrics, track performance, and make data-driven decisions with real-time insights and comprehensive reporting tools."
          background={{ variant: "plain" }}
          tag="Dashboard"
          tagIcon={BarChart3}
          buttons={[
            { text: "View Dashboard", href: "#analytics" },
            { text: "Get Started", href: "#overview" }
          ]}
          imageSrc="https://img.b2bpic.net/free-photo/multi-ethnic-business-team-sitting-table-office-center-speaking-about-project-meeting-broadroom_482257-5077.jpg"
          imageAlt="Dashboard interface overview"
          imagePosition="right"
          className="py-12 md:py-20"
        />
      </div>

      <div id="stats" data-section="stats">
        <MetricCardSeven
          title="Key Performance Indicators"
          description="Track essential metrics that drive your business success"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          metrics={[
            {
              id: "1",              value: "24.5K",              title: "Total Users Active",              items: [
                "↑ 12% from last month",                "Peak activity 2-4 PM",                "95% engagement rate"
              ]
            },
            {
              id: "2",              value: "$128.4K",              title: "Revenue Generated",              items: [
                "↑ 8% growth YoY",                "Avg transaction: $324",                "3 top-performing regions"
              ]
            },
            {
              id: "3",              value: "87.3%",              title: "Conversion Rate",              items: [
                "↑ 5.2% this quarter",                "Mobile: 82% | Desktop: 92%",                "8 improved segments"
              ]
            },
            {
              id: "4",              value: "4.2s",              title: "Avg Page Load Time",              items: [
                "↓ 0.8s improvement",                "90th percentile: 5.1s",                "Database optimized"
              ]
            }
          ]}
        />
      </div>

      <div id="charts" data-section="charts">
        <FeatureCardThree
          title="Analytics & Visualizations"
          description="Interactive charts and graphs to visualize your data"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="invertDefault"
          gridVariant="two-columns-alternating-heights"
          features={[
            {
              id: "01",              title: "Revenue Trends",              description: "Track revenue patterns over time with detailed time-series analysis and forecasting capabilities to predict future trends.",              imageSrc: "https://img.b2bpic.net/free-photo/luxurious-boardroom-space-within-multinational-company-used-meetings_482257-124520.jpg",              imageAlt: "Revenue trend chart"
            },
            {
              id: "02",              title: "User Activity",              description: "Monitor user engagement metrics, session duration, and behavior patterns with heat maps and activity streams.",              imageSrc: "https://img.b2bpic.net/free-vector/dashboard-element-collection_23-2148365528.jpg",              imageAlt: "User activity analytics"
            },
            {
              id: "03",              title: "Performance Metrics",              description: "Analyze system performance, response times, and resource utilization across all infrastructure components.",              imageSrc: "https://img.b2bpic.net/free-photo/luxurious-boardroom-space-within-multinational-company-used-meetings_482257-124520.jpg",              imageAlt: "Performance dashboard"
            },
            {
              id: "04",              title: "Comparative Analysis",              description: "Compare metrics across different time periods, regions, or segments with interactive filtering and drill-down capabilities.",              imageSrc: "https://img.b2bpic.net/free-vector/dashboard-element-collection_23-2148365528.jpg",              imageAlt: "Comparative analysis view"
            }
          ]}
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterBaseReveal
          columns={[
            {
              title: "Product",              items: [
                { label: "Features", href: "overview" },
                { label: "Analytics", href: "analytics" },
                { label: "Reports", href: "reports" }
              ]
            },
            {
              title: "Support",              items: [
                { label: "Documentation", href: "https://example.com/docs" },
                { label: "Help Center", href: "https://example.com/help" },
                { label: "Contact Us", href: "settings" }
              ]
            },
            {
              title: "Company",              items: [
                { label: "About", href: "https://example.com/about" },
                { label: "Blog", href: "https://example.com/blog" },
                { label: "Careers", href: "https://example.com/careers" }
              ]
            }
          ]}
          copyrightText="© 2025 Dashboard Analytics | All rights reserved"
        />
      </div>
    </ThemeProvider>
  );
}