'use client';

import Header from "@/components/Header";
import Footer from "@/components/Footer";

export default function Contact() {
  return (
    <div className="min-h-screen bg-[#003366]">
      <Header />

      <main className="pt-32 pb-16">
        <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
          {/* Başlık */}
          <div className="text-center mb-12">
            <h1 className="text-4xl font-bold text-white mb-4">
              İletişim
            </h1>
            <p className="text-lg text-[#F8F9FA] max-w-2xl mx-auto">
              A2 Metro Hattı projesi hakkında bilgi almak için bizimle iletişime geçebilirsiniz
            </p>
          </div>

          <div className="grid grid-cols-1 lg:grid-cols-2 gap-8">
            {/* Sol Taraf - İletişim Kartları */}
            <div className="space-y-6">
              {/* Adres Kartı */}
              <div className="bg-linear-to-br from-blue-50 to-blue-100 rounded-xl p-6 hover:shadow-lg transition-all duration-300">
                <div className="flex items-start space-x-4">
                  <div className="w-16 h-16 bg-[#004B87] rounded-xl flex items-center justify-center shrink-0">
                    <svg className="w-8 h-8 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                      <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />
                      <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" />
                    </svg>
                  </div>
                  <div className="flex-1">
                    <h3 className="text-lg font-bold text-[#004B87] mb-2">ADRES</h3>
                    <p className="text-gray-700 leading-relaxed">
                      Emniyet Mah. Hipodrom Caddesi No: 5<br />
                      Yenimahalle / Ankara
                    </p>
                  </div>
                </div>
              </div>

              {/* KEP Adresi Kartı */}
              <div className="bg-linear-to-br from-cyan-50 to-cyan-100 rounded-xl p-6 hover:shadow-lg transition-all duration-300">
                <div className="flex items-start space-x-4">
                  <div className="w-16 h-16 bg-[#00B4D8] rounded-xl flex items-center justify-center shrink-0">
                    <svg className="w-8 h-8 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                      <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
                    </svg>
                  </div>
                  <div className="flex-1">
                    <h3 className="text-lg font-bold text-[#004B87] mb-2">KEP ADRESİ</h3>
                    <a
                      href="mailto:ankarabuyuksehirbelediyesi@hs01.kep.tr"
                      className="text-gray-700 hover:text-[#00B4D8] transition-colors break-all"
                    >
                      ankarabuyuksehirbelediyesi@hs01.kep.tr
                    </a>
                  </div>
                </div>
              </div>

              {/* Telefon Kartı */}
              <div className="bg-linear-to-br from-indigo-50 to-indigo-100 rounded-xl p-6 hover:shadow-lg transition-all duration-300">
                <div className="flex items-start space-x-4">
                  <div className="w-16 h-16 bg-[#004B87] rounded-xl flex items-center justify-center shrink-0">
                    <svg className="w-8 h-8 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                      <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z" />
                    </svg>
                  </div>
                  <div className="flex-1">
                    <h3 className="text-lg font-bold text-[#004B87] mb-2">TELEFON</h3>
                    <a
                      href="tel:+903125071000"
                      className="text-xl font-semibold text-gray-700 hover:text-[#00B4D8] transition-colors"
                    >
                      +90 (312) 507 10 00
                    </a>
                  </div>
                </div>
              </div>

              {/* Çalışma Saatleri */}
              <div className="bg-linear-to-br from-green-50 to-green-100 rounded-xl p-6">
                <div className="flex items-start space-x-4">
                  <div className="w-16 h-16 bg-green-600 rounded-xl flex items-center justify-center shrink-0">
                    <svg className="w-8 h-8 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                      <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
                    </svg>
                  </div>
                  <div className="flex-1">
                    <h3 className="text-lg font-bold text-[#004B87] mb-2">ÇALIŞMA SAATLERİ</h3>
                    <p className="text-gray-700">
                      <strong>Hafta İçi:</strong> 08:30 - 17:30<br />
                      <strong>Hafta Sonu:</strong> Kapalı
                    </p>
                  </div>
                </div>
              </div>
            </div>

            {/* Sağ Taraf - Harita */}
            <div className="space-y-4">
              <h3 className="text-xl font-bold text-white mb-4">Konum</h3>
              <div className="rounded-xl overflow-hidden shadow-lg h-[600px]">
                <iframe
                  src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3059.2326827229665!2d32.8548!3d39.9458!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x14d34f190a9c6b1f%3A0x5d3f8b8a8b8a8b8a!2sEmniyet%2C%20Hipodrom%20Cd.%20No%3A5%2C%2006430%20Yenimahalle%2FAnkara!5e0!3m2!1str!2str!4v1234567890123!5m2!1str!2str"
                  width="100%"
                  height="100%"
                  style={{ border: 0 }}
                  allowFullScreen
                  loading="lazy"
                  referrerPolicy="no-referrer-when-downgrade"
                ></iframe>
              </div>

              {/* Haritada Göster Butonu */}
              <a
                href="https://maps.app.goo.gl/82STypmZqeSW0mQC6"
                target="_blank"
                rel="noopener noreferrer"
                className="w-full flex items-center justify-center space-x-2 px-6 py-3 bg-[#00B4D8] text-white rounded-lg hover:bg-[#004B87] transition-colors font-semibold shadow-lg hover:shadow-xl"
              >
                <svg className="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                  <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7" />
                </svg>
                <span>Google Maps'te Aç</span>
              </a>
            </div>
          </div>

          {/* İletişim Formu Bölümü */}
          <div className="mt-16">
            <div className="bg-white rounded-2xl shadow-2xl p-8">
              <div className="text-center mb-8">
                <h2 className="text-3xl font-bold text-[#004B87] mb-4">
                  Bize Ulaşın
                </h2>
                <p className="text-gray-600 max-w-2xl mx-auto">
                  A2 Metro Hattı projesi hakkında sorularınız için aşağıdaki formu doldurabilir veya doğrudan bizimle iletişime geçebilirsiniz.
                </p>
              </div>

              <form className="max-w-2xl mx-auto space-y-6" onSubmit={(e) => {
                e.preventDefault();
                alert('Mesajınız gönderildi! (Demo)');
              }}>
                {/* İki Sütunlu Alan */}
                <div className="grid grid-cols-1 md:grid-cols-2 gap-6">
                  {/* Ad Soyad */}
                  <div>
                    <label htmlFor="contact-name" className="block text-sm font-semibold text-[#004B87] mb-2">
                      Ad Soyad <span className="text-red-500">*</span>
                    </label>
                    <input
                      type="text"
                      id="contact-name"
                      required
                      className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#00B4D8] focus:border-transparent outline-none transition-all text-gray-900 placeholder:text-gray-500"
                      placeholder="Adınız ve Soyadınız"
                    />
                  </div>

                  {/* E-posta */}
                  <div>
                    <label htmlFor="contact-email" className="block text-sm font-semibold text-[#004B87] mb-2">
                      E-posta <span className="text-red-500">*</span>
                    </label>
                    <input
                      type="email"
                      id="contact-email"
                      required
                      className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#00B4D8] focus:border-transparent outline-none transition-all text-gray-900 placeholder:text-gray-500"
                      placeholder="ornek@email.com"
                    />
                  </div>

                  {/* Telefon */}
                  <div>
                    <label htmlFor="contact-phone" className="block text-sm font-semibold text-[#004B87] mb-2">
                      Telefon
                    </label>
                    <input
                      type="tel"
                      id="contact-phone"
                      className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#00B4D8] focus:border-transparent outline-none transition-all text-gray-900 placeholder:text-gray-500"
                      placeholder="0(5__) ___ __ __"
                    />
                  </div>

                  {/* Konu */}
                  <div>
                    <label htmlFor="contact-subject" className="block text-sm font-semibold text-[#004B87] mb-2">
                      Konu <span className="text-red-500">*</span>
                    </label>
                    <input
                      type="text"
                      id="contact-subject"
                      required
                      className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#00B4D8] focus:border-transparent outline-none transition-all text-gray-900 placeholder:text-gray-500"
                      placeholder="Mesaj konusu"
                    />
                  </div>
                </div>

                {/* Mesaj */}
                <div>
                  <label htmlFor="contact-message" className="block text-sm font-semibold text-[#004B87] mb-2">
                    Mesajınız <span className="text-red-500">*</span>
                  </label>
                  <textarea
                    id="contact-message"
                    required
                    rows={6}
                    className="w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-[#00B4D8] focus:border-transparent outline-none transition-all resize-none text-gray-900 placeholder:text-gray-500"
                    placeholder="Lütfen mesajınızı yazınız..."
                  ></textarea>
                </div>

                {/* KVKK Onayı */}
                <div className="flex items-start">
                  <input
                    type="checkbox"
                    id="contact-kvkk"
                    required
                    className="w-4 h-4 mt-1 text-[#00B4D8] border-gray-300 rounded focus:ring-[#00B4D8]"
                  />
                  <label htmlFor="contact-kvkk" className="ml-3 text-sm text-gray-700">
                    <span className="text-red-500">*</span> Kişisel verilerimin işlenmesine ilişkin{' '}
                    <a href="#" className="text-[#00B4D8] hover:underline">KVKK Aydınlatma Metni</a>'ni okudum ve kabul ediyorum.
                  </label>
                </div>

                {/* Gönder Butonu */}
                <div className="text-center pt-4">
                  <button
                    type="submit"
                    className="px-8 py-3 bg-[#00B4D8] text-white rounded-lg hover:bg-[#004B87] transition-colors font-semibold shadow-lg hover:shadow-xl flex items-center justify-center space-x-2 mx-auto"
                  >
                    <svg className="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                      <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 19l9 2-9-18-9 18 9-2zm0 0v-8" />
                    </svg>
                    <span>Gönder</span>
                  </button>
                </div>
              </form>
            </div>
          </div>
        </div>
      </main>

      <Footer />
    </div>
  );
}