/* ===========================================
   İSTATİSTİKLER SAYFASI — v2 (yaş grupları)
   =========================================== */

/* ── HERO ── */
.ist-hero {
  background: #060d1e;
  padding: 5rem 1.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ist-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 55% at 50% -10%, rgba(193,18,31,.28) 0%, transparent 65%);
  pointer-events: none;
}
.ist-hero-inner { position: relative; z-index: 1; }
.ist-hero-eyebrow {
  display: inline-block;
  background: rgba(193,18,31,.12);
  border: 1px solid rgba(193,18,31,.35);
  color: #c1121f;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .85rem;
  margin-bottom: .9rem;
}
.ist-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: rgba(255,255,255,0.88);
  letter-spacing: -.03em;
  margin: 0 0 .6rem;
  line-height: 1.05;
}
.ist-hero-sub { font-size: .95rem; color: rgba(255,255,255,0.45); margin: 0; }

/* ── TEAM BANNER ── */
.ist-team-banner {
  background: linear-gradient(90deg, #0c1425 0%, #141f38 50%, #0c1425 100%);
  border-top: 1px solid rgba(193,18,31,.2);
  border-bottom: 1px solid rgba(193,18,31,.15);
  padding: 1.1rem 1.5rem;
}
.ist-team-banner-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.ist-team-info {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 180px;
}
.ist-team-logo {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  padding: 4px;
  object-fit: contain;
}
.ist-team-name { font-size: 1rem; font-weight: 800; color: rgba(255,255,255,0.88); line-height: 1.2; }
.ist-team-league { font-size: .72rem; color: rgba(255,255,255,0.45); margin-top: 2px; }

.ist-team-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-left: auto;
}
.ist-tstat { text-align: center; }
.ist-tstat-v { display: block; font-size: 1.3rem; font-weight: 900; color: rgba(255,255,255,0.88); line-height: 1; }
.ist-tstat-l { display: block; font-size: .62rem; color: rgba(255,255,255,0.45); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; margin-top: 2px; }
.ist-tstat-pts .ist-tstat-v { color: #c1121f; font-size: 1.6rem; }
.ist-tstat-win .ist-tstat-v { color: #4ade80; }
.ist-tstat-draw .ist-tstat-v { color: #facc15; }
.ist-tstat-loss .ist-tstat-v { color: #f87171; }
.ist-tstat-pos .ist-tstat-v { color: #4ade80; }
.ist-tstat-neg .ist-tstat-v { color: #f87171; }

/* ── BANNER ALT TABS ── */
.ist-banner-tabs {
  display: flex;
  gap: .4rem;
  margin-top: .9rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-wrap: wrap;
}
.ist-banner-tab {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,0.45);
  font-size: .7rem;
  font-weight: 700;
  border-radius: 6px;
  padding: .3rem .75rem;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.ist-banner-tab:hover { color: rgba(255,255,255,0.70); background: rgba(255,255,255,.1); }
.ist-banner-tab.active {
  background: rgba(193,18,31,.2);
  border-color: rgba(193,18,31,.4);
  color: #f87171;
}

/* ── MAIN ── */
.ist-main {
  background: #060d1e;
  padding: 2.5rem 1.5rem 5rem;
  min-height: 50vh;
}

/* ── EMPTY STATE ── */
.ist-empty-state {
  text-align: center;
  padding: 5rem 2rem;
  color: rgba(255,255,255,0.45);
}
.ist-empty-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.ist-empty-state h2 { font-size: 1.3rem; color: rgba(255,255,255,0.70); margin: 0 0 .5rem; }
.ist-empty-state p { font-size: .9rem; color: rgba(255,255,255,0.45); }

/* ── CATEGORY TABS ── */
.ist-cat-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 2px solid rgba(255,255,255,.06);
  margin-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
}
.ist-cat-tabs::-webkit-scrollbar { display: none; }

.ist-cat-tab {
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: rgba(255,255,255,0.45);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .8rem 1.2rem;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
  margin-bottom: -2px;
  border-radius: 6px 6px 0 0;
  white-space: nowrap;
}
.ist-cat-tab:hover { color: rgba(255,255,255,0.70); background: rgba(255,255,255,.03); }
.ist-cat-tab.active {
  color: #fff;
  border-bottom-color: #c1121f;
  background: rgba(193,18,31,.08);
}

/* ── PANELS ── */
.ist-cat-panel { display: none; }
.ist-cat-panel.active { display: block; animation: ist-fadeIn .25s ease; }
@keyframes ist-fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

/* ── PANEL GRID (2 kolon: gol + puan) ── */
.ist-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 860px) { .ist-panel-grid { grid-template-columns: 1fr; } }

/* ── PANEL COL HEADER ── */
.ist-col-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.ist-col-icon { font-size: 1rem; }
.ist-col-title { font-size: .95rem; font-weight: 800; color: rgba(255,255,255,0.88); margin: 0; flex: 1; }
.ist-col-badge {
  background: rgba(193,18,31,.15);
  border: 1px solid rgba(193,18,31,.3);
  color: #c1121f;
  font-size: .65rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
  letter-spacing: .05em;
}

.ist-col-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: rgba(255,255,255,0.45);
  font-size: .85rem;
  background: rgba(255,255,255,.02);
  border-radius: 10px;
  border: 1px dashed rgba(255,255,255,.08);
}

/* ── SCORERS LIST ── */
.ist-scorers-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.ist-scorer-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .7rem .9rem;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid transparent;
  transition: background .15s, border-color .15s;
}
.ist-scorer-row:hover { background: rgba(255,255,255,.05); }
.ist-scorer-row.ist-ours {
  background: rgba(193,18,31,.08);
  border-color: rgba(193,18,31,.2);
}
.ist-scorer-row.ist-top { background: rgba(255,255,255,.05); }
.ist-scorer-row.ist-top.ist-ours { background: rgba(193,18,31,.12); }

.ist-scorer-rank { width: 32px; text-align: center; flex-shrink: 0; }
.ist-medal { font-size: 1.2rem; }
.ist-medal-sm { font-size: .9rem; }
.ist-rank-num { font-size: .8rem; color: rgba(255,255,255,0.45); font-weight: 700; }

.ist-scorer-info { flex: 1; min-width: 0; }
.ist-ours-tag {
  display: inline-block;
  background: #c1121f;
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .06em;
  border-radius: 4px;
  padding: 1px 5px;
  margin-right: 5px;
  vertical-align: middle;
}
.ist-scorer-name {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ist-scorer-club { font-size: .72rem; color: rgba(255,255,255,0.45); display: block; margin-top: 1px; }

.ist-scorer-goals { text-align: center; flex-shrink: 0; }
.ist-goals-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
  color: rgba(255,255,255,0.70);
  line-height: 1;
}
.ist-goals-top { color: #c1121f; }
.ist-goals-lbl { display: block; font-size: .6rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: .08em; }

/* ── STANDINGS TABLE ── */
.ist-standings-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid rgba(255,255,255,.10); }
.ist-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .83rem;
}
.ist-standings-table thead tr { background: #0c1425; }
.ist-standings-table th {
  color: rgba(255,255,255,0.45);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .6rem .7rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ist-th-pos, .ist-th-num, .ist-th-pts { text-align: center; }
.ist-standings-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .15s;
}
.ist-standings-table tbody tr:hover { background: rgba(255,255,255,.03); }
.ist-standings-table tbody tr:last-child { border-bottom: none; }
.ist-standings-table td { padding: .65rem .7rem; color: rgba(255,255,255,0.70); vertical-align: middle; }

.ist-ours-row { background: rgba(193,18,31,.07) !important; }
.ist-ours-row:hover { background: rgba(193,18,31,.11) !important; }

.ist-td-pos, .ist-td-num, .ist-td-pts { text-align: center; }
.ist-td-win { color: #4ade80; font-weight: 700; }
.ist-td-loss { color: #f87171; font-weight: 700; }
.ist-av-pos { color: #4ade80; }
.ist-av-neg { color: #f87171; }
.ist-pos-num { font-size: .78rem; color: rgba(255,255,255,0.45); font-weight: 600; }

.ist-mini-logo {
  width: 16px; height: 16px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 5px;
  object-fit: contain;
}
.ist-ours-name { color: rgba(255,255,255,0.88); font-weight: 700; }

.ist-pts-badge {
  display: inline-block;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,0.88);
  font-size: .82rem;
  font-weight: 900;
  border-radius: 6px;
  padding: 2px 7px;
  min-width: 30px;
  text-align: center;
}
.ist-pts-ours {
  background: rgba(193,18,31,.22);
  color: #f87171;
  border: 1px solid rgba(193,18,31,.35);
}

/* ── BİZİM OYUNCULAR ── */
.ist-our-scorers-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.ist-our-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.ist-our-icon { font-size: 1.1rem; }
.ist-our-title { font-size: 1.05rem; font-weight: 800; color: rgba(255,255,255,0.88); margin: 0; }

.ist-our-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .75rem;
}
.ist-our-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .9rem 1.1rem;
  background: #141f38;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  transition: border-color .2s, background .2s;
}
.ist-our-card:hover { border-color: rgba(193,18,31,.25); background: rgba(193,18,31,.06); }
.ist-our-card.ist-our-first {
  border-color: rgba(193,18,31,.35);
  background: rgba(193,18,31,.1);
}
.ist-our-rank { font-size: 1.2rem; min-width: 24px; }
.ist-our-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c1121f, #7f0d14);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ist-our-info { flex: 1; min-width: 0; }
.ist-our-name { font-size: .88rem; font-weight: 700; color: rgba(255,255,255,0.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ist-our-league { font-size: .7rem; color: rgba(255,255,255,0.45); margin-top: 2px; }
.ist-our-goals { text-align: center; }
.ist-our-goals-n { display: block; font-size: 1.4rem; font-weight: 900; color: #c1121f; line-height: 1; }
.ist-our-goals-l { display: block; font-size: .6rem; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: .08em; }

/* ── RESPONSIVE ── */
@media (max-width: 520px) {
  .ist-cat-tab { padding: .65rem .9rem; font-size: .75rem; }
  .ist-team-stats { gap: .9rem; }
  .ist-tstat-v { font-size: 1.1rem; }
  .ist-tstat-pts .ist-tstat-v { font-size: 1.3rem; }
  .ist-standings-table th, .ist-standings-table td { padding: .5rem .45rem; font-size: .75rem; }
}
