/* ===== Genel ===== */
:root {
    --pembe: #ff4d6d;
    --pembe-koyu: #c9184a;
    --mor: #7209b7;
    --arka: #fff5f7;
    --kart: #ffffff;
    --yazi: #33212b;
    --gri: #8a8494;
    --border: #f1dde3;
    --basari: #2e7d32;
    --hata: #c62828;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', 'Trebuchet MS', Arial, sans-serif;
    background: var(--arka);
    color: var(--yazi);
    line-height: 1.5;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; color: inherit; }

/* ===== Header ===== */
.site-header {
    background: linear-gradient(135deg, var(--pembe), var(--mor));
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 500;
}

.nav a {
    color: #fff;
    opacity: .92;
    position: relative;
    transition: opacity .2s;
}
.nav a:hover { opacity: 1; text-decoration: underline; }

.btn-kayit {
    background: #fff;
    color: var(--pembe-koyu) !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
}

.badge {
    background: #fff;
    color: var(--pembe-koyu);
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 6px;
    margin-left: 3px;
}

/* ===== Main ===== */
.main-content {
    min-height: 70vh;
    padding: 30px 20px 50px;
}

.site-footer {
    text-align: center;
    padding: 20px;
    color: var(--gri);
    font-size: 13px;
}

h1, h2, h3 { color: var(--pembe-koyu); }

/* ===== Kartlar ===== */
.card {
    background: var(--kart);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(201,24,74,.05);
}

.form-kart {
    max-width: 460px;
    margin: 20px auto;
}

/* ===== Formlar ===== */
label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fffdfd;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--pembe);
}

textarea { resize: vertical; min-height: 90px; }

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--pembe), var(--pembe-koyu));
    color: #fff;
    border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 18px;
    transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,24,74,.3); }

.btn-ikinci {
    background: #fff;
    color: var(--pembe-koyu);
    border: 1px solid var(--pembe);
}

.form-satir-cift {
    display: flex;
    gap: 14px;
}
.form-satir-cift > div { flex: 1; }

.alan-hata { color: var(--hata); font-size: 13px; margin-top: 4px; }

.uyari {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.uyari-hata { background: #fdecea; color: var(--hata); border: 1px solid #f5b8b3; }
.uyari-basari { background: #edf7ed; color: var(--basari); border: 1px solid #b6dfb8; }

/* ===== Üye kartları / grid ===== */
.uye-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.uye-kart {
    background: var(--kart);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
    transition: transform .15s, box-shadow .15s;
}
.uye-kart:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(201,24,74,.15); }

.uye-foto {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f3e3e8;
}

.cevrimici-nokta {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    background: #2ecc71;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,.05);
}

.uye-bilgi { padding: 12px; }
.uye-bilgi .isim { font-weight: 700; font-size: 16px; }
.uye-bilgi .detay { color: var(--gri); font-size: 13px; margin-top: 2px; }

/* ===== Profil sayfası ===== */
.profil-ust {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.profil-foto-buyuk {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(201,24,74,.2);
}

.profil-detay h1 { margin: 0 0 4px; }
.profil-detay .meta { color: var(--gri); margin-bottom: 10px; }
.profil-detay .bio { max-width: 560px; }

/* ===== Arama filtresi ===== */
.filtre-kutusu {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 10px;
}
.filtre-kutusu > div { min-width: 140px; }
.filtre-kutusu label { margin-top: 0; }

/* ===== Mesajlaşma ===== */
.mesaj-listesi {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mesaj-satir {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-bottom: 1px solid var(--border);
    background: var(--kart);
    transition: background .15s;
}
.mesaj-satir:hover { background: #fff0f3; }
.mesaj-satir.okunmamis { background: #fff5f7; font-weight: 700; }

.mesaj-satir img {
    width: 50px; height: 50px; border-radius: 50%; object-fit: cover;
}

.mesaj-satir .icerik { flex: 1; min-width: 0; }
.mesaj-satir .icerik .isim { font-weight: 700; }
.mesaj-satir .icerik .onizleme {
    color: var(--gri);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mesaj-satir .zaman { font-size: 12px; color: var(--gri); white-space: nowrap; }

/* Sohbet ekranı */
.sohbet-kutusu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 480px;
    overflow-y: auto;
    padding: 16px;
    background: #fffafb;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
}

.balon {
    max-width: 65%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
}
.balon .zaman { display:block; font-size: 11px; opacity: .7; margin-top: 4px; }

.balon-ben {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--pembe), var(--pembe-koyu));
    color: #fff;
    border-bottom-right-radius: 4px;
}
.balon-onlar {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.mesaj-gonder-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}
.mesaj-gonder-form textarea { min-height: 44px; }
.mesaj-gonder-form .btn { margin-top: 0; white-space: nowrap; }

.ek-buton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: #fff0f3;
    border: 1px solid var(--border);
    font-size: 20px;
    cursor: pointer;
    transition: background .15s, transform .15s;
}
.ek-buton:hover { background: #ffe0e6; transform: scale(1.05); }

.kayit-durumu {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pembe-koyu);
}

.mesaj-medya-foto {
    max-width: 240px;
    max-height: 320px;
    border-radius: 12px;
    display: block;
    object-fit: cover;
}

.mesaj-medya-ses {
    width: 230px;
    max-width: 100%;
}

.medya-uyari {
    font-size: 11px;
    opacity: .85;
    margin-top: 6px;
    font-style: italic;
}

.medya-silindi {
    font-size: 13px;
    font-style: italic;
    opacity: .8;
}

.medya-bekliyor {
    font-size: 14px;
}
.medya-bekliyor span {
    display: block;
    font-size: 11px;
    opacity: .75;
    font-style: italic;
    margin-top: 2px;
}

/* ===== Boş durum ===== */
.bos-durum {
    text-align: center;
    color: var(--gri);
    padding: 40px 20px;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .header-inner { flex-direction: column; gap: 10px; }
    .nav { gap: 14px; font-size: 14px; flex-wrap: wrap; justify-content: center; }
    .profil-ust { flex-direction: column; text-align: center; }
    .form-satir-cift { flex-direction: column; gap: 0; }
}
