/* ═══════════════════════════════════════════════
   王者荣耀征召 BP 助手 — Styles
   含出装铭文卡片样式
   ═══════════════════════════════════════════════ */

:root {
  --bg-primary: #0a0a12;
  --bg-secondary: #12121f;
  --bg-card: #1a1a2e;
  --accent-gold: #ffd700;
  --accent-blue: #4fc3f7;
  --accent-red: #ef5350;
  --accent-green: #66bb6a;
  --accent-purple: #ab47bc;
  --text-primary: #e8e8f0;
  --text-secondary: #9090a8;
  --text-muted: #585870;
  --border-color: #252540;
  --slot-size: 76px;
  --hero-icon-size: 52px;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans SC', -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: linear-gradient(135deg, #12121f 0%, #1a1a2e 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text {
  font-size: 20px; font-weight: 900;
  background: linear-gradient(135deg, #ffd700, #ff8f00);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-subtitle { font-size: 13px; color: var(--text-secondary); }

/* ── BP Stepper ── */
.bp-stepper {
  display: flex; align-items: center; gap: 2px;
  padding: 12px 24px;
  overflow-x: auto;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  scrollbar-width: thin;
}
.bp-stepper::-webkit-scrollbar { height: 4px; }
.bp-stepper::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }
.step-group { display: flex; align-items: center; gap: 2px; }
.step-sep { color: var(--text-muted); font-size: 14px; margin: 0 6px; }
.step {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  cursor: pointer; transition: all 0.2s;
  border: 1px solid transparent;
  opacity: 0.5;
}
.step.completed { opacity: 0.7; border-color: var(--accent-green); color: var(--accent-green); }
.step.active {
  opacity: 1; border-color: var(--accent-gold);
  background: rgba(255,215,0,0.12);
  color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(255,215,0,0.15);
}
.step.pending { opacity: 0.3; }
.step.ban-turn .step-icon { color: var(--accent-red); }
.step.pick-turn .step-icon { color: var(--accent-blue); }

/* ── Banned Display ── */
.banned-display {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 24px;
  background: rgba(239,83,80,0.05);
  border-bottom: 1px solid var(--border-color);
  min-height: 40px;
}
.banned-label { font-size: 12px; font-weight: 600; color: var(--accent-red); white-space: nowrap; }
.banned-slots { display: flex; gap: 4px; flex-wrap: wrap; }
.banned-chip {
  display: flex; align-items: center; gap: 3px;
  padding: 2px 8px 2px 4px;
  border-radius: 4px;
  background: rgba(239,83,80,0.12);
  border: 1px solid rgba(239,83,80,0.2);
  font-size: 11px;
}
.banned-chip img { width: 20px; height: 20px; border-radius: 50%; }

/* ── Layout ── */
.layout {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 12px;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  header { flex-direction: column; gap: 4px; }
}

/* ── Team Panels ── */
.team-panel {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--border-color);
}
.team-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.team-header h2 { font-size: 14px; font-weight: 700; }
.team-count {
  background: rgba(255,255,255,0.08);
  padding: 1px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 600;
}
.ally-panel .team-header h2 { color: var(--accent-blue); }
.enemy-panel .team-header h2 { color: var(--accent-red); }
.slots { display: flex; flex-direction: column; gap: 6px; }
.slot-number {
  position: absolute; top: -4px; left: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.ally-panel .slot-number { color: var(--accent-blue); }
.enemy-panel .slot-number { color: var(--accent-red); }
.slot {
  width: 100%; height: var(--slot-size);
  border-radius: 8px;
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.slot.empty {
  background: rgba(255,255,255,0.03);
  border: 1.5px dashed var(--border-color);
  justify-content: center;
}
.slot.empty .slot-placeholder { font-size: 22px; color: var(--text-muted); }
.slot.filled {
  background: var(--bg-card);
  border: 1.5px solid transparent;
}
.ally-panel .slot.filled { border-color: rgba(79,195,247,0.3); }
.enemy-panel .slot.filled { border-color: rgba(239,83,80,0.3); }
.slot.filled:hover { transform: translateX(4px); }
.slot.active-turn {
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 10px rgba(255,215,0,0.12);
}
.slot-hero-icon {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.slot-info { flex: 1; min-width: 0; }
.slot-hero-name { font-size: 13px; font-weight: 600; line-height: 1.2; }
.slot-hero-role {
  font-size: 10px; color: var(--text-secondary);
  padding: 1px 5px; border-radius: 4px;
  background: rgba(255,255,255,0.06);
  display: inline-block; margin-top: 2px;
}
.slot-remove {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-red); color: white;
  border: 2px solid var(--bg-primary);
  font-size: 12px; line-height: 14px;
  text-align: center; cursor: pointer;
  opacity: 0; transition: opacity 0.2s;
  flex-shrink: 0;
}
.slot.filled:hover .slot-remove { opacity: 1; }

/* ── Recommendation Center ── */
.rec-center {
  background: linear-gradient(180deg, #1a1a2e, #12121f);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.rec-center-header { display: flex; align-items: center; gap: 8px; }
.rec-phase-badge {
  font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 6px;
  background: rgba(255,215,0,0.1); color: var(--accent-gold);
}
.rec-center-header .rec-turn-badge {
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
}
.rec-turn-badge.b-blue { background: rgba(79,195,247,0.15); color: var(--accent-blue); }
.rec-turn-badge.b-red { background: rgba(239,83,80,0.15); color: var(--accent-red); }
.rec-turn-badge.b-ban { background: rgba(239,83,80,0.1); color: var(--accent-red); }
.rec-message { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.rec-heroes { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.rec-heroes::-webkit-scrollbar { width: 4px; }
.rec-heroes::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }
.rec-hero-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.rec-hero-item:hover {
  background: rgba(255,215,0,0.08);
  border-color: rgba(255,215,0,0.2);
}
.rec-hero-item img { width: 36px; height: 36px; border-radius: 50%; }
.rec-hero-item .rec-hero-info { flex: 1; }
.rec-hero-item .rec-hero-name { font-size: 13px; font-weight: 600; }
.rec-hero-item .rec-hero-role { font-size: 10px; color: var(--text-muted); }
.rec-hero-item .rec-hero-score { font-size: 12px; color: var(--accent-gold); }
.rec-hero-item .rec-hero-reasons { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.rec-hero-item .rec-hero-reasons span {
  display: inline-block; padding: 0 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px; margin-right: 4px;
}
.rec-hero-item .rec-pick-btn {
  padding: 3px 10px; border-radius: 4px;
  border: none; font-size: 11px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  background: var(--accent-gold); color: #1a1a2e;
  transition: all 0.15s;
  flex-shrink: 0;
}
.rec-hero-item .rec-pick-btn:hover { transform: scale(1.05); }
.rec-hero-item .rec-pick-btn.b-ban { background: var(--accent-red); color: white; }
.rec-actions {
  display: flex; gap: 6px; margin-top: 4px;
}
.rec-action-btn {
  flex: 1; padding: 8px; border: 1px solid var(--border-color);
  border-radius: 6px;
  background: transparent; color: var(--text-secondary);
  font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all 0.2s;
}
.rec-action-btn:hover { background: rgba(255,255,255,0.05); color: var(--text-primary); }
.rec-action-btn.primary {
  background: linear-gradient(135deg, #ffd700, #ff8f00);
  color: #1a1a2e; border: none;
}
.rec-action-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,215,0,0.2); }
.rec-action-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Hero Pool ── */
.hero-pool-section {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px 16px;
}
.pool-header {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 10px 16px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
}
.pool-header h2 { font-size: 14px; font-weight: 700; color: var(--accent-gold); }
.pool-controls { display: flex; gap: 6px; }
.pool-controls input, .pool-controls select {
  padding: 5px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  font-size: 12px; font-family: inherit;
  outline: none;
}
.pool-controls input:focus, .pool-controls select:focus { border-color: var(--accent-gold); }
.pool-controls input::placeholder { color: var(--text-muted); }
.pool-controls select option { background: var(--bg-secondary); color: var(--text-primary); }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: 300px;
  overflow-y: auto;
}
.hero-grid::-webkit-scrollbar { width: 5px; }
.hero-grid::-webkit-scrollbar-track { background: transparent; }
.hero-grid::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }

.hero-card {
  display: flex; flex-direction: column; align-items: center;
  padding: 4px; border-radius: 6px;
  cursor: pointer; transition: all 0.12s;
  background: rgba(255,255,255,0.02);
  border: 1px solid transparent;
}
.hero-card:hover { background: rgba(255,215,0,0.08); border-color: rgba(255,215,0,0.15); }
.hero-card.picked { opacity: 0.3; cursor: not-allowed; }
.hero-card.banned {
  opacity: 0.2; cursor: not-allowed;
  text-decoration: line-through;
}
.hero-card.recommended {
  background: rgba(255,215,0,0.12);
  border-color: rgba(255,215,0,0.25);
}
.hero-card-img {
  width: 42px; height: 42px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.06);
}
.hero-card-name { font-size: 10px; font-weight: 600; margin-top: 3px; text-align: center; }
.hero-card-role { font-size: 8px; color: var(--text-muted); }

/* ── Results Section ── */
.results-section {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px 24px;
}
.results-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.results-header h2 { font-size: 18px; font-weight: 700; color: var(--accent-gold); }
.close-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--border-color); border-radius: 6px;
  background: transparent; color: var(--text-secondary);
  font-size: 16px; cursor: pointer;
}
.close-btn:hover { background: rgba(239,83,80,0.1); border-color: var(--accent-red); color: var(--accent-red); }

.results-body { display: flex; flex-direction: column; gap: 14px; }

.score-summary-card {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid var(--border-color); border-radius: var(--radius);
  padding: 20px; display: flex; align-items: center; gap: 20px;
}
.score-badge {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 900; flex-shrink: 0;
}
.score-badge.S { background: linear-gradient(135deg, #ffd700, #ff8f00); color: #1a1a2e; }
.score-badge.A { background: linear-gradient(135deg, #66bb6a, #43a047); color: white; }
.score-badge.B { background: linear-gradient(135deg, #4fc3f7, #0288d1); color: white; }
.score-badge.C { background: linear-gradient(135deg, #ffa726, #ef6c00); color: white; }
.score-badge.D { background: linear-gradient(135deg, #ef5350, #c62828); color: white; }
.score-summary-text h3 { font-size: 16px; margin-bottom: 4px; }
.score-summary-text p { font-size: 13px; color: var(--text-secondary); }

.breakdown-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.breakdown-card {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 14px;
}
.breakdown-card h4 { font-size: 13px; margin-bottom: 8px; display: flex; gap: 6px; }
.breakdown-bar { height: 5px; background: rgba(255,255,255,0.06); border-radius: 2px; margin-bottom: 6px; overflow: hidden; }
.breakdown-bar-fill { height: 100%; border-radius: 2px; transition: width 0.5s; }
.breakdown-bar-fill.high { background: linear-gradient(90deg, #66bb6a, #43a047); }
.breakdown-bar-fill.mid { background: linear-gradient(90deg, #ffa726, #ef6c00); }
.breakdown-bar-fill.low { background: linear-gradient(90deg, #ef5350, #c62828); }
.breakdown-items { list-style: none; }
.breakdown-items li { font-size: 12px; color: var(--text-secondary); padding: 2px 0; }

.rec-section {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 16px;
}
.rec-section h3 { font-size: 14px; margin-bottom: 10px; }
.rec-section h3.gold { color: var(--accent-gold); }
.rec-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.rec-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); border-radius: 6px; padding: 10px; }
.rec-card h5 { font-size: 12px; margin-bottom: 6px; }
.rec-card p { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.rec-hero-list { display: flex; flex-wrap: wrap; gap: 4px; }
.rec-hero-chip {
  display: flex; align-items: center; gap: 3px;
  background: rgba(255,255,255,0.05);
  padding: 3px 6px; border-radius: 4px; font-size: 11px;
}
.rec-hero-chip img { width: 20px; height: 20px; border-radius: 50%; }
.analysis-tips { display: flex; flex-direction: column; gap: 5px; }
.analysis-tip {
  background: rgba(255,255,255,0.03);
  padding: 6px 10px; border-radius: 4px;
  font-size: 12px; border-left: 3px solid var(--accent-gold);
}
.analysis-tip.red { border-left-color: var(--accent-red); }
.analysis-tip.blue { border-left-color: var(--accent-blue); }
.analysis-tip.purple { border-left-color: var(--accent-purple); }
.grid-empty { grid-column: 1 / -1; text-align: center; padding: 30px; color: var(--text-muted); font-size: 13px; }

/* ═══════════════════════════════════════════════
   出装 · 铭文卡片 (新增)
   ═══════════════════════════════════════════════ */

.builds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.build-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  transition: all 0.2s;
}
.build-card:hover {
  border-color: rgba(255,215,0,0.2);
  box-shadow: 0 2px 12px rgba(255,215,0,0.06);
}

.build-hero-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.build-hero-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,215,0,0.2);
}
.build-hero-info { flex: 1; }
.build-hero-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.build-hero-position {
  font-size: 10px;
  color: var(--accent-gold);
  margin-top: 1px;
}

.build-set {
  margin-bottom: 8px;
}
.build-set.alt-build {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,0.06);
}

.build-set-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 6px;
}

.build-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 4px;
}
.build-label {
  font-size: 10px;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 48px;
  padding-top: 2px;
}
.build-value {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Items row with chips */
.build-items {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.item-chip {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  background: rgba(79,195,247,0.1);
  border: 1px solid rgba(79,195,247,0.15);
  color: var(--accent-blue);
  white-space: nowrap;
}
.build-set.alt-build .item-chip {
  background: rgba(255,215,0,0.08);
  border-color: rgba(255,215,0,0.12);
  color: var(--accent-gold);
}

/* Rune chips */
.build-runes {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}
.rune-chip {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  white-space: nowrap;
}
.rune-name {
  font-size: 9px;
  color: var(--text-muted);
  margin-left: 48px;
  margin-top: 1px;
}

/* Summoner spell badge */
.summoner-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(171,71,188,0.15);
  border: 1px solid rgba(171,71,188,0.2);
  color: var(--accent-purple);
}
.build-set.alt-build .summoner-badge {
  background: rgba(255,215,0,0.1);
  border-color: rgba(255,215,0,0.15);
  color: var(--accent-gold);
}

.build-desc {
  font-size: 10px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
  padding-left: 48px;
}

/* Responsive */
@media (max-width: 720px) {
  .builds-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════
   阵容协同 · 克制关系 (新增)
   ═══════════════════════════════════════════════ */

/* ── Section Wrapper ── */
.synergy-section {
  margin-top: 14px;
}

/* ── Header Row ── */
.synergy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.synergy-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-gold);
}
.synergy-header .top-combo {
  font-size: 11px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

/* ── Score Bar ── */
.synergy-score-bar {
  position: relative;
  height: 28px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.synergy-score-bar .bar-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  border-radius: 14px;
  transition: width 0.6s ease;
  z-index: 1;
}
.synergy-score-bar .bar-fill.red {
  background: linear-gradient(90deg, #c62828, #ef5350);
}
.synergy-score-bar .bar-fill.yellow {
  background: linear-gradient(90deg, #ef6c00, #ffa726);
}
.synergy-score-bar .bar-fill.green {
  background: linear-gradient(90deg, #43a047, #66bb6a);
}
.synergy-score-bar .bar-label {
  position: relative;
  z-index: 2;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ── Synergy Grid ── */
.synergy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

/* ── Synergy Card ── */
.synergy-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #12121f 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 14px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.synergy-card:hover {
  border-color: rgba(79,195,247,0.25);
  box-shadow: 0 2px 14px rgba(79,195,247,0.06);
}

/* Card header row */
.synergy-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

/* Combo name */
.synergy-card .combo-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Type badge */
.synergy-card .combo-type {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
/* Type badge colors */
.synergy-card .combo-type.type-combo {
  background: rgba(79,195,247,0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(79,195,247,0.2);
}
.synergy-card .combo-type.type-buff {
  background: rgba(102,187,106,0.15);
  color: var(--accent-green);
  border: 1px solid rgba(102,187,106,0.2);
}
.synergy-card .combo-type.type-protect {
  background: rgba(255,215,0,0.12);
  color: var(--accent-gold);
  border: 1px solid rgba(255,215,0,0.18);
}
.synergy-card .combo-type.type-control {
  background: rgba(171,71,188,0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(171,71,188,0.2);
}

/* Score badge */
.synergy-card .combo-score {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  border: 1px solid rgba(255,255,255,0.08);
}
.synergy-card .combo-score.high {
  background: rgba(102,187,106,0.18);
  color: var(--accent-green);
  border-color: rgba(102,187,106,0.25);
}
.synergy-card .combo-score.mid {
  background: rgba(255,167,38,0.15);
  color: #ffa726;
  border-color: rgba(255,167,38,0.2);
}
.synergy-card .combo-score.low {
  background: rgba(239,83,80,0.12);
  color: var(--accent-red);
  border-color: rgba(239,83,80,0.18);
}

/* Heroes in combo */
.synergy-card .combo-heroes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.synergy-card .combo-heroes .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
  padding: 1px 6px;
  border-radius: 4px;
}
.synergy-card .combo-heroes .hero-tag.blue {
  color: var(--accent-blue);
  background: rgba(79,195,247,0.1);
}
.synergy-card .combo-heroes .hero-tag.red {
  color: var(--accent-red);
  background: rgba(239,83,80,0.08);
}

/* Description */
.synergy-card .combo-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 2px;
}

/* ── Subsection Header ── */
.synergy-subsection {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 0 6px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 10px;
  color: var(--text-primary);
}
.synergy-subsection.threat {
  color: var(--accent-red);
  border-bottom-color: rgba(239,83,80,0.2);
}
.synergy-subsection.warning {
  color: var(--accent-gold);
  border-bottom-color: rgba(255,215,0,0.2);
}

/* ── Threat Card ── */
.threat-card {
  background: rgba(239,83,80,0.04);
  border: 1px solid rgba(239,83,80,0.12);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: all 0.15s;
}
.threat-card:hover {
  background: rgba(239,83,80,0.07);
  border-color: rgba(239,83,80,0.2);
}
.threat-card .threat-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  border: 1.5px solid rgba(239,83,80,0.25);
}
.threat-card .threat-info {
  flex: 1;
  min-width: 0;
}
.threat-card .threat-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-red);
}
.threat-card .threat-reason {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.4;
}
.threat-card .threat-severity {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  align-self: center;
}
.threat-card .threat-severity.high {
  background: rgba(239,83,80,0.15);
  color: #ef5350;
  border: 1px solid rgba(239,83,80,0.2);
}
.threat-card .threat-severity.mid {
  background: rgba(255,167,38,0.12);
  color: #ffa726;
  border: 1px solid rgba(255,167,38,0.18);
}

/* ── Counter Warning ── */
.counter-warning {
  background: rgba(255,215,0,0.06);
  border: 1px solid rgba(255,215,0,0.15);
  border-left: 4px solid var(--accent-gold);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.counter-warning .warn-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}
.counter-warning .warn-text {
  flex: 1;
  min-width: 0;
}
.counter-warning .warn-text .warn-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
}
.counter-warning .warn-text .warn-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.5;
}

/* Responsive synergy */
@media (max-width: 720px) {
  .synergy-grid {
    grid-template-columns: 1fr;
  }
  .synergy-card .card-header {
    flex-wrap: wrap;
  }
}