/* SELECT KUTUSU STİLİ */
select.input-grup {
    flex: 0.6; /* Genişlik ayarı */
    min-width: 110px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    cursor: pointer;
    font-size: 0.9rem;
}

/* --- NAVİGASYON ÇUBUĞU (FİNAL TASARIM) --- */
.navbar {
    width: 90%;             
    max-width: 500px;       
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 10px 20px;
    margin-bottom: 30px;
    
    /* GÖRÜNÜM */
    background: rgba(255, 255, 255, 0.25); 
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px); 

    /* --- KRİTİK DEĞİŞİKLİK BURADA --- */
    /* Popup'ın z-index değeri 9999. Biz bunu 10000 yapıyoruz ki üstte kalsın */
    position: relative; 
    z-index: 10000; 
}

.logo { 
    font-size: 1.1rem; 
    font-weight: bold; 
    color: white;
    white-space: nowrap; /* Logo alt satıra düşmesin */
    display: flex; align-items: center; gap: 8px;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover { color: white; text-shadow: 0 0 5px rgba(255,255,255,0.5); }

/* Dil Butonu */
.lang-switch-nav {
    background: rgba(255,255,255,0.3); 
    color: white;
    padding: 6px 12px; 
    border-radius: 20px; 
    cursor: pointer;
    font-weight: bold; 
    border: 1px solid rgba(255,255,255,0.5);
    font-size: 0.8rem;
    transition: 0.2s;
    white-space: nowrap;
    display: flex; align-items: center; gap: 5px;
}
.lang-switch-nav:hover { background: rgba(255,255,255,0.6); transform: scale(1.05); }

/* --- MOBİL AYARLARI --- */
@media (max-width: 600px) {
    .nav-links { display: none; } /* Telefonda linkleri gizle, yer açılsın */
    
    .navbar {
        justify-content: space-between; /* Logo solda, Dil butonu sağda kalsın */
        padding: 10px 15px;
    }
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh; display: flex; flex-direction: column; align-items: center;
    margin: 0; padding: 20px;
}

/* --- D力L BUTONU --- */
.lang-switch {
    position: absolute; top: 20px; right: 20px;
    background: rgba(255,255,255,0.2); color: white;
    padding: 8px 15px; border-radius: 20px; cursor: pointer;
    font-weight: bold; border: 1px solid rgba(255,255,255,0.4);
    transition: 0.3s; z-index: 10000;
}
.lang-switch:hover { background: rgba(255,255,255,0.4); }

/* --- POPUP --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); display: flex; justify-content: center; align-items: center;
    z-index: 9999; backdrop-filter: blur(5px);
}
.modal-content {
    background-color: #fff; padding: 40px; border-radius: 15px;
    width: 90%; max-width: 450px; text-align: center; position: relative;
}
.modal-btn {
    background: linear-gradient(to right, #ff416c, #ff4b2b); color: white;
    padding: 12px 30px; border: none; border-radius: 25px; font-size: 1.1rem; cursor: pointer;
    margin-top: 25px; transition: 0.3s;
}
.modal-btn:hover { transform: scale(1.05); }

/* --- KART --- */
.card {
    background: rgba(255, 255, 255, 0.96); padding: 2.5rem; border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2); width: 100%; max-width: 500px; margin-top: 0px; margin-bottom: 30px;
}
input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 5px; box-sizing: border-box; }
.kisi-satir { display: flex; gap: 10px; margin-bottom: 10px; }
.input-isim { flex: 1; } .input-mail { flex: 1.5; }
.btn-sil { background: #ffeded; color: #dc3545; border:none; width: 40px; border-radius:8px; cursor:pointer; }
.btn-ekle { width: 100%; padding: 12px; background: #e9ecef; border: 2px dashed #ccc; border-radius: 8px; cursor: pointer; font-weight: bold; }
.btn-gonder { width: 100%; padding: 15px; margin-top: 20px; border: none; border-radius: 30px; background: linear-gradient(to right, #667eea, #764ba2); color: white; font-size: 1.1rem; font-weight: bold; cursor: pointer; }

/* --- SEO --- */
.seo-content {
    background: rgba(255, 255, 255, 0.9); padding: 30px; border-radius: 15px;
    max-width: 600px; color: #444; line-height: 1.6; font-size: 0.95rem;
}
h2, h3 { color: #333; margin-top:0; }
footer { margin-top: auto; padding-top: 30px; text-align: center; color: rgba(255,255,255,0.8); font-size: 0.9rem; }
/* --- MOBİL DÜZENLEMESİ (GÜNCELLENMİŞ) --- */
@media (max-width: 600px) {
    /* Satırdaki elemanlar sığmazsa alt satıra geçsin */
    .kisi-satir {
        flex-wrap: wrap; 
        gap: 8px; /* Elemanlar arası boşluk */
        background: rgba(255,255,255,0.5); /* Hafif belirgin olsun */
        padding: 10px;
        border-radius: 10px;
        margin-bottom: 15px;
    }

    /* İsim ve Mail kutuları mobilde TAM GENİŞLİK olsun */
    .input-isim, 
    .input-mail {
        flex: 1 1 100%; /* %100 yer kapla, alt satıra at */
        min-width: 100%;
        margin-right: 0;
    }

    /* Grup Seçimi: Kalan boşluğu doldursun */
    select.input-grup {
        flex: 1; /* Esnek genişlik */
        min-width: 0; /* Taşmayı önle */
        margin-bottom: 0; /* Alt boşluğu sıfırla */
    }

    /* Sil butonu sabit kalsın, Grup kutusunun yanına gelsin */
    .btn-sil {
        width: 40px;
        height: 42px; /* Yüksekliği inputlarla eşitle */
        margin-left: 5px;
    }
}