"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
import MetricCardTen from '@/components/sections/metrics/MetricCardTen';
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';

export default function InsightsPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="directional-hover"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="mediumSmall"
      sizing="medium"
      background="aurora"
      cardStyle="glass-depth"
      primaryButtonStyle="inset-glow"
      secondaryButtonStyle="solid"
      headingFontWeight="normal"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingInline
          brandName="DubaiLux Properties"
          navItems={[
            { name: "Properties", id: "/properties" },
            { name: "About", id: "/about" },
            { name: "Insights", id: "/insights" },
            { name: "Contact", id: "/contact" }
          ]}
          button={{
            text: "Schedule Viewing",
            href: "/contact"
          }}
        />
      </div>

      <div id="insights" data-section="insights">
        <MetricCardTen
          title="Dubai Real Estate Market Insights"
          description="Key metrics showing Dubai's thriving property market and investment opportunities"
          tag="Market Data"
          textboxLayout="default"
          animationType="slide-up"
          useInvertedBackground="noInvert"
          metrics={[
            {
              id: "1",
              title: "Property Value Growth",
              subtitle: "Average annual increase in premium locations",
              category: "Investment",
              value: "+8.5%"
            },
            {
              id: "2",
              title: "Average Price per Sqft",
              subtitle: "Latest market rate across Dubai",
              category: "Market Price",
              value: "AED 3,850"
            },
            {
              id: "3",
              title: "Foreign Investor Share",
              subtitle: "International investment in Dubai real estate",
              category: "Investment",
              value: "45%"
            },
            {
              id: "4",
              title: "Rental Yield Average",
              subtitle: "Typical returns for investment properties",
              category: "Returns",
              value: "6.2%"
            },
            {
              id: "5",
              title: "Properties Sold Monthly",
              subtitle: "Average transactions in Dubai market",
              category: "Volume",
              value: "2,300+"
            },
            {
              id: "6",
              title: "Years Established",
              subtitle: "DubaiLux market presence and expertise",
              category: "Experience",
              value: "15+"
            }
          ]}
        />
      </div>

      <FooterBaseReveal
        columns={[
          {
            title: "Company",
            items: [
              { label: "About Us", href: "/about" },
              { label: "Our Team", href: "/about" },
              { label: "Careers", href: "#" },
              { label: "Blog", href: "#" }
            ]
          },
          {
            title: "Properties",
            items: [
              { label: "Buy Properties", href: "/properties" },
              { label: "Rent Properties", href: "/properties" },
              { label: "Invest", href: "/insights" },
              { label: "Market Insights", href: "/insights" }
            ]
          },
          {
            title: "Support",
            items: [
              { label: "Contact Us", href: "/contact" },
              { label: "FAQ", href: "/contact" },
              { label: "Privacy Policy", href: "#" },
              { label: "Terms & Conditions", href: "#" }
            ]
          }
        ]}
        copyrightText="© 2025 DubaiLux Properties. All rights reserved."
      />
    </ThemeProvider>
  );
}