cat > /var/www/site/static/css/champion_card.css << 'CSSEOF'
/* ============================================================
   CHAMPION PAGE — champion_card.css v5
   ============================================================ */

.champion-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  color: #e8e0f0;
}

.champion-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #0d1117;
  border: 1px solid #1e2a3a;
  border-radius: 12px 12px 0 0;
  padding: 24px;
}

.champion-main-img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #1e3a5f;
  flex-shrink: 0;
}

.champion-title { flex: 1; min-width: 0; }

.champion-title h1 {
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.15;
}

.champion-subtitle { font-size: 13px; color: #8899aa; margin: 0 0 12px; }

.champion-stats { display: flex; flex-wrap: wrap; gap: 6px; }

.cs-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #141d2b;
  border: 1px solid #1e2a3a;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: #aab8cc;
}

.cs-pill b { color: #e8e0f0; font-weight: 600; }

.cs-pill-tier {
  background: #1a2540;
  border-color: #2a3f6f;
  color: #7eb3ff;
  font-weight: 700;
}

.wr-val { color: #f87171 !important; }

.tabs.tabs-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0d1117;
  border: 1px solid #1e2a3a;
  border-top: none;
  border-bottom: 2px solid #1e2a3a;
  padding: 0 8px;
}

.tabs-left { display: flex; overflow-x: auto; scrollbar-width: none; }
.tabs-left::-webkit-scrollbar { display: none; }

.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #6b7a8d;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.tab-btn:hover { color: #c0cfe0; }
.tab-btn.is-active { color: #e8e0f0; border-bottom-color: #3b82f6; }

.tabs-right { padding: 0 8px; flex-shrink: 0; }
.patch-badge { font-size: 12px; color: #6b7a8d; white-space: nowrap; }

.stats-bar {
  display: flex;
  background: #0d1117;
  border: 1px solid #1e2a3a;
  border-top: none;
  margin-bottom: 20px;
  overflow-x: auto;
}

.stats-bar-cell {
  flex: 1;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 8px;
  border-right: 1px solid #1e2a3a;
  gap: 6px;
}
.stats-bar-cell:last-child { border-right: none; }

.stats-bar-label {
  font-size: 11px;
  color: #6b7a8d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.stats-bar-val { font-size: 20px; font-weight: 700; color: #e8e0f0; }

.tier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 800;
}

.tier-s { background: #3d1f00; color: #ff9500; border: 1px solid #ff9500; }
.tier-a { background: #1a2f00; color: #7bda3c; border: 1px solid #7bda3c; }
.tier-b { background: #001a3d; color: #3b82f6; border: 1px solid #3b82f6; }
.tier-c { background: #2a1a00; color: #f59e0b; border: 1px solid #f59e0b; }
.tier-d { background: #2a0a0a; color: #ef4444; border: 1px solid #ef4444; }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.build-split-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.build-split-left { flex: 0 0 58%; min-width: 0; }
.build-split-right { flex: 1; min-width: 0; }

.build-card {
  background: #0d1117;
  border: 1px solid #1e2a3a;
  border-radius: 10px;
  padding: 16px 18px;
}

.build-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7a8d;
  margin-bottom: 14px;
}

.lol-rune-switcher.v3 {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.lol-rune-switch-card.v3 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #111827;
  border: 1px solid #1e2a3a;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  min-width: 88px;
}

.lol-rune-switch-card.v3:hover { border-color: #3b82f6; background: #131f2e; }
.lol-rune-switch-card.v3.is-active { border-color: #3b82f6; background: #0e1e35; }

.lol-rune-switch-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lol-rune-switch-icons { display: flex; align-items: center; gap: 4px; }
.lol-rune-switch-rate { font-size: 14px; font-weight: 700; color: #e8e0f0; }
.lol-rune-switch-games { font-size: 11px; color: #6b7a8d; }

.lol-rune-build-panels { position: relative; }
.lol-rune-build.v3 { display: none; }
.lol-rune-build.v3.is-active { display: block; }

.lol-rune-meta.v3 {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #8899aa;
}
.lol-rune-meta.v3 b { color: #e8e0f0; }

.lol-rune-board-compact { display: flex; gap: 12px; }
.lol-rune-main-block { flex: 1; min-width: 0; }

.lol-rune-side-block {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 100px;
}

.lol-rune-style-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.lol-tree-name { font-size: 12px; font-weight: 600; color: #aab8cc; }
.lol-rune-tree-compact { display: flex; flex-direction: column; gap: 6px; }

.lol-full-rune-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.lol-full-rune {
  width: 39px;
  height: 39px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.lol-full-rune img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.lol-full-rune.is-keystone { width: 54px; height: 54px; }
.lol-full-rune.is-selected { border: 2px solid rgba(255,255,255,0.35); }
.lol-full-rune.is-dim { opacity: 0.22; filter: saturate(0); }
.lol-rune-tree-compact.is-secondary .lol-full-rune { width: 32px; height: 32px; }

.lol-rune-shards-block { display: flex; flex-direction: column; gap: 6px; }

.lol-full-shard-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.lol-full-shard {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lol-full-shard img { width: 100%; height: 100%; object-fit: contain; }
.lol-full-shard.is-selected { border: 2px solid rgba(255,255,255,0.4); }
.lol-full-shard.is-dim { opacity: 0.22; filter: saturate(0); }

.build-chip {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #111827;
  border: 1px solid #1e2a3a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.build-chip.is-keystone { width: 48px; height: 48px; border-radius: 50%; }
.build-chip.is-mini { width: 26px; height: 26px; }
.build-chip-style { background: transparent; border: none; }
.build-icon { width: 100%; height: 100%; object-fit: contain; display: block; }
.build-fallback-icon {
  font-size: 11px; color: #6b7a8d;
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}

.items-card { height: 100%; }
.item-group { margin-bottom: 16px; }
.item-group:last-child { margin-bottom: 0; }
.item-group-label { font-size: 12px; color: #8899aa; font-weight: 600; margin: 0 0 8px; }
.build-icons-row { display: flex; flex-wrap: wrap; gap: 6px; }

.starting-options-grid { display: flex; flex-direction: column; gap: 8px; }

.starting-option-card {
  background: #111827;
  border: 1px solid #1e2a3a;
  border-radius: 6px;
  padding: 8px 10px;
}

.starting-option-meta { display: flex; gap: 12px; font-size: 11px; color: #6b7a8d; margin-bottom: 6px; }
.starting-option-meta b { color: #aab8cc; }

.amo-block {
  background: #0d1117;
  border: 1px solid #1e2a3a;
  border-radius: 10px;
  padding: 16px 18px;
}

.amo-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.amo-title { font-size: 13px; font-weight: 700; color: #e8e0f0; }

.amo-priority-badge {
  background: #1a2540;
  border: 1px solid #2a3f6f;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #7eb3ff;
}

.amo-grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.amo-grid { min-width: 580px; }

.amo-level-header,
.amo-row {
  display: grid;
  grid-template-columns: 26px repeat(18, 1fr);
  gap: 2px;
  margin-bottom: 2px;
}

.amo-level-num { text-align: center; font-size: 10px; color: #4a5568; padding: 2px 0; }

.amo-row-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  height: 26px;
}

.amo-label-q { background: rgba(59,130,246,0.15); color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); }
.amo-label-w { background: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.25); }
.amo-label-e { background: rgba(249,115,22,0.12); color: #f97316; border: 1px solid rgba(249,115,22,0.25); }
.amo-label-r { background: rgba(234,179,8,0.10); color: #eab308; border: 1px solid rgba(234,179,8,0.25); }

.amo-cell {
  height: 26px;
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: transparent;
}

.amo-active-q { background: rgba(59,130,246,0.8); color: #fff; }
.amo-active-w { background: rgba(34,197,94,0.8); color: #fff; }
.amo-active-e { background: rgba(249,115,22,0.8); color: #fff; }
.amo-active-r { background: rgba(180,100,0,0.85); color: #fff; }

.build-section { margin-top: 0; }

.counters-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.counter-col h3 { font-size: 13px; font-weight: 700; color: #aab8cc; margin: 0 0 12px; }

.matchup-table, .synergy-table { display: flex; flex-direction: column; gap: 2px; }

.matchup-table-head, .synergy-table-head {
  display: flex;
  padding: 6px 8px;
  font-size: 11px;
  color: #6b7a8d;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #1e2a3a;
  margin-bottom: 4px;
}

.matchup-row, .synergy-row {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: #e8e0f0;
  transition: background 0.12s;
}

.matchup-row:hover, .synergy-row:hover { background: #111827; }

.matchup-col { display: flex; align-items: center; }
.matchup-col-champion { flex: 1; min-width: 0; }
.matchup-col-score { width: 48px; justify-content: center; font-size: 12px; color: #8899aa; }
.matchup-col-wr { width: 56px; justify-content: center; font-size: 13px; font-weight: 600; }
.matchup-col-games { width: 52px; justify-content: flex-end; font-size: 12px; color: #8899aa; }

.matchup-champion-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }

.matchup-mini-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #111827;
}

.matchup-mini-icon img { width: 100%; height: 100%; object-fit: cover; }
.matchup-champion-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wr-good { color: #22c55e; }
.wr-bad  { color: #f87171; }

.guide-block {
  background: #0d1117;
  border: 1px solid #1e2a3a;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.guide-block h3 { font-size: 13px; font-weight: 700; color: #7eb3ff; margin: 0 0 10px; }
.guide-block p { font-size: 14px; color: #aab8cc; line-height: 1.7; margin: 0; }
.guide-block ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.guide-block ul li { font-size: 14px; color: #aab8cc; line-height: 1.6; }

.no-data { text-align: center; color: #4a5568; padding: 40px; font-size: 14px; font-style: italic; }

@media (max-width: 900px) {
  .build-split-layout { flex-direction: column; }
  .build-split-left, .build-split-right { flex: none; width: 100%; }
  .counters-two-col { grid-template-columns: 1fr; }
  .stats-bar-val { font-size: 17px; }
  .champion-title h1 { font-size: 24px; }
}

@media (max-width: 600px) {
  .champion-page { padding: 10px 10px 28px; }
  .champion-header { padding: 14px; gap: 12px; border-radius: 8px 8px 0 0; }
  .champion-main-img { width: 56px; height: 56px; }
  .champion-title h1 { font-size: 19px; }
  .champion-subtitle { font-size: 11px; margin-bottom: 8px; }
  .cs-pill { font-size: 11px; padding: 3px 9px; }
  .tabs.tabs-nav-row { padding: 0 4px; }
  .tab-btn { padding: 10px 12px; font-size: 13px; }
  .tabs-right { display: none; }
  .stats-bar { flex-wrap: nowrap; }
  .stats-bar-cell { min-width: 64px; padding: 10px 4px; }
  .stats-bar-label { font-size: 9px; }
  .stats-bar-val { font-size: 14px; }
  .tier-badge { width: 26px; height: 26px; font-size: 13px; }
  .build-card { padding: 12px; }
  .lol-rune-board-compact { flex-direction: column; gap: 14px; }
  .lol-rune-side-block { min-width: unset; width: 100%; flex-direction: row; gap: 16px; align-items: flex-start; }
  .lol-rune-secondary-block { flex: 1; }
  .lol-rune-shards-block { flex-shrink: 0; }
  .lol-full-rune { width: 32px; height: 32px; }
  .lol-full-rune.is-keystone { width: 44px; height: 44px; }
  .lol-rune-tree-compact.is-secondary .lol-full-rune { width: 28px; height: 28px; }
  .lol-full-shard { width: 22px; height: 22px; }
  .build-chip { width: 34px; height: 34px; }
  .amo-block { padding: 12px; }
  .amo-grid { min-width: 500px; }
  .amo-cell, .amo-row-label { height: 23px; }
  .matchup-col-score { display: none; }
  .matchup-col-wr { width: 44px; font-size: 12px; }
  .matchup-col-games { width: 38px; font-size: 11px; }
  .matchup-champion-name { font-size: 12px; }
  .matchup-mini-icon { width: 22px; height: 22px; }
  .guide-block { padding: 12px; }
  .guide-block p, .guide-block ul li { font-size: 13px; }
}
CSSEOF
echo "CSS yazıldı: $?"
/* rune board orantı düzeltme */
.lol-rune-main-block {
  flex: 0 0 55% !important;
  max-width: 55% !important;
}

.lol-rune-side-block {
  flex: 1 1 auto !important;
  min-width: 140px !important;
}

/* seçili rune vurgu düzeltme */
.lol-full-rune.is-selected {
  border: 2px solid rgba(255,200,50,0.7) !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: 0 0 8px rgba(255,200,50,0.4);
}

.lol-full-rune.is-dim {
  opacity: 0.18 !important;
  filter: saturate(0) brightness(0.6) !important;
}

.lol-full-shard.is-selected {
  border: 2px solid rgba(255,200,50,0.7) !important;
  opacity: 1 !important;
  filter: none !important;
}

.lol-full-shard.is-dim {
  opacity: 0.18 !important;
  filter: saturate(0) brightness(0.6) !important;
}

/* switcher kart icon boyut eşitleme */
.lol-rune-switch-icons .build-chip,
.lol-rune-switch-icons .build-chip-style {
  width: 26px !important;
  height: 26px !important;
}

.lol-rune-switch-icons .build-chip img,
.lol-rune-switch-icons .build-chip-style img {
  width: 100% !important;
  height: 100% !important;
}

/* board gap ve orantı düzeltme */
.lol-rune-board-compact {
  gap: 24px !important;
}

.lol-rune-main-block {
  flex: 0 0 auto !important;
  max-width: none !important;
  width: auto !important;
}

.lol-rune-side-block {
  flex: 0 0 auto !important;
  min-width: 120px !important;
  width: auto !important;
}

.lol-rune-tree-compact {
  gap: 8px !important;
}

.lol-full-rune-row {
  gap: 4px !important;
  justify-content: flex-start !important;
}

.lol-rune-tree-compact.is-secondary .lol-full-rune-row {
  justify-content: flex-start !important;
}

.lol-full-rune-row.is-keystone-row {
  justify-content: center !important;
}

/* primary ve secondary tree ortala */
.lol-rune-board-compact {
  justify-content: center !important;
  align-items: flex-start !important;
}

.lol-full-rune-row {
  justify-content: center !important;
}

.lol-rune-style-row {
  justify-content: center !important;
}

/* switcher kartları ortala */
.lol-rune-switcher.v3 {
  justify-content: center !important;
}

/* WR PR Games meta satırı gizle */
.lol-rune-meta.v3 {
  display: none !important;
}

/* shards bloğu üstüne ayırıcı çizgi */
.lol-rune-shards-block {
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  padding-top: 8px !important;
  margin-top: 4px !important;
}

/* dim rune opacity artır */
.lol-full-rune.is-dim {
  opacity: 0.35 !important;
  filter: saturate(0) brightness(0.7) !important;
}

.lol-full-shard.is-dim {
  opacity: 0.35 !important;
  filter: saturate(0) brightness(0.7) !important;
}
