/* ============================================
   CHAMPIONS PAGE — ESKİ CLASS'LAR KORUNDU
   ============================================ */

.page-shell,
.champions-page-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 28px auto 40px;
}

.meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.meta-bar__left { min-width: 0; flex: 1 1 320px; }
.meta-bar__right { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; flex-wrap: wrap; }
.meta-title { color: #f4f7ff; font-size: 20px; font-weight: 800; line-height: 1.35; letter-spacing: 0.2px; }
.search, .select, .btn { height: 42px; border-radius: 12px; border: 1px solid rgba(126,163,255,0.22); background: rgba(17,25,44,0.82); color: #eef3ff; font-size: 14px; outline: none; }
.search { width: 260px; padding: 0 14px; }
.search::placeholder { color: rgba(226,234,255,0.55); }
.select { min-width: 120px; padding: 0 12px; cursor: pointer; }
.btn { padding: 0 16px; font-weight: 700; cursor: pointer; transition: 0.18s ease; }
.btn:hover, .search:focus, .select:focus { border-color: rgba(104,168,255,0.5); box-shadow: 0 0 0 3px rgba(86,145,255,0.12); }
.card, .champions-card { border-radius: 18px; border: 1px solid rgba(116,152,245,0.16); background: linear-gradient(180deg, rgba(19,29,52,0.92), rgba(11,17,32,0.94)); box-shadow: 0 14px 40px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.03); overflow: hidden; }
.table, .champions-table { width: 100%; }
.table__head, .champions-table__head { display: grid; grid-template-columns: minmax(260px,2.2fr) minmax(90px,0.8fr) minmax(110px,0.8fr) minmax(110px,0.8fr) minmax(110px,0.8fr); gap: 0; align-items: center; padding: 16px 22px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(121,153,235,0.14); }
.table__head > div, .champions-table__head > div { color: #aebfe8; font-size: 13px; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase; }
.table__row, .champions-table__row { display: grid; grid-template-columns: minmax(260px,2.2fr) minmax(90px,0.8fr) minmax(110px,0.8fr) minmax(110px,0.8fr) minmax(110px,0.8fr); gap: 0; align-items: center; padding: 14px 22px; text-decoration: none; color: #eef3ff; border-bottom: 1px solid rgba(121,153,235,0.1); transition: background 0.16s ease; }
.table__row:last-child, .champions-table__row:last-child { border-bottom: 0; }
.table__row:hover, .champions-table__row:hover { background: rgba(90,134,255,0.08); }
.tchamp { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tchamp__img { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; display: block; flex: 0 0 58px; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 6px 18px rgba(0,0,0,0.24); }
.tchamp__name { color: #f7f9ff; font-size: 15px; font-weight: 800; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.muted { color: #b8c7e8; font-weight: 700; }
.win { color: #f7fbff; font-weight: 800; }
.table__row > div:not(.tchamp), .champions-table__row > div:not(.tchamp) { font-size: 14px; font-weight: 700; color: #e8eeff; }
.table__row--empty { color: #c8d4f0; }
.mobile-label { display: none; }

/* ============================================
   YENİ CHAMPIONS TASARIMI
   ============================================ */

/* HERO */
.champs-hero {
  background: #080d1c;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 24px 0 18px;
  margin-bottom: 0;
}

.champs-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.champs-hero-title {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 900;
  color: #eef3ff;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.champs-hero-title span { color: #4f7cff; }

.champs-hero-sub {
  font-size: 12px;
  color: #3c4a6a;
  margin-bottom: 12px;
  line-height: 1.5;
}

.champs-hero-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.champs-stat { font-size: 11px; color: #4a5a7a; }
.champs-stat-val { color: #7aaeff; font-weight: 700; }

/* FILTER BAR */
.champs-filter-bar {
  background: #07090e;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  flex-wrap: wrap;
}

/* Search */
.champs-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10,14,28,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0 12px;
  height: 36px;
  width: 200px;
  flex-shrink: 0;
}

.champs-search-wrap svg { width: 13px; height: 13px; color: #3c4a6a; flex-shrink: 0; }

.champs-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 12px;
  color: #eef3ff;
  font-family: inherit;
}

.champs-search-input::placeholder { color: #2c3a5a; }

/* Role buttons */
.champs-role-filter { display: flex; gap: 4px; }

.champs-role-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(12,16,30,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: #4a5a7a;
  transition: all 0.15s;
  flex-shrink: 0;
}

.champs-role-btn img { width: 20px; height: 20px; object-fit: contain; opacity: 0.4; transition: opacity 0.15s; }
.champs-role-btn.active { border-color: rgba(79,124,255,0.3); background: rgba(79,124,255,0.1); color: #eef3ff; }
.champs-role-btn.active img { opacity: 1; }
.champs-role-btn:hover { border-color: rgba(79,124,255,0.2); color: #c0ccee; }
.champs-role-btn:hover img { opacity: 0.8; }

/* Rank dropdown */
.champs-rank-dropdown {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(12,16,30,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0 12px;
  height: 36px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  user-select: none;
}

.champs-rank-label { font-size: 13px; font-weight: 700; color: #eef3ff; }
.champs-rank-arrow { font-size: 9px; color: #4a5a7a; }

.champs-rank-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #0d1428;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  z-index: 100;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: none;
}

.champs-rank-menu.open { display: block; }

.champs-rank-item {
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #8090b8;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.12s;
}

.champs-rank-item:last-child { border: none; }
.champs-rank-item:hover { background: rgba(79,124,255,0.08); color: #eef3ff; }
.champs-rank-item.active { color: #eef3ff; background: rgba(79,124,255,0.06); }

.champs-beta {
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
  color: #f59e0b;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* BETA NOTE */
.champs-beta-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  background: rgba(245,158,11,0.06);
  border-bottom: 1px solid rgba(245,158,11,0.15);
  font-size: 12px;
  color: #f59e0b;
  font-weight: 600;
}

.champs-beta-note-icon { font-size: 13px; flex-shrink: 0; }

/* TABLE WRAP */
.champs-table-wrap {
  max-width: 100%;
  background: rgba(10,14,26,0.6);
}

/* TABLE HEAD */
.champs-table-head {
  display: grid;
  grid-template-columns: 48px 44px 1fr 72px 90px 90px 90px;
  padding: 7px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(6,8,16,0.6);
  position: sticky;
  top: 130px;
  z-index: 10;
}

.champs-th {
  font-size: 10px;
  font-weight: 700;
  color: #2c3a5a;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  display: flex;
  align-items: center;
}

.champs-th--active { color: #4f7cff; }

/* TABLE ROWS */
.champs-row {
  display: grid;
  grid-template-columns: 48px 44px 1fr 72px 90px 90px 90px;
  padding: 7px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  align-items: center;
  text-decoration: none;
  color: #eef3ff;
  transition: background 0.1s;
}

.champs-row:hover { background: rgba(79,124,255,0.04); }

.champs-td {
  font-size: 12px;
  color: #8090b8;
  display: flex;
  align-items: center;
}

.champs-td--rank { font-size: 11px; color: #2c3a5a; font-weight: 700; }

.champs-td--champ {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.champs-champ-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.champs-champ-name {
  font-size: 13px;
  font-weight: 700;
  color: #c0ccee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.champs-role-icon { width: 18px; height: 18px; object-fit: contain; opacity: 0.8; }
.champs-role-text { font-size: 11px; color: #4a5a7a; font-weight: 600; }

/* TIER BADGES */
.champs-tier {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  font-family: 'Cinzel', serif;
}

.champs-tier--s { background: rgba(255,215,0,0.08); color: #ffd700; border: 1px solid rgba(255,215,0,0.18); }
.champs-tier--a { background: rgba(255,128,64,0.08); color: #ff8040; border: 1px solid rgba(255,128,64,0.18); }
.champs-tier--b { background: rgba(91,143,255,0.08); color: #5b8fff; border: 1px solid rgba(91,143,255,0.18); }
.champs-tier--c { background: rgba(100,180,100,0.08); color: #64b464; border: 1px solid rgba(100,180,100,0.18); }
.champs-tier--d { background: rgba(130,130,130,0.08); color: #888; border: 1px solid rgba(130,130,130,0.18); }

/* WIN RATE COLORS */
.champs-wr--high { color: #4ade80; font-weight: 700; }
.champs-wr--mid  { color: #94a3b8; font-weight: 600; }
.champs-wr--low  { color: #f87171; font-weight: 700; }

/* EMPTY */
.champs-empty { padding: 40px; text-align: center; color: #4a5a7a; font-size: 14px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .page-shell, .champions-page-shell { width: min(100% - 24px, 1280px); margin: 18px auto 28px; }
  .meta-bar { align-items: stretch; }
  .meta-bar__right { width: 100%; }
  .search { flex: 1 1 220px; width: 100%; }
  .select { flex: 0 1 120px; }
  .btn { flex: 0 0 auto; }
  .table__head, .champions-table__head, .table__row, .champions-table__row { grid-template-columns: minmax(180px,2fr) 0.9fr 1fr 1fr 1fr; padding-left: 14px; padding-right: 14px; }
  .tchamp__img { width: 48px; height: 48px; border-radius: 12px; flex-basis: 48px; }
  .tchamp__name { font-size: 14px; }
  .champs-table-head, .champs-row { grid-template-columns: 36px 32px 1fr 60px 80px 80px 80px; padding: 6px 14px; }
  .champs-search-wrap { width: 160px; }
}

@media (max-width: 640px) {
  .table__head, .champions-table__head { display: none; }
  .table__row, .champions-table__row { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .table__row > div:not(.tchamp), .champions-table__row > div:not(.tchamp) { padding-left: 62px; }
  .mobile-label { display: inline; font-size: 11px; color: #8899bb; font-weight: 600; margin-right: 4px; }
  .champs-table-head { display: none; }
  .champs-row { grid-template-columns: 32px 28px 1fr 56px; }
  .champs-td:nth-child(6), .champs-td:nth-child(7) { display: none; }
  .champs-search-wrap { width: 100%; }
  .champs-rank-dropdown { margin-left: 0; }
  .champs-filter-bar { gap: 4px; }
  .champs-role-btn { width: 32px; height: 32px; }
  .champs-role-btn img { width: 16px; height: 16px; }
}