/* Profil sayfası. app.css'teki tokenları ve .btn/.top/.who kurallarını kullanır; yalnız .pr-page altında geçerli. */

.pr { padding: 12px 32px 72px; max-width: 1280px; margin: 0 auto; }
.pr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 364px; gap: 32px; align-items: start; }
.pr-main { display: grid; gap: 36px; min-width: 0; }
.pr-sec h2 { font: 800 22px/1.1 var(--display); letter-spacing: -0.01em; margin: 0 0 14px; display: flex; align-items: baseline; gap: 12px; }
.pr-sec h2 small { font: 400 14px/1 var(--text); color: var(--fg-3); }

/* kimlik */
.pr-id {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: radial-gradient(80% 140% at 0% 0%, rgba(229, 32, 45, 0.28), transparent 60%), var(--surface);
}
.pr-id .av { width: 80px; height: 80px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); }
.pr-id .ph { font-size: 28px; }
.pr-id h1 { font: 900 clamp(32px, 5vw, 48px)/1.05 var(--display); letter-spacing: -0.02em; margin: 0 0 4px; overflow-wrap: anywhere; }
.pr-id .pr-idtxt { min-width: 0; flex: 1 1 200px; }
.pr-id .sub a { color: var(--fg-2); }
.pr-id .pr-idact { display: flex; gap: 8px; flex-wrap: wrap; }

/* istatistik kutuları */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.tile {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.tile b { display: block; font: 800 26px/1.1 var(--display); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.tile span { font-size: 13px; color: var(--fg-2); }
.tile.key { border-color: rgba(255, 59, 63, 0.45); background: radial-gradient(120% 120% at 100% 0%, rgba(229, 32, 45, 0.35), transparent 65%), var(--surface); }
.tile.key b { color: #fff; }
.pr-note { color: var(--fg-3); font-size: 13px; margin: 10px 0 0; }

/* son haritalar */
.maprows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.maprow {
  display: grid;
  grid-template-columns: 36px minmax(0, 1.2fr) 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 14px 6px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.res {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font: 800 15px/1 var(--display);
  background: rgba(255, 255, 255, 0.06);
}
.res.W { color: var(--ink); background: var(--ok); }
.res.L { color: #fff; background: var(--red); }
.res.D { color: var(--fg-2); }
.maprow .meta > span { display: block; }
.maprow .mn { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.maprow .sc { font: 700 16px/1 var(--display); }
.maprow .ln { color: var(--fg-2); font-size: 14px; }
.maprow .ln b { color: var(--fg); font-weight: 600; }

/* maç kartları (app.css'teki lobi .mlist listesinden ayır) */
.pr-page .mlist { display: grid; gap: 8px; padding: 0; margin: 0; }
.mcard { border-radius: 18px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.mcard summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
  min-height: 56px;
}
.mcard { scroll-margin-top: 88px; transition: border-color 0.4s, box-shadow 0.4s; }
.mcard.focus { border-color: var(--red, #e5202d); box-shadow: 0 0 0 3px rgba(229, 32, 45, 0.25); }
.mcard summary:hover { background: rgba(255, 255, 255, 0.03); }
.mcard summary:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 18px; }
.mcard summary::-webkit-details-marker { display: none; }
.mcard summary .t1 { color: var(--ct); font-weight: 700; }
.mcard summary .t2 { color: var(--t); font-weight: 700; text-align: right; }
.mcard summary .mid { text-align: center; }
.mcard summary .mid b { display: block; font: 800 22px/1 var(--display); letter-spacing: -0.01em; }
.mcard summary .mid span { font-size: 12px; color: var(--fg-3); }
.mcard .win { text-decoration: underline; text-decoration-color: var(--red-hi); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.mcard[open] summary { border-bottom: 1px solid var(--line); }
.mbody { padding: 14px 18px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mbody h3 { margin: 0 0 8px; font: 700 14px/1.2 var(--display); }
.mbody .m1 h3 { color: var(--ct); }
.mbody .m2 h3 { color: var(--t); }
.mfoot { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; }
.mfoot.hl { display: block; }
.mfoot.hl ul { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.mfoot.hl b { margin: 0 4px; }

/* tablolar: yatay kaydırma yalnız kutunun içinde */
.tbl-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); padding: 6px 8px; }
.mbody .tbl-wrap { border: 0; background: none; padding: 0; border-radius: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: right; font-weight: 600; color: var(--fg-3); padding: 6px 8px; font-size: 12px; white-space: nowrap; }
.tbl td { text-align: right; padding: 7px 8px; border-top: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl td.pl { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.tbl a { text-decoration: none; }
.tbl a:hover { text-decoration: underline; }
.tbl tr.me td { background: rgba(255, 255, 255, 0.07); }
.tbl tr.me td:first-child { border-radius: 10px 0 0 10px; }
.tbl tr.me td:last-child { border-radius: 0 10px 10px 0; }
.lb td:first-child { color: var(--fg-3); width: 28px; }
.lb td.pl, .lb th:nth-child(2) { text-align: left; }
.lb .who-cell { display: flex; align-items: center; gap: 8px; }
.lb .av { width: 28px; height: 28px; }

/* arkadaşlar */
.fr {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 20px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.fr h2 { margin: 0; font: 800 22px/1.1 var(--display); letter-spacing: -0.01em; }
.fr h3 { margin: 0 0 8px; font-size: 14px; color: var(--fg-2); font-weight: 600; }
.srch { display: flex; gap: 6px; }
.srch input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
}
.srch input:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.person {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}
.person .av { width: 36px; height: 36px; }
.person .nm a { text-decoration: none; font-weight: 600; }
.person .nm a:hover { text-decoration: underline; }
.person .sub { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .meta { display: block; min-width: 0; overflow: hidden; }
.person .nm { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .acts { display: flex; gap: 4px; }
.dotp { width: 8px; height: 8px; border-radius: 50%; background: var(--fg-3); flex: none; }
.dotp.on { background: var(--ok); }
.dotp.inl { background: var(--red-hi); }
.pr-page .x { width: 34px; height: 34px; }
.pr-page .gate { max-width: 520px; margin: 72px auto; padding: 0 16px; text-align: center; }
.pr-page .gate p { color: var(--fg-2); }

@media (max-width: 1000px) {
  .pr-grid { grid-template-columns: 1fr; }
  .fr { position: static; order: -1; }
}
@media (max-width: 900px) {
  .pr { padding: 8px 16px 72px; }
}
@media (max-width: 600px) {
  .pr-id { padding: 18px; }
  .maprow { grid-template-columns: 32px minmax(0, 1fr) auto; row-gap: 2px; }
  .maprow .ln { grid-column: 2 / -1; }
  .maprow .dl { grid-column: 2 / -1; justify-self: start; }
  .mbody { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile b { font-size: 20px; }
}
