/* ── LAYOUT ─────────────────────────────────────────── */
.profil-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 80px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
}
.profil-main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.profil-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* ── HERO CARD ──────────────────────────────────────── */
.ph-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.ph-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  color: var(--text3);
  font-size: 14px;
}

.ph-cover {
  height: 100px;
  position: relative;
  overflow: hidden;
}
.ph-cover-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  top: -80px;
  right: -40px;
}

.ph-body {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 0 24px 20px;
  position: relative;
}

.ph-av-wrap {
  margin-top: -36px;
  flex-shrink: 0;
}

.ph-av {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
}

.ph-info {
  flex: 1;
  padding-top: 10px;
  min-width: 0;
}

.ph-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.ph-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.ph-email {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 5px;
}

.ph-tarih {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 8px;
}

.ph-bio {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  max-width: 500px;
}

.ph-ban-uyari {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
[data-theme="dark"] .ph-ban-uyari {
  background: rgba(239,68,68,.12);
  border-color: rgba(239,68,68,.35);
  color: #f87171;
}

.ph-bio-bos {
  font-size: 13px;
  color: var(--p);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ph-bio-bos:hover { text-decoration: underline; }

.ph-duzenle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font);
  flex-shrink: 0;
  margin-top: 10px;
}
.ph-duzenle-btn:hover { border-color: var(--p); color: var(--p); background: var(--p3); }

.ph-stats {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--border);
}

.ph-stat {
  flex: 1;
  text-align: center;
  padding: 14px 10px;
}
.ph-stat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.ph-stat-lbl {
  font-size: 11px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 4px;
}
.ph-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── SECTION ────────────────────────────────────────── */
.profil-section { display: flex; flex-direction: column; gap: 12px; }
.profil-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.profil-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* ── SIDEBAR STATS ──────────────────────────────────── */
.ps-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.ps-row:last-child { border-bottom: none; }
.ps-icon { font-size: 15px; flex-shrink: 0; }
.ps-lbl  { flex: 1; color: var(--text2); }
.ps-val  { font-weight: 700; color: var(--text); }

/* ── SIDEBAR RÜTBE ──────────────────────────────────── */
.pr-wrap { padding: 16px; }
.pr-rozet {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--r2);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pr-aciklama { font-size: 12px; color: var(--text3); }

.pr-seviye-wrap { padding: 12px 16px 16px; border-top: 1px solid var(--border); margin-top: 4px; }
.pr-seviye-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 8px; flex-wrap: wrap; }
.pr-seviye-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--r2); white-space: nowrap; }
.pr-seviye-puan { font-size: 11px; color: var(--text3); white-space: nowrap; }
.pr-progress-bar { height: 6px; background: var(--bg); border-radius: 99px; overflow: hidden; }
.pr-progress-fill { height: 100%; border-radius: 99px; transition: width .4s ease; }

/* ── PROFIL FOTO YÜKLEME ─────────────────────────────── */
.pd-foto-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pd-foto-oniz {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
}

.pd-foto-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-foto-yukle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font);
}
.pd-foto-yukle-btn:hover { border-color: var(--p); color: var(--p); background: var(--p3); }

.pd-foto-sil-btn {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1.5px solid #fecaca;
  background: var(--white);
  font-size: 12px;
  font-weight: 500;
  color: #dc2626;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font);
}
.pd-foto-sil-btn:hover { background: #fef2f2; }

.pd-foto-bilgi {
  font-size: 11px;
  color: var(--text3);
  align-self: flex-end;
}

/* ── AVATAR RENK SEÇİCİ ─────────────────────────────── */
.av-renk-secici {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.av-renk-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all .15s;
  outline: none;
}
.av-renk-btn:hover  { transform: scale(1.1); }
.av-renk-btn.aktif  { border-color: var(--text); transform: scale(1.12); box-shadow: 0 0 0 2px #fff inset; }

/* ── THREAD (konu listesi) ──────────────────────────── */
.threads {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.thread {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .12s;
}
.thread:last-child { border-bottom: none; }
.thread:hover { background: var(--bg); }
.th-av {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.th-body { flex: 1; min-width: 0; }
.th-title { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.th-meta  { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text3); flex-wrap: wrap; }
.th-cat   { background: var(--p3); color: var(--p); padding: 1px 7px; border-radius: var(--r2); font-size: 11px; font-weight: 500; }
.th-dot   { width: 3px; height: 3px; background: var(--border2); border-radius: 50%; }
.th-right { text-align: center; flex-shrink: 0; }
.th-num   { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1; }
.th-lbl   { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .05em; }

/* ── HAYVAN KARTLARI ────────────────────────────────── */
.hayvan-bos {
  padding: 28px 20px;
  text-align: center;
  color: var(--text3);
  font-size: 13px;
}
.hayvan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  padding: 4px 0;
}
.hayvan-kart {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .15s;
}
.hayvan-kart:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.hayvan-foto {
  width: 100%;
  height: 100px;
  object-fit: cover;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}
.hayvan-foto img { width: 100%; height: 100%; object-fit: cover; }
.hayvan-bilgi { padding: 10px 12px 12px; }
.hayvan-isim { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 3px; }
.hayvan-meta { font-size: 12px; color: var(--text3); }
.hayvan-sil {
  display: none;
  position: absolute;
  top: 6px; right: 6px;
  background: rgba(0,0,0,.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px; height: 22px;
  font-size: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.hayvan-kart { position: relative; }
.hayvan-kart:hover .hayvan-sil { display: flex; }

/* ── ROZET GRID ─────────────────────────────────────── */
.rozet-bos { padding: 16px; font-size: 13px; color: var(--text3); }
.rozet-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
.rozet-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: default;
  position: relative;
}
.rozet-ikon { font-size: 15px; line-height: 1; }
.rozet-ad { font-weight: 600; color: var(--text2); }
.rozet-item:hover::after {
  content: attr(data-aciklama);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

/* ── ENGEL BUTONU ────────────────────────────────────── */
.ph-engel-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text3);
  cursor: pointer;
  font-family: var(--font);
  transition: all .15s;
  flex-shrink: 0;
}
.ph-engel-btn.engellendi { border-color: #dc2626; color: #dc2626; }
.ph-engel-btn:hover { border-color: #dc2626; color: #dc2626; }

/* ── TAKİP BUTONU ────────────────────────────────────── */
.ph-takip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--p);
  background: var(--p);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font);
  flex-shrink: 0;
  margin-top: 10px;
}
.ph-takip-btn:hover { opacity: .88; }
.ph-takip-btn.takip-ediliyor {
  background: var(--white);
  color: var(--text2);
  border-color: var(--border);
}
.ph-aksiyon-grup {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  margin-top: 10px;
}

/* ── BOOKMARK BUTONU ────────────────────────────────── */
.kaydet-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 12px;
  font-weight: 500;
  color: var(--text3);
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font);
}
.kaydet-btn:hover { border-color: var(--p); color: var(--p); }
.kaydet-btn.aktif { background: var(--p3); border-color: var(--p); color: var(--p); }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .profil-layout { grid-template-columns: 1fr; padding: 16px 16px 80px; }
  .profil-sidebar { display: none; }
}

/* Mobil isim: varsayılan gizli, masaüstü isim: görünür */
.ph-mob-name-row { display: none; }
.ph-name-mob  { display: none; }
.ph-name-desk { display: block; }

/* Desktop: Düzenle butonu sağa */
.ph-aksiyon-mob { order: 10; align-self: flex-start; padding-top: 10px; }
.ph-aksiyon-mob .ph-duzenle-btn { margin-top: 0; }

@media (max-width: 600px) {
  /* Satır 1: [Avatar] [İsim flex:1] [Butonlar] */
  /* Satır 2: [Tarih + Bio tam genişlik]         */
  .ph-body {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 0 16px 16px;
    gap: 0;
  }
  .ph-av-wrap {
    order: 1;
    flex-shrink: 0;
    margin-top: -32px;
    margin-right: 12px;
    align-self: flex-start;
  }
  .ph-av { width: 68px; height: 68px; font-size: 22px; }

  .ph-name-mob {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }
  .ph-name-desk { display: none; }
  .ph-mob-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; order: 2; flex: 1; min-width: 0; padding-top: 6px; }
  .ph-info .ph-name-row { display: none; }

  .ph-aksiyon-mob {
    order: 3;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    margin-left: 8px;
    align-self: flex-start;
    padding-top: 4px;
    margin-top: 0;
  }
  .ph-aksiyon-mob .ph-duzenle-btn,
  .ph-aksiyon-mob .ph-takip-btn,
  .ph-aksiyon-mob .ph-engel-btn {
    font-size: 11.5px;
    padding: 5px 10px;
    margin-top: 0;
    white-space: nowrap;
  }

  .ph-info {
    order: 4;
    width: 100%;
    flex-basis: 100%;
    flex: none;
    padding-top: 10px;
    min-width: 0;
  }
  .ph-info .ph-name-desk { display: none; }
  .ph-tarih { font-size: 13px; margin-bottom: 6px; gap: 5px; }
  .ph-bio { font-size: 13.5px; line-height: 1.55; margin-top: 0; }
  .ph-bio-bos { font-size: 13px; }
}
