"use client";

import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleFullscreen from '@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen';
import FaqSplitText from '@/components/sections/faq/FaqSplitText';
import ContactSplit from '@/components/sections/contact/ContactSplit';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import { Mail } from 'lucide-react';

export default function ContactPage() {
  return (
    <ThemeProvider
      defaultButtonVariant="text-shift"
      defaultTextAnimation="background-highlight"
      borderRadius="soft"
      contentWidth="mediumSmall"
      sizing="mediumLargeSizeMediumTitles"
      background="none"
      cardStyle="layered-gradient"
      primaryButtonStyle="double-inset"
      secondaryButtonStyle="radial-glow"
      headingFontWeight="medium"
    >
      <div id="nav" data-section="nav">
        <NavbarStyleFullscreen 
          navItems={[
            { name: "Home", id: "/" },
            { name: "Destinations", id: "/destinations" },
            { name: "Culture", id: "/culture" },
            { name: "Plan Your Visit", id: "/contact" }
          ]}
          brandName="Estonia"
          bottomLeftText="Discover the North"
          bottomRightText="visit@estonia.com"
        />
      </div>

      <div id="faq" data-section="faq">
        <FaqSplitText
          sideTitle="Plan Your Visit"
          sideDescription="Find answers to common questions about traveling to and exploring Estonia."
          useInvertedBackground="noInvert"
          textPosition="left"
          showCard={true}
          faqs={[
            {
              id: "1",              title: "When is the best time to visit Estonia?",              content: "Estonia is beautiful year-round. Summer (June-August) offers long days and warm weather perfect for outdoor activities. Winter brings magical snow and northern lights, while spring and autumn showcase stunning foliage and fewer crowds."
            },
            {
              id: "2",              title: "Do I need a visa to visit Estonia?",              content: "EU and EEA citizens can stay indefinitely with an ID card. Most other nationalities can visit visa-free for up to 90 days. Check official government sites for your specific nationality requirements."
            },
            {
              id: "3",              title: "What's the best way to get around Estonia?",              content: "Public transport is excellent and affordable. Buses connect all major cities, while trains offer scenic routes. Many visitors rent cars for island exploration. Tallinn is very walkable, and e-scooters are popular in the capital."
            },
            {
              id: "4",              title: "How much does a typical trip cost?",              content: "Estonia is very affordable compared to Western Europe. Budget travelers can get by on €40-60/day, while mid-range visitors should budget €80-150/day. Food and accommodation are reasonably priced."
            },
            {
              id: "5",              title: "What language is spoken in Estonia?",              content: "Estonian is the official language, but English is widely spoken, especially in Tallinn and among younger people. Learning a few basic Estonian words will delight locals."
            },
            {
              id: "6",              title: "What are must-see attractions in Tallinn?",              content: "Don't miss the UNESCO Old Town with its medieval architecture, Alexander Nevsky Cathedral, Toompea Castle, the city walls, and local markets. For modern Estonia, visit KUMU art museum and the Digital Museum."
            }
          ]}
        />
      </div>

      <div id="contact" data-section="contact">
        <ContactSplit
          tag="Stay Connected"
          title="Get Latest Estonia Travel Updates"
          description="Subscribe to our newsletter for travel tips, cultural insights, seasonal updates, and exclusive offers about exploring Estonia."
          useInvertedBackground="invertDefault"
          imageSrc="https://img.b2bpic.net/free-photo/rustic-street-lamp-outside-photo_482257-36205.jpg"
          imageAlt="estonia sunset landscape scenic beautiful"
          mediaPosition="right"
          tagIcon={Mail}
          inputPlaceholder="your.email@example.com"
          buttonText="Subscribe"
          termsText="We respect your privacy. Unsubscribe anytime. Your Estonia adventure awaits!"
          onSubmit={(email) => console.log('Newsletter signup:', email)}
        />
      </div>

      <div id="additional-contact" data-section="additional-contact">
        <ContactSplit
          tag="Get in Touch"
          title="Need Personal Travel Assistance?"
          description="Our travel experts are here to help you plan the perfect Estonian adventure. From custom itineraries to local recommendations, we'll make your trip unforgettable."
          useInvertedBackground="noInvert"
          imageSrc="https://img.b2bpic.net/free-photo/young-woman-sauna-with-cap-her-head-sits-table-drinks-herbal-tea-enjoying-wellness-day_343596-4647.jpg"
          imageAlt="estonia sauna wellness traditional relaxation"
          mediaPosition="left"
          tagIcon={Mail}
          inputPlaceholder="your.email@example.com"
          buttonText="Contact Us"
          termsText="Reach out today and let us help you discover the best of Estonia!"
          onSubmit={(email) => console.log('Personal assistance request:', email)}
        />
      </div>

      <FooterBaseCard
        logoText="Estonia"
        columns={[
          {
            title: "Explore",            items: [
              { label: "Destinations", href: "/destinations" },
              { label: "Cultural Sites", href: "/culture" },
              { label: "Islands & Nature", href: "/destinations" },
              { label: "Travel Guide", href: "/destinations" }
            ]
          },
          {
            title: "Visit",            items: [
              { label: "Plan Your Trip", href: "/contact" },
              { label: "Accommodation", href: "/destinations" },
              { label: "Transportation", href: "/destinations" },
              { label: "Visa Information", href: "/contact" }
            ]
          },
          {
            title: "Discover",            items: [
              { label: "Estonian Culture", href: "/culture" },
              { label: "Local Events", href: "/culture" },
              { label: "Food & Dining", href: "/culture" },
              { label: "Shopping", href: "/destinations" }
            ]
          },
          {
            title: "Connect",            items: [
              { label: "Contact Us", href: "mailto:visit@estonia.com" },
              { label: "Social Media", href: "/contact" },
              { label: "Newsletter", href: "/contact" },
              { label: "Feedback", href: "/contact" }
            ]
          }
        ]}
        copyrightText="© 2025 Estonia Tourism. All rights reserved. Discover the North."
        onPrivacyClick={() => console.log('Privacy policy clicked')}
      />
    </ThemeProvider>
  );
}
