/* styles/base/buttons.css — buttons, interactive UI states, and tooltip utilities */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--phosphor);
  color: #0b0d0e;
  border: 1px solid var(--phosphor);
}
.btn-primary:hover {
  background: var(--hot);
  border-color: var(--hot);
  box-shadow: 0 0 20px rgba(var(--accent-rgb, 255, 176, 0), 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border-focus);
  color: var(--text-primary);
}
.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--phosphor);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.btn-ghost:hover {
  border-color: var(--border-focus);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

/* Tooltip Tokens */
.t {
  color: var(--hot);
  border-bottom: 1px dotted var(--hot);
  cursor: help;
  position: relative;
  outline-offset: 2px;
}
.t::after {
  content: "> " attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 50;
  width: max-content;
  max-width: min(320px, 80vw);
  padding: 10px 14px;
  background: #161a1d;
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: normal;
  line-height: 1.5;
  white-space: normal;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.t::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 12px;
  z-index: 51;
  border: 4px solid transparent;
  border-top-color: var(--border-focus);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.t:hover::after,
.t:focus::after {
  opacity: 1;
  transform: translateY(0);
}
.t:hover::before,
.t:focus::before {
  opacity: 1;
}
