/* ═══════════════════════════════════════
   MUTATIONS PAGE — mutations.css
   ═══════════════════════════════════════ */

.mut-hero {
  background: linear-gradient(135deg, #0d0d1f 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
}
.mut-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.6rem; }
.accent { color: var(--accent); }
.mut-hero-sub { color: var(--text-muted); max-width: 600px; font-size: 1.05rem; margin-bottom: 1.2rem; }
.mut-top-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.top-chip {
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid;
}
.top-s { background: #1a0033; border-color: #cc00ff; color: #cc00ff; }
.top-a { background: #001a33; border-color: #00aaff; color: #00aaff; }
.top-b { background: #0d1a00; border-color: #88cc00; color: #88cc00; }

/* ── Formula ── */
.mut-formula-section { margin: 2rem auto; max-width: 820px; }
.formula-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid #cc00ff;
  border-radius: 10px;
  padding: 1.5rem;
}
.formula-card h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.formula-display {
  font-family: 'Courier New', monospace;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  background: var(--bg);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  color: var(--text);
  overflow-x: auto;
  white-space: nowrap;
}
.f-variant { color: #f0c060; font-weight: 700; }
.f-env { color: #60c0f0; font-weight: 700; }
.formula-legend { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.fl-item { font-size: 0.88rem; color: var(--text-muted); padding-left: 0.5rem; border-left: 2px solid var(--border); }
.formula-example {
  background: var(--bg-alt);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.formula-example .accent { font-size: 1.05rem; }

/* ── Controls ── */
.mut-controls { margin-bottom: 1rem; }
.mut-search-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; margin-bottom: 0.6rem; }
.search-wrap { position: relative; flex: 1; min-width: 180px; }
.search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); font-size: 0.9rem; pointer-events: none; }
.search-wrap input {
  width: 100%;
  padding: 0.65rem 0.75rem 0.65rem 2.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
}
.search-wrap input:focus { border-color: var(--accent); }
.mut-search-row select {
  padding: 0.62rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
  outline: none;
}
.mut-search-row select:focus { border-color: var(--accent); }
.mut-result-count { font-size: 0.85rem; color: var(--text-muted); }
.mut-result-count span { font-weight: 700; color: var(--accent); }

/* ── Table ── */
.mut-table-wrap { overflow-x: auto; margin-bottom: 2rem; }
.mut-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.9rem;
}
.mut-table thead th {
  background: var(--bg-alt);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.mut-table tbody tr { border-bottom: 1px solid var(--border); }
.mut-table tbody tr:last-child { border-bottom: none; }
.mut-table tbody tr:hover { background: var(--bg-alt); }
.mut-table td { padding: 0.65rem 1rem; vertical-align: middle; }
.col-mult { font-weight: 700; }
.mult-num { color: var(--accent); font-size: 1rem; font-weight: 800; }
.mut-note { font-size: 0.82rem; color: var(--text-muted); max-width: 280px; }
@media (max-width: 640px) { .col-note { display: none; } }

/* Tier badges */
.tier-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tier-s { background: #2a0044; color: #cc00ff; border: 1px solid #cc00ff; }
.tier-a { background: #002244; color: #00aaff; border: 1px solid #00aaff; }
.tier-b { background: #1a2a00; color: #88cc00; border: 1px solid #88cc00; }
.tier-c { background: #2a2a00; color: #cccc00; border: 1px solid #cccc00; }
.tier-v { background: #2a1a00; color: #f0c060; border: 1px solid #f0c060; }

/* ── Combos ── */
.mut-combos { margin-bottom: 3rem; }
.mut-combos h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.section-sub { color: var(--text-muted); margin-bottom: 1.2rem; font-size: 0.95rem; }
.combos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.combo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  border-top: 3px solid;
}
.combo-s { border-top-color: #cc00ff; }
.combo-a { border-top-color: #00aaff; }
.combo-b { border-top-color: #88cc00; }
.combo-rank { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.combo-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.3rem; }
.combo-mults { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.combo-result { font-size: 0.95rem; margin-bottom: 0.5rem; }
.combo-result strong { color: var(--accent); }
.combo-note { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* ── Guide ── */
.mut-guide { max-width: 780px; margin-bottom: 3rem; }
.mut-guide h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.mut-guide h3 { font-size: 1.1rem; margin: 1.6rem 0 0.5rem; }
.mut-guide p { color: var(--text-muted); line-height: 1.7; margin-bottom: 0.7rem; }

.faq-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 0.6rem; overflow: hidden; }
.faq-item summary { padding: 0.85rem 1rem; cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "›"; font-size: 1.2rem; transform: rotate(90deg); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(270deg); }
.faq-item p { padding: 0 1rem 0.85rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; margin: 0; }

/* ── Shared ── */
.btn { display: inline-block; padding: 0.65rem 1.4rem; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 0.95rem; transition: opacity 0.15s; }
.btn-accent { background: var(--accent); color: #000; }
.btn-accent:hover { opacity: 0.85; }
.no-results { text-align: center; padding: 2rem; color: var(--text-muted); }
