/* ==========================================================================
   KaleCraft — sayfalara özel stiller.
   ========================================================================== */

/* ---------- sıralama: podyum ve satırlar ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; margin-bottom: 18px; }
.pod { text-align: center; padding: 18px 12px 0; overflow: hidden; }
.pod h3 { font-size: clamp(15px, 2vw, 20px); margin-top: 8px; }
.pod .elo { font: 400 clamp(22px, 3vw, 30px) var(--fd); color: var(--gold); }
.pod .step { margin: 14px -12px 0; font: 400 44px/1 var(--fd); padding: 14px 0; color: rgba(0, 0, 0, .35); }
.pod.p1 .step { background: #ffc21a; height: 120px; }
.pod.p2 .step { background: #cfd8e6; height: 86px; }
.pod.p3 .step { background: #d58a4a; height: 64px; }

.row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 12px 16px; }
.rk { font: 400 22px var(--fd); color: var(--muted); text-align: center; }
.cn { display: flex; align-items: center; gap: 12px; }
.cn b { font-family: var(--fd); font-weight: 400; text-transform: uppercase; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.cn small { display: block; color: var(--muted); font-size: 13px; }
.re { font: 400 20px var(--fd); color: var(--gold); text-align: right; }

/* ---------- maç kartı ---------- */
.match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; text-align: center; }
.match .score { font: 400 30px var(--fd); }
.match .team { text-decoration: none; color: #fff; }
.match .team small { display: block; font-family: var(--fd); font-size: 15px; }
.match .t { font-family: var(--fd); text-transform: uppercase; font-size: 14px; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match .meta { color: var(--muted); font-size: 13px; grid-column: 1 / -1; border-top: 2px solid var(--lip); padding-top: 10px; margin-top: 4px; }

/* ---------- ana sayfa ---------- */
.home-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .home-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.mini-thread { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; }
.mini-thread .av { width: 40px; height: 40px; font-size: 15px; }
.mini-thread h3 { text-transform: none; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.season { display: grid; gap: 18px; grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.season .big { font: 400 clamp(40px, 6vw, 64px)/1 var(--fd); color: var(--gold); }
.bar { height: 16px; border-radius: 8px; background: var(--lip); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: linear-gradient(var(--gold2), var(--gold)); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2); }

/* ---------- klan sayfası ---------- */
.clan-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.clan-head .elo { font: 400 clamp(44px, 7vw, 72px)/1 var(--fd); color: var(--gold); text-align: right; }
.clan-head .elo small { display: block; font-size: 15px; margin-top: 6px; }
.chart { position: relative; height: 260px; margin-top: 16px; background: var(--lip); border-radius: 12px; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; text-align: center; }
.stats div { background: var(--lip); border-radius: 12px; padding: 12px 6px; }
.stats b { display: block; font: 400 24px var(--fd); }
.stats span { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .clan-head { grid-template-columns: auto minmax(0, 1fr); }
  .clan-head .elo { grid-column: 1 / -1; text-align: left; }
  .chart { height: 200px; }
}

/* ---------- ELO ve ödüller ---------- */
.tier { display: flex; align-items: center; gap: 14px; }
.block { width: 54px; height: 54px; border-radius: 8px; flex: none; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .25), inset 0 4px 0 rgba(255, 255, 255, .35); border: 3px solid rgba(0, 0, 0, .35); }
.tier h3 { font-size: 20px; }
.tier p { margin-top: 2px; color: var(--muted); font-weight: 600; font-size: 14px; }
.calc .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.calc input { font: 400 22px var(--fd); }
.res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; text-align: center; }
.res div { background: var(--lip); border-radius: 12px; padding: 12px 6px; }
.res b { display: block; font: 400 28px var(--fd); }
.res span { font-size: 13px; color: var(--muted); }

/* ---------- kurallar ---------- */
.rule { display: flex; gap: 14px; align-items: flex-start; }
.rule > .ms { color: var(--em); font-size: 28px; }
.rule h3 { font-size: 19px; }
.rule p { margin-top: 4px; color: var(--muted); font-weight: 600; }

/* ---------- forum ---------- */
.forum { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .forum { grid-template-columns: 270px minmax(0, 1fr); align-items: start; } }
.cats { display: grid; gap: 4px; padding: 10px; }
.cat {
  display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; color: #fff;
  font: 400 15px/1.1 var(--fd); text-transform: uppercase; text-decoration: none;
}
.cat:hover { background: rgba(12, 23, 48, .5); }
.cat[aria-current="true"] { background: var(--lip); }
.cat .ms { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #14203a; font-size: 20px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25), inset 0 2px 0 rgba(255, 255, 255, .35); }
.cat small { display: block; font: 700 12px/1.3 var(--fb); text-transform: none; color: var(--muted); margin-top: 2px; }
.cat .ct { margin-left: auto; font-size: 13px; color: var(--muted); }
@media (max-width: 899px) {
  .cats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
  .cat small { display: none; }
  .cat { font-size: 13px; gap: 8px; }
  .cat .ms { width: 32px; height: 32px; }
}
.tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.tools .search { flex: 1 1 200px; width: auto; }
.tools select.field { width: auto; min-height: 48px; padding-block: 0; }
.th { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; }
.th h3 { text-transform: none; font-size: 17px; line-height: 1.3; }
.m { color: var(--muted); font-size: 13px; margin-top: 3px; }
.nums { display: flex; gap: 18px; text-align: center; font-size: 12px; color: var(--muted); }
.nums b { display: block; font: 400 18px var(--fd); color: #fff; }
.more { display: flex; justify-content: center; margin-top: 18px; }

/* ---------- konu sayfası ---------- */
.post { display: grid; grid-template-columns: 160px minmax(0, 1fr); padding: 0; overflow: hidden; }
.who { background: rgba(12, 23, 48, .6); padding: 16px 12px; text-align: center; display: grid; justify-items: center; align-content: start; gap: 6px; }
.who b { font: 400 16px var(--fd); overflow-wrap: anywhere; }
.who small { color: var(--muted); font-size: 12px; }
.pbody { padding: 16px 18px 14px; display: flex; flex-direction: column; }
.txt { white-space: pre-wrap; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; flex: 1; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin-top: 14px; }
.like {
  font: 400 14px var(--fd); background: var(--lip); color: #fff; border: 2px solid var(--lip2); border-radius: 9px;
  padding: 0 10px; min-height: 36px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center;
}
.like[aria-pressed="true"] { background: var(--red); border-color: #8a1e22; }
.thread-head h2 { text-transform: none; font-size: clamp(22px, 3vw, 30px); margin-top: 10px; line-height: 1.2; }

@media (max-width: 600px) {
  .post { grid-template-columns: minmax(0, 1fr); }
  .who { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; padding: 10px 12px; }
  .who .av { width: 36px; height: 36px; font-size: 14px; }
  .th { grid-template-columns: 40px minmax(0, 1fr); padding: 12px; }
  .th .nums { display: none; }
  .th .av { width: 40px; height: 40px; font-size: 15px; }
}

/* ---------- giriş / kayıt ---------- */
.auth { max-width: 460px; margin: 28px auto 0; }
.auth h2 { font-size: 28px; }
.auth .alt { margin-top: 18px; color: var(--muted); font-weight: 600; text-align: center; }
.auth .alt a { color: var(--gold); }

@media (max-width: 760px) {
  .row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; }
  .row .hide { display: none; }
}
@media (max-width: 480px) {
  .podium { gap: 8px; }
  .pod { padding-inline: 6px; }
  .pod .step { font-size: 30px; }
  .pod .banner { width: 36px; height: 46px; }
  .season { grid-template-columns: minmax(0, 1fr); }
}
