"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarLayoutFloatingOverlay from '@/components/navbar/NavbarLayoutFloatingOverlay/NavbarLayoutFloatingOverlay';
import BlogCardTwo from '@/components/sections/blog/BlogCardTwo';
import FooterMedia from '@/components/sections/footer/FooterMedia';

export default function FieldTestsPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="bounce-effect"
      defaultTextAnimation="entrance-slide"
      borderRadius="rounded"
      contentWidth="mediumLarge"
      sizing="mediumLargeSizeLargeTitles"
      background="circleGradient"
      cardStyle="gradient-mesh"
      primaryButtonStyle="radial-glow"
      secondaryButtonStyle="layered"
      headingFontWeight="bold"
    >
      <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-lg border border-accent/40"
        />
      </div>

      <div id="field-tests" data-section="field-tests">
        <BlogCardTwo
          title="Field Tests"
          description="Proof in real spaces. Case studies with room dimensions, before/after response snapshots, and measured outcomes."
          blogs={[
            {
              id: "studio-test",              tags: ["Studio", "Calibration", "Reference"],
              title: "Studio Calibration Test",              excerpt: "20' x 24' mixing suite. BASE Two paired + subwoofer integration. Frequency response: ±2dB 40Hz–20kHz in-room.",              imageSrc: "https://images.unsplash.com/photo-1470225620780-dba8ba36b745?w=800&q=80",              imageAlt: "Professional studio setup with BASE speakers",              authorName: "Field Test",              date: "Verified Setup"
            },
            {
              id: "loft-test",              tags: ["Loft", "Acoustic", "Correction"],
              title: "Hard-Surface Room Test",              excerpt: "18' x 22' converted loft with concrete and glass. Single BASE Two nearfield with phase correction engaged.",              imageSrc: "https://images.unsplash.com/photo-1487180144351-b8472da7d491?w=800&q=80",              imageAlt: "Loft space acoustic testing",              authorName: "Field Test",              date: "Verified Setup"
            },
            {
              id: "apartment-test",              tags: ["Compact", "Nearfield", "Bedroom"],
              title: "Small Apartment Nearfield",              excerpt: "12' x 14' bedroom studio. BASE One pair on close-field mounting. DSP linearization applied for accurate imaging.",              imageSrc: "https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=800&q=80",              imageAlt: "Compact apartment audio setup",              authorName: "Field Test",              date: "Verified Setup"
            },
            {
              id: "live-room-test",              tags: ["Live", "Performance", "SPL"],
              title: "Live Room High SPL Test",              excerpt: "28' x 30' performance space. BASE Studio system with subwoofer array. 105dB SPL sustained without compression.",              imageSrc: "https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?w=800&q=80",              imageAlt: "Live performance room with professional speakers",              authorName: "Field Test",              date: "Verified Setup"
            }
          ]}
          animationType="scale-rotate"
          textboxLayout="default"
          useInvertedBackground="noInvert"
          carouselMode="buttons"
        />
      </div>

      <div id="footer" data-section="footer">
        <FooterMedia
          imageSrc="https://images.unsplash.com/photo-1478737270239-2f02b77fc618?w=800&q=80"
          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>
  );
}