/* ═══════════════════════════════════════════════════════════════════════════
   ÜYE SAYFASI (profile.css) — Stack Overflow kullanıcı sayfası düzeni.
   Kapak görseli yok (eski mor-mavi kapak kaldırıldı); kimlik, katkı sayıları,
   etkinlik listesi. Eski sekmeler (.ac-legacy) yeni token'lara bağlanır.
   ═══════════════════════════════════════════════════════════════════════════ */
.ac-prof__head{display:grid; grid-template-columns:auto minmax(0,1fr); gap:var(--space-5); align-items:start; padding-bottom:var(--space-6); border-bottom:1px solid var(--color-border)}
.ac-prof__av{position:relative; width:112px; height:112px}
.ac-prof__av img{width:112px; height:112px; border-radius:var(--radius-xl); object-fit:cover; border:1px solid var(--color-border); background:var(--color-surface-sunken)}
.ac-prof__avbtn{position:absolute; right:-6px; bottom:-6px; width:36px; height:36px; border-radius:50%; display:grid; place-items:center;
  background:var(--color-surface); border:1px solid var(--color-border-strong); color:var(--color-text-secondary); cursor:pointer}
.ac-prof__avbtn:hover{color:var(--color-text-primary)}
.ac-prof__id{min-width:0; display:flex; flex-direction:column; gap:var(--space-2)}
.ac-prof__id .ac-title{font-size:clamp(28px, 1.8vw + 18px, 42px); line-height:1.05}
.ac-prof__handle{display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-2); margin:0; color:var(--color-text-secondary); font-weight:var(--fw-medium)}
.ac-prof__bio{margin:var(--space-1) 0 0; max-width:62ch; color:var(--color-text-secondary)}
.ac-prof__meta{list-style:none; margin:var(--space-2) 0 0; padding:0; display:flex; flex-wrap:wrap; gap:var(--space-2) var(--space-5); font-size:var(--text-sm); color:var(--color-text-muted)}
.ac-prof__meta i{margin-right:4px}
.ac-prof__actions{grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:var(--space-2)}
.ac-prof__actions form{margin:0}
@media (min-width:768px){
  .ac-prof__head{grid-template-columns:auto minmax(0,1fr) auto}
  .ac-prof__actions{grid-column:auto; justify-content:flex-end}
}
@media (max-width:479px){
  .ac-prof__av,.ac-prof__av img{width:80px; height:80px}
}

.ac-prof__stats{display:grid; grid-template-columns:repeat(2,1fr); gap:1px; margin:var(--space-5) 0; padding:0; background:var(--color-border); border:1px solid var(--color-border); border-radius:var(--radius-lg); overflow:hidden}
.ac-prof__stats div{display:flex; flex-direction:column-reverse; gap:2px; padding:var(--space-4); background:var(--color-surface)}
.ac-prof__stats dt{font-size:var(--text-xs); color:var(--color-text-muted)}
.ac-prof__stats dd{margin:0; font-family:var(--font-display); font-weight:var(--fw-black); font-size:var(--text-2xl); line-height:1; font-variant-numeric:tabular-nums}
.ac-prof__stats div:first-child dd{color:var(--color-accent-text)}
@media (min-width:640px){ .ac-prof__stats{grid-template-columns:repeat(5,1fr)} }
@media (max-width:639px){ .ac-prof__stats div:last-child{grid-column:1 / -1} }

.ac-prof__tabs{margin-bottom:var(--space-4)}
.ac-prof__panel{min-height:200px}

.ac-activity{list-style:none; margin:0; padding:0; background:var(--color-surface); border:1px solid var(--color-border); border-radius:var(--radius-lg); overflow:hidden}
.ac-activity__row{display:grid; grid-template-columns:44px auto minmax(0,1fr) auto auto; align-items:center; gap:var(--space-3); padding:var(--space-3) var(--space-4); border-top:1px solid var(--color-border)}
.ac-activity__row:first-child{border-top:0}
.ac-activity__score{min-width:36px; text-align:center; padding:3px 6px; border-radius:var(--radius-sm); border:1px solid var(--color-border-strong); font-size:var(--text-xs); font-weight:var(--fw-bold); font-variant-numeric:tabular-nums; color:var(--color-text-secondary)}
.ac-activity__score.is-pos{color:var(--color-accent-text); border-color:var(--color-border-accent)}
.ac-activity__title{font-weight:var(--fw-semibold); color:var(--color-text-primary); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.ac-activity__title:hover{text-decoration:underline; text-underline-offset:3px; color:var(--color-text-primary)}
.ac-activity__when{font-size:var(--text-xs); color:var(--color-text-muted); white-space:nowrap}
@media (max-width:639px){
  .ac-activity__row{grid-template-columns:36px minmax(0,1fr) auto; grid-template-areas:"puan tur zaman" "puan baslik isaret"; row-gap:2px}
  .ac-activity__score{grid-area:puan; align-self:start}
  .ac-activity__row .ac-kind{grid-area:tur; justify-self:start}
  .ac-activity__title{grid-area:baslik; white-space:normal}
  .ac-activity__when{grid-area:zaman}
  .ac-activity__row .ac-answers-pill{grid-area:isaret}
}

/* Eski sekmeler (Duvar, Hakkında, Ayarlar): kendi stillerinin kullandığı değişkenler
   yeni token'lara bağlanır — iki temada da okunur kalır. */
.ac-legacy{
  --bg-page:var(--color-bg); --bg-surface:var(--color-surface); --bg-surface-2:var(--color-surface-sunken);
  --bg-border:var(--color-border); --tx-main:var(--color-text-primary); --tx-sub:var(--color-text-secondary);
  --tx-muted:var(--color-text-muted); --h:var(--color-accent); --font-head:var(--font-display); --font-main:var(--font-body);
  --shadow-xl:none; --p-radius-md:8px; --p-radius-xl:12px; --p-radius-full:999px;
  color:var(--color-text-primary);
}
.ac-legacy input,.ac-legacy textarea,.ac-legacy select{color:var(--color-text-primary); background:var(--color-surface); border-color:var(--color-border-strong)}
