﻿/* ---------- Genel ve Reset Ayarları ---------- */
html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background-color: #F8F8F8;
}

* {
    box-sizing: border-box;
}

/* YENİ EKLENEN KAPSAYICI */
.body-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ---------- Ana Konteyner ve İçerik ---------- */
.genel {
    max-width: 960px;
    margin-right: auto;
    margin-left: auto;
}

.orta {
    padding-top: 10px;
    padding-bottom: 10px;
}

h2, h3 {
    padding: 0px;
    margin: 0px;
    line-height: 18px;
}

h4 {
    padding: 0px;
    margin: 0px;
    color: #999999;
}

.ortala {
    text-align: center;
    padding: 10px 0px 10px 0px;
}

.ortala a {
    color: #333333;
}

/* ---------- Profil ve Menü ---------- */
.me {
    background-position: left;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 85px;
    background-image: url('./img/me.png');
    background-repeat: no-repeat;
}

.beyaz {
    background-color: #FFFFFF;
    padding: 20px;
    border-bottom: 1px solid #EBEBEB;
    box-shadow: 1px 1px 3px #eee;
    width: 100%;
    border-radius: 5px;
}

.sonmenu {
    padding: 0px;
    width: auto;
    margin: 16px 0px 0px 0px;
    float: right;
}

.sonmenu li {
    list-style-type: none;
    padding: 0 10px;
    float: left;
    text-align: center;
}

.sonmenu li a {
    color: #333333;
}

/* ---------- Responsive Ayarlar ---------- */
@media (max-width: 1000px) {
    
.body-wrapper {
        align-items: flex-start; /* Mobil için üste hizala */
    }


    .row-fluid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .span5, .span7, .span12 {
        width: 100% !important;
        margin-left: 0 !important;
        float: none !important;
    }
    
    div.me {
        text-align: center;
        background-position: center top;
        padding-top: 180px;
        padding-left: 0;
        background-image: url('./img/res-profile-photo.png');
    }

.sonmenu {
    float: none;
    width: 100%;
    text-align: center;
    margin: 20px 0 0 0; /* Üstten biraz boşluk bırakalım */
    padding: 0;
    display: flex; /* Flexbox'ı aktive edelim */
    flex-direction: column; /* Elemanları dikey sıralayalım */
    gap: 10px; /* Her menü elemanı arasına 10px boşluk koyalım */
}

.sonmenu li {
    float: none;
    display: block; /* inline-block yerine block kullanalım */
    padding: 0; /* İç padding'i sıfırlayıp linke verelim */
    width: 100%; /* Liste elemanı tam genişliği kapsasın */
}

/* Her bir menü linkine buton stili verelim */
.sonmenu li a {
    display: block; /* Linkin tüm alanı tıklanabilir olsun */
    padding: 15px 10px; /* İç boşluklar */
    background-color: #f5f5f5; /* Hafif bir arka plan rengi */
    border-radius: 5px; /* Köşeleri yuvarlatalım */
    text-decoration: none;
    transition: all 0.2s ease-in-out; /* Yumuşak geçiş efekti */
}

/* Linkin üzerine gelince (hover) efekti */
.sonmenu li a:hover {
    background-color: #e9e9e9;
    transform: scale(1.02); /* Hafifçe büyüme efekti */
}
} /* <--- @MEDIA BLOĞUNU KAPATAN PARANTEZ BURADA OLMALI */

/* ---------- Modal Stilleri (Kompakt Versiyon) ---------- */
.modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.66);
  justify-content:center;
  align-items:center;
  padding:20px;
  z-index:1000
}
.modal.active{
  display:flex
}
.modal-content{
  position:relative;
  background:#fff;
  border-radius:10px;
  max-width:520px;
  width:100%;
  /* DİKEY BOŞLUK AZALTILDI */
  padding: 20px 25px; 
  font-family:'Roboto Condensed', sans-serif;
  max-height: 95vh;
  overflow-y: auto;  
  animation: none;
}
.close-btn{
  position:absolute;
  top:14px;
  right:14px;
  width:40px;
  height:40px;
  border-radius:50%;
  background:#d9534f;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 2px 4px rgba(0,0,0,.15);
  transition:background .2s;
  border: none;
  font-size: 0;
}
.close-btn i{
  color:#fff;
  font-size:20px
}
.close-btn:hover{
  background:#c03c38
}
.modal-content h2{
  color:#d9534f;
  font-size:1.35rem;
  /* DİKEY BOŞLUK AZALTILDI */
  margin-bottom: 10px;
  font-weight: 700;
}

/* İletişim alternatifleri için genel sarmalayıcı */
.contact-alternatives {
  text-align: center;
  margin-bottom: 10px; /* DİKEY BOŞLUK AZALTILDI */
}

.alternative-text {
  font-size: 1rem;
  color: #666;
  margin-bottom: 10px; /* DİKEY BOŞLUK AZALTILDI */
}

/* Sosyal medya ikonları */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px; /* DİKEY BOŞLUK AZALTILDI */
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: #f0f0f0;
  border-radius: 50%;
  color: #333;
  font-size: 22px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.social-icons a:hover {
  background-color: #d9534f;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* E-posta linki */
.email-link {
  display: inline-block;
  padding: 8px 18px; /* DİKEY BOŞLUK AZALTILDI */
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  color: #495057;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.email-link:hover {
  background-color: #e9ecef;
  border-color: #ced4da;
  color: #000;
}

/* Ayırıcı çizgi */
.form-separator {
  border: 0;
  height: 1px;
  background-color: #e0e0e0;
  /* DİKEY BOŞLUK AZALTILDI */
  margin: 15px auto; 
}

/* Form elemanları */
.modal-content label{
  display:block;
  font-weight:bold;
  /* DİKEY BOŞLUK AZALTILDI */
  margin-top: 10px; 
  font-size:.93rem
}
.modal-content input, .modal-content textarea{
  width:100%;
  padding:8px; /* DİKEY BOŞLUK AZALTILDI */
  border:1px solid #ccc;
  border-radius:4px;
  font-size:.95rem;
  margin-top:4px
}
.modal-content textarea{
  resize:vertical;
  /* YÜKSEKLİK AZALTILDI: En büyük etkiyi bu yapacak */
  min-height: 90px;
}
.g-recaptcha{
  margin-top: 10px; /* DİKEY BOŞLUK AZALTILDI */
  /* reCAPTCHA'nın kapladığı alanı küçültmek için transform kullanıyoruz */
  transform: scale(0.95);
  transform-origin: 0 0;
}
button.send-btn{
  margin-top: 15px; /* DİKEY BOŞLUK AZALTILDI */
  padding:10px 20px;
  background:#007bff;
  color:#fff;
  border:0;
  border-radius:4px;
  font-size:1rem;
  cursor:pointer;
  transition:background .25s;
  font-weight: 700;
}
button.send-btn:hover{
  background:#0056b3
}

.modal-open {
  overflow: hidden;
  height: 100%;
}

/* reCAPTCHA ve Gönder Butonunu Yan Yana Hizalama */
.form-footer {
  display: flex;
  align-items: center; /* Buton ve reCAPTCHA'yı dikeyde ortalar */
  justify-content: space-between; /* Aralarına boşluk bırakarak iki uca yaslar */
  flex-wrap: wrap; /* Çok dar ekranlarda alt alta inmelerini sağlar */
  gap: 15px; /* Alt alta indiklerinde aralarında boşluk bırakır */
  margin-top: 15px;
}

/* Flexbox'a geçtiğimiz için reCAPTCHA'nın eski boşluklarını ve transformunu sıfırlıyoruz */
.form-footer .g-recaptcha {
  margin-top: 0;
  transform: none; /* Eski ölçeklendirmeyi kaldırıyoruz */
}

/* Butonun da eski üst boşluğunu sıfırlıyoruz */
.form-footer .send-btn {
  margin-top: 0;
}

/* Form Bildirim Mesajları Stili */
#form-message {
  /* Başlangıçta gizli */
  display: none; 
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  border: 1px solid transparent;
}

/* Başarı mesajı (yeşil) */
#form-message.success {
  display: block;
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

/* Hata mesajı (kırmızı) */
#form-message.error {
  display: block;
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}