"use client";

import Link from "next/link";
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from "@/components/navbar/NavbarStyleCentered/NavbarStyleCentered";
import HeroBillboard from "@/components/sections/hero/HeroBillboard";
import AboutMetric from "@/components/sections/about/AboutMetric";
import FeatureCardTwentyThree from "@/components/sections/feature/FeatureCardTwentyThree";
import FooterSimple from "@/components/sections/footer/FooterSimple";
import { Shield, AlertCircle, MapPin, Users } from "lucide-react";

export default function SafetyPage() {
  const navItems = [
    { name: "Home", id: "hero" },
    { name: "Services", id: "services" },
    { name: "Smart Map", id: "map" },
    { name: "Marketplace", id: "marketplace" },
    { name: "Safety", id: "safety" },
  ];

  const footerColumns = [
    {
      title: "Platform",
      items: [
        { label: "Home", href: "/" },
        { label: "Services", href: "/services" },
        { label: "Smart Map", href: "/services" },
        { label: "Marketplace", href: "/marketplace" },
      ],
    },
    {
      title: "Resources",
      items: [
        { label: "Travel Guide", href: "#" },
        { label: "Safety Tips", href: "/safety" },
        { label: "FAQ", href: "#faq" },
        { label: "Blog", href: "#" },
      ],
    },
    {
      title: "Company",
      items: [
        { label: "About Us", href: "/about" },
        { label: "Contact", href: "/contact" },
        { label: "Careers", href: "#" },
        { label: "Press", href: "#" },
      ],
    },
    {
      title: "Legal",
      items: [
        { label: "Privacy Policy", href: "#" },
        { label: "Terms of Service", href: "#" },
        { label: "Cookie Policy", href: "#" },
        { label: "Disclaimer", href: "#" },
      ],
    },
  ];

  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="reveal-blur"
      borderRadius="soft"
      contentWidth="small"
      sizing="mediumLargeSizeMediumTitles"
      background="blurBottom"
      cardStyle="gradient-radial"
      primaryButtonStyle="flat"
      secondaryButtonStyle="glass"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleCentered
          navItems={navItems}
          button={{ text: "Start Journey", href: "/" }}
          brandName="UzGoTravel"
        />
      </div>

      <div id="safety-hero" data-section="safety-hero">
        <HeroBillboard
          title="Digital Safety at Your Fingertips"
          description="UzGoTravel's comprehensive safety system ensures your peace of mind throughout your Uzbekistan journey. Emergency SOS, location sharing, AI-powered guidance, and 24/7 support."
          background={{ variant: "sparkles-gradient" }}
          tag="Your Protection"
          tagIcon={Shield}
          tagAnimation="slide-up"
          imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ARXL5SBhiCxDGDfEC0NjNgEEsI/digital-safety-panel-with-emergency-numb-1772556384487-cc215705.png?_wi=1"
          imageAlt="Safety emergency panel"
          mediaAnimation="opacity"
          buttons={[
            { text: "Download Safety Guide", href: "/" },
            { text: "Enable Protection Now", href: "/" },
          ]}
          buttonAnimation="slide-up"
        />
      </div>

      <div id="safety-features" data-section="safety-features">
        <FeatureCardTwentyThree
          title="Safety Features"
          description="Advanced protection tools designed for international travelers"
          tag="Protection"
          tagIcon={AlertCircle}
          tagAnimation="slide-up"
          textboxLayout="default"
          useInvertedBackground={false}
          animationType="blur-reveal"
          features={[
            {
              id: "1",
              title: "One-Tap Emergency SOS",
              tags: ["Police", "Ambulance", "Emergency"],
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ARXL5SBhiCxDGDfEC0NjNgEEsI/digital-safety-panel-with-emergency-numb-1772556384487-cc215705.png?_wi=2",
              imageAlt: "Emergency panel",
            },
            {
              id: "2",
              title: "Live Location Sharing",
              tags: ["Real-time", "Trusted Contacts"],
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ARXL5SBhiCxDGDfEC0NjNgEEsI/an-interactive-uzbekistan-map-with-ai-po-1772556385847-8af2c947.png?_wi=3",
              imageAlt: "Location sharing interface",
            },
            {
              id: "3",
              title: "AI-Powered Safety Instructions",
              tags: ["Cultural Tips", "Local Guidance"],
              imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ARXL5SBhiCxDGDfEC0NjNgEEsI/a-friendly-modern-uzbek-boy-character-we-1772556385698-e0249ac4.png?_wi=3",
              imageAlt: "AI assistant guidance",
            },
          ]}
        />
      </div>

      <div id="safety-stats" data-section="safety-stats">
        <AboutMetric
          title="Safety Numbers That Matter"
          useInvertedBackground={true}
          metricsAnimation="slide-up"
          metrics={[
            { icon: Shield, label: "Safety Rating", value: "4.9/5" },
            { icon: Users, label: "Protected Travelers", value: "50,000+" },
            { icon: AlertCircle, label: "Emergency Contacts", value: "102-104" },
            { icon: MapPin, label: "Safe Zones Mapped", value: "150+" },
          ]}
        />
      </div>

      <footer id="footer" data-section="footer">
        <FooterSimple
          columns={footerColumns}
          bottomLeftText="© 2025 UzGoTravel. All rights reserved. Discover Uzbekistan smarter, safer, with AI."
          bottomRightText="Made with innovation for global travelers"
        />
      </footer>
    </ThemeProvider>
  );
}