/* Styles for the server-rendered tier list / champion / counter pages (lib/seo.js). */
:root {
  --bg: #07090f; --panel: rgba(19, 25, 38, .72); --panel2: rgba(30, 38, 56, .7);
  --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .14);
  --text: #eef1f7; --muted: #8b95a9; --a1: #2de2c4; --a2: #8b7bff;
  --grad: linear-gradient(135deg, var(--a1), var(--a2));
  --good: #36e08f; --bad: #ff5c6c; --r: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(45,226,196,.10), transparent 60%),
              radial-gradient(900px 500px at 100% 0%, rgba(139,123,255,.12), transparent 60%), var(--bg);
  color: var(--text); font: 15px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: var(--a1); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.pos { color: var(--good); } .neg { color: var(--bad); }

/* header */
.top { display: flex; align-items: center; gap: 20px; padding: 14px 28px; border-bottom: 1px solid var(--line); background: rgba(7,9,15,.7); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.logo { width: 32px; height: 32px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; }
.logo svg { width: 22px; height: 22px; fill: none; stroke: #07090f; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.word { font: 700 20px 'Space Grotesk', sans-serif; letter-spacing: -.02em; }
.word span { color: var(--a1); }
.top nav { display: flex; gap: 4px; margin-left: auto; }
.top nav a { padding: 7px 14px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14px; }
.top nav a:hover { color: var(--text); background: rgba(255,255,255,.05); text-decoration: none; }

/* page */
.page { max-width: 1100px; margin: 0 auto; padding: 24px 28px 48px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
h1 { font: 700 36px/1.15 'Space Grotesk', sans-serif; margin: 6px 0 10px; letter-spacing: -.02em; }
h1 .sub { display: block; font-size: 18px; font-weight: 600; color: var(--muted); margin-top: 6px; letter-spacing: 0; }
h2 { font: 700 20px 'Space Grotesk', sans-serif; margin: 28px 0 10px; }
.card h2 { margin-top: 0; }
h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 0 8px; }
.card h3:first-child { margin-top: 0; }
.lead { color: #c9d0dd; max-width: 780px; margin: 0 0 18px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px; font-weight: 700; border: 1px solid var(--line2); color: var(--text); background: var(--panel2); text-decoration: none !important; }
.btn:hover { border-color: var(--a1); }
.btn.primary { background: var(--grad); color: #07090f; border: 0; box-shadow: 0 8px 30px rgba(45,226,196,.2); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 20px; }

.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(7,9,15,.6); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; margin: 0 0 16px; }
.tabs a { padding: 7px 16px; border-radius: 9px; color: var(--muted); font-weight: 600; white-space: nowrap; text-decoration: none !important; }
.tabs a small { opacity: .7; font-weight: 500; margin-left: 4px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { background: var(--grad); color: #07090f; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 > .card { margin-bottom: 0; }
.grid2 + .grid2, .grid2 + .card, .card + .grid2 { margin-top: 16px; }

/* tables */
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
table.tl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; padding: 10px 12px; background: rgba(7,9,15,.4); }
.tl td { padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
.tl tr:hover td { background: rgba(255,255,255,.025); }
.tl .num { font-variant-numeric: tabular-nums; }
.tl td.num.pos, .tl td.num.neg { font-weight: 700; }
.tl.sm td { padding: 6px 8px; } .tl.sm th { padding: 8px; background: transparent; }
.champ { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.champ img { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line2); }
img.mini { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line2); margin-right: 4px; vertical-align: middle; }
.tier { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font: 800 14px 'Space Grotesk', sans-serif; color: #07090f; }
.tS { background: linear-gradient(135deg, #ff7aa2, #ffb36b); } .tA { background: linear-gradient(135deg, #2de2c4, #6ad8ff); }
.tB { background: #8b7bff; } .tC { background: #8b95a9; } .tD { background: #4b5466; color: #dfe4ee; }

/* champion page */
.hero-card { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; }
.portrait { width: 88px; height: 88px; border-radius: 18px; border: 2px solid rgba(45,226,196,.5); box-shadow: 0 0 30px rgba(45,226,196,.2); }
.kpis { display: flex; gap: 26px; flex-wrap: wrap; flex: 1; }
.kpis div { display: flex; flex-direction: column; }
.kpis b { font: 700 24px 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; }
.kpis small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none !important; }
.chip:hover { border-color: var(--line2); }
.chip img { width: 28px; height: 28px; border-radius: 7px; }
.chip em { font-style: normal; font-weight: 700; }
.chip small { color: var(--muted); font-weight: 500; }
.more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 14px; }
.opt { padding: 10px 0; border-top: 1px solid var(--line); }
.opt:first-of-type { border-top: 0; padding-top: 0; }
.opt-h { font-weight: 700; font-size: 13px; display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.opt small, .item small { color: var(--muted); font-weight: 500; font-size: 12px; }
.runes { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.runes img { width: 28px; height: 28px; }
.rune-list { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: #c9d0dd; }
.rune-list span { display: inline-flex; align-items: center; gap: 4px; }
.rune-list img { width: 20px; height: 20px; }
.rune-list.sec { margin-top: 4px; opacity: .85; }
.opt.sm { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.spells { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.spells img { width: 28px; height: 28px; border-radius: 6px; }
.spells span { margin-right: 6px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.item { display: grid; grid-template-columns: 32px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; font-size: 13px; font-weight: 600; }
.item img { grid-row: span 2; width: 32px; height: 32px; border-radius: 6px; }
.item.core { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.item.core img { grid-row: auto; }
.item.core i { color: var(--muted); font-style: normal; }
.item.core small { margin-left: 8px; }

/* champion index */
.filter { height: 42px; padding: 0 14px; border-radius: 12px; background: rgba(7,9,15,.6); border: 1px solid var(--line2); color: var(--text); font: inherit; width: 100%; max-width: 360px; outline: none; margin-bottom: 16px; }
.filter:focus { border-color: var(--a1); }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.ccard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 14px 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.ccard:hover { border-color: rgba(45,226,196,.5); transform: translateY(-2px); }
.ccard img { width: 56px; height: 56px; border-radius: 12px; }
.ccard b { font-size: 14px; }
.ccard small { color: var(--muted); font-size: 12px; }

.prose { max-width: 780px; color: #c9d0dd; }

/* footer */
.foot { max-width: 1100px; margin: 0 auto; padding: 24px 28px 40px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; font-size: 13px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }

@media (max-width: 760px) {
  .top { padding: 12px 16px; gap: 10px; }
  .top nav { margin-left: 0; width: 100%; }
  .top nav a { padding: 6px 10px; font-size: 13px; }
  .page { padding: 16px 16px 40px; }
  .foot { padding: 20px 16px 32px; }
  h1 { font-size: 28px; }
  .grid2 { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .tl th, .tl td { padding: 8px 6px; }
  .kpis { gap: 16px; }
  .kpis b { font-size: 20px; }
  .hero-card .btn { width: 100%; justify-content: center; }
}
