/* ── Champion Hub — SSG list page ────────────────────────────────────────── */

/* ── Controls bar (sticky) ─────────────────────────────────────────────── */
.chub-controls {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 10, 20, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin: 0 -1.5rem 24px;
  padding: 12px 1.5rem 10px;
}

.chub-search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.chub-search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

#chub-q {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 9px 44px 9px 38px;
  color: var(--text-strong);
  font-size: .88rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}

#chub-q:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(66,183,255,.12);
}

#chub-q::placeholder { color: var(--text-muted); }

.chub-count {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  padding: 2px 8px;
  pointer-events: none;
}

/* ── Role tabs ─────────────────────────────────────────────────────────── */
.chub-role-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chub-tab {
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 8px;
  padding: 5px 14px;
  background: rgba(255,255,255,.04);
  color: var(--text-muted);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  font-family: inherit;
}

.chub-tab:hover {
  border-color: rgba(66,183,255,.35);
  color: var(--text-base);
  background: rgba(66,183,255,.07);
}

.chub-tab.chub-tab--active {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
  color: #000;
  box-shadow: 0 0 12px rgba(66,183,255,.35);
}

/* ── Champions grid ────────────────────────────────────────────────────── */
.chub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
}

/* ── Card ──────────────────────────────────────────────────────────────── */
.chub-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  text-decoration: none;
  display: block;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  animation: chub-in .4s calc(var(--i,0) * 10ms) ease both;
}

.chub-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 28px rgba(66,183,255,.22);
  border-color: rgba(66,183,255,.45);
  z-index: 2;
}

/* Tier glow on hover */
.chub-card[data-tier="S+"]:hover { box-shadow: 0 10px 28px rgba(255,215,0,.22); border-color: rgba(255,215,0,.45); }
.chub-card[data-tier="S"]:hover  { box-shadow: 0 10px 28px rgba(66,183,255,.22); border-color: rgba(66,183,255,.45); }
.chub-card[data-tier="A"]:hover  { box-shadow: 0 10px 28px rgba(52,211,153,.22); border-color: rgba(52,211,153,.45); }

/* Art */
.chub-card__art {
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(0,0,0,.3);
}

.chub-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.chub-card:hover .chub-card__art img {
  transform: scale(1.09);
}

/* Footer */
.chub-card__foot {
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  background: rgba(0,0,0,.3);
}

.chub-card__name {
  font-size: .72rem;
  font-weight: 700;
  color: var(--text-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ── Tier badges ───────────────────────────────────────────────────────── */
.chub-tier {
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .03em;
  flex-shrink: 0;
}

.t-splus { color: #ffd700; }
.t-s     { color: #42b7ff; }
.t-a     { color: #34d399; }
.t-b     { color: #9ea8c7; }
.t-c     { color: #fb923c; }
.t-d     { color: #ef4444; }

/* ── Section heading ───────────────────────────────────────────────────── */
.chub-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 20px;
}

.chub-heading h1 {
  margin: 0;
  font-family: "Orbitron", "Barlow", sans-serif;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: .04em;
}

.chub-heading__sub {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ── Empty state ───────────────────────────────────────────────────────── */
.chub-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: .9rem;
  grid-column: 1 / -1;
}

/* ── Fade-in animation ─────────────────────────────────────────────────── */
@keyframes chub-in {
  from { opacity: 0; transform: scale(.93) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Side Panel ────────────────────────────────────────────────────────── */
.chub-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.chub-panel--open { pointer-events: auto; }

.chub-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s;
}

.chub-panel--open .chub-panel__backdrop { opacity: 1; }

.chub-panel__drawer {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 340px;
  max-width: 90vw;
  background: linear-gradient(180deg, #0e1123 0%, #080a15 100%);
  border-left: 1px solid rgba(120,150,255,.2);
  box-shadow: -12px 0 40px rgba(0,0,0,.6);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.25,.46,.45,.94);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.chub-panel--open .chub-panel__drawer { transform: translateX(0); }

/* Splash art hero */
.chub-panel__splash {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  flex-shrink: 0;
}

.chub-panel__splash img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.05);
  transition: transform .4s ease;
}

.chub-panel--open .chub-panel__splash img { transform: scale(1); }

.chub-panel__splash-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.1) 40%, rgba(8,10,21,.95) 100%);
  pointer-events: none;
}

.chub-panel__splash-meta {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 48px;
}

.chub-panel__name {
  font-family: "Orbitron", "Barlow", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: .04em;
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
}

.chub-panel__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chub-badge {
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 5px;
  padding: 3px 9px;
}

.chub-badge--tier {
  background: rgba(255,215,0,.12);
  border: 1px solid rgba(255,215,0,.3);
  color: #ffd700;
}

.chub-badge--tier.t-s     { background: rgba(66,183,255,.12);  border-color: rgba(66,183,255,.3);  color: #42b7ff; }
.chub-badge--tier.t-a     { background: rgba(52,211,153,.12);  border-color: rgba(52,211,153,.3);  color: #34d399; }
.chub-badge--tier.t-b     { background: rgba(158,168,199,.1);  border-color: rgba(158,168,199,.2); color: #9ea8c7; }
.chub-badge--tier.t-c     { background: rgba(251,146,60,.1);   border-color: rgba(251,146,60,.2);  color: #fb923c; }
.chub-badge--tier.t-d     { background: rgba(239,68,68,.1);    border-color: rgba(239,68,68,.2);   color: #ef4444; }

.chub-badge--role {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: var(--text-muted);
}

.chub-badge--class {
  background: rgba(128,103,255,.1);
  border: 1px solid rgba(128,103,255,.25);
  color: #a78bfa;
}

/* Close button */
.chub-panel__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.5);
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
  line-height: 1;
}

.chub-panel__close:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Navigation links */
.chub-panel__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chub-panel__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  color: var(--text-base);
  transition: background .15s, border-color .15s, transform .15s;
}

.chub-panel__link:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  transform: translateX(3px);
  color: var(--text-strong);
}

.chub-panel__link--primary {
  background: rgba(66,183,255,.1);
  border-color: rgba(66,183,255,.35);
  color: #42b7ff;
}

.chub-panel__link--primary:hover {
  background: rgba(66,183,255,.18);
  border-color: rgba(66,183,255,.5);
  box-shadow: 0 4px 16px rgba(66,183,255,.15);
  color: #7dd3fc;
}

.chub-panel__link-arrow {
  opacity: .5;
  font-size: .8rem;
  transition: opacity .15s, transform .15s;
}

.chub-panel__link:hover .chub-panel__link-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .chub-grid { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
  .chub-tab  { padding: 4px 10px; font-size: .72rem; }
  .chub-controls { margin: 0 -1rem 20px; padding: 10px 1rem 8px; }
  .chub-panel__drawer { width: 100vw; }
}
