@import url("/data/shared/focus-dashboard.css");

.hero.skill-hero {
  margin-bottom: 1.5rem;
}

.hero.skill-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.5rem;
}

.hero.skill-hero p {
  color: var(--muted);
  max-width: 52rem;
}

.hud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

.hud-card {
  background: linear-gradient(145deg, rgba(26, 35, 50, 0.95), rgba(15, 20, 25, 0.85));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hud-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.65;
}

.hud-card strong {
  display: block;
  font-size: 1.65rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.hud-card span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.skill-tree-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.15rem;
}

.tier {
  background: linear-gradient(160deg, rgba(26, 35, 50, 0.92), rgba(15, 20, 25, 0.78));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}

.tier-index {
  color: var(--accent-2);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.tier h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.tier-subtitle {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.86rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.node {
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 0.9rem 0.95rem;
  margin-top: 0.7rem;
  background: rgba(0, 0, 0, 0.22);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.node:hover {
  transform: translateY(-1px);
}

.node.unlocked {
  border-color: rgba(61, 214, 140, 0.5);
  box-shadow: inset 0 0 0 1px rgba(61, 214, 140, 0.08);
}

.node.advanced {
  border-color: rgba(91, 141, 239, 0.55);
  box-shadow: inset 0 0 0 1px rgba(91, 141, 239, 0.1);
}

.node.building {
  border-color: rgba(155, 109, 255, 0.45);
}

.node.locked {
  opacity: 0.6;
}

.node .state {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.09em;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  margin-bottom: 0.5rem;
}

.node.unlocked .state {
  color: var(--ok);
  background: rgba(61, 214, 140, 0.12);
}

.node.advanced .state {
  color: var(--accent);
  background: rgba(91, 141, 239, 0.12);
}

.node.building .state {
  color: var(--accent-2);
  background: rgba(155, 109, 255, 0.12);
}

.node h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.node p {
  margin: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pill {
  font-size: 0.72rem;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  color: var(--text);
}

.proof-note {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--muted);
  word-break: break-word;
}

.panel-note {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-state {
  color: var(--muted);
  font-style: italic;
}
