"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import Link from "next/link";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import ProductCardTwo from '@/components/sections/product/ProductCardTwo';
import FooterMedia from '@/components/sections/footer/FooterMedia';

export default function SystemsPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="elastic-effect"
      defaultTextAnimation="background-highlight"
      borderRadius="sharp"
      contentWidth="small"
      sizing="largeSmall"
      background="none"
      cardStyle="elevated"
      primaryButtonStyle="flat"
      secondaryButtonStyle="layered"
      headingFontWeight="extrabold"
    >
      <div id="nav" data-section="nav">
        <NavbarLayoutFloatingOverlay
          brandName="BASE"
          navItems={[
            { name: "Systems", id: "/systems" },
            { name: "Performance", id: "/performance" },
            { name: "Build", id: "/build" },
            { name: "Field Tests", id: "/field-tests" },
            { name: "Support", id: "/support" }
          ]}
          button={{ text: "Shop", href: "#shop" }}
          className="backdrop-blur-md border border-gray-300"
        />
      </div>

      <div id="systems" data-section="systems">
        <ProductCardTwo
          title="Systems Overview"
          description="Modular lineup engineered for precision across nearfield, reference, and flagship applications. Open datasheets, detailed specs, and configurator tools for each model."
          products={[
            {
              id: "base-one",
              brand: "BASE",
              name: "BASE One",
              price: "$2,495",
              rating: 5,
              reviewCount: "18 verified setups",
              imageSrc: "https://img.b2bpic.net/free-photo/square-music-speaker-control-knobs-closeup-details_169016-51505.jpg",
              imageAlt: "BASE One compact nearfield monitor speaker"
            },
            {
              id: "base-two",
              brand: "BASE",
              name: "BASE Two",
              price: "$4,295",
              rating: 5,
              reviewCount: "34 verified setups",
              imageSrc: "https://img.b2bpic.net/free-photo/audio-columns-are-system-several-pieces-close-up-audio-systems_78492-3673.jpg",
              imageAlt: "BASE Two room reference monitor speaker"
            },
            {
              id: "base-studio",
              brand: "BASE",
              name: "BASE Studio",
              price: "$7,495",
              rating: 5,
              reviewCount: "12 verified setups",
              imageSrc: "https://img.b2bpic.net/free-photo/crop-amplifier-black_23-2147781794.jpg",
              imageAlt: "BASE Studio flagship monitoring system"
            }
          ]}
          textboxLayout="default"
          animationType="slide-up"
          gridVariant="three-columns-all-equal-width"
          useInvertedBackground="noInvert"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="https://img.b2bpic.net/free-photo/press-reporter-fallowing-leads-case_23-2149579709.jpg"
          imageAlt="BASE laboratory testing environment"
          logoText="BASE"
          copyrightText="© 2025 BASE Audio Systems. All rights reserved."
          columns={[
            {
              title: "Products",
              items: [
                { label: "BASE One", href: "/systems" },
                { label: "BASE Two", href: "/systems" },
                { label: "BASE Studio", href: "/systems" },
                { label: "Configurator", href: "/build" }
              ]
            },
            {
              title: "Resources",
              items: [
                { label: "Measurement Reports", href: "/performance" },
                { label: "Quick Start", href: "/support" },
                { label: "Field Tests", href: "/field-tests" },
                { label: "Technical Specs", href: "/performance" }
              ]
            },
            {
              title: "Company",
              items: [
                { label: "About", href: "/about" },
                { label: "Support", href: "/support" },
                { label: "Contact", href: "/contact" },
                { label: "Careers", href: "/careers" }
              ]
            }
          ]}
        />
      </div>
    </ThemeProvider>
  );
}