/*
 * Button system + link/badge helpers. Every variant references tokens from
 * theme.css, so light/dark is automatic. Focus uses box-shadow (not outline)
 * so the ring follows the button's rounded corners.
 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.6875rem 1.125rem;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  outline: none;
  transition: background 0.12s ease, transform 0.04s ease, box-shadow 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Primary — deepened coral fill keeps white label text AA-legible */
.btn--primary {
  background: var(--color-primary-strong);
  color: var(--color-on-primary);
}
.btn--primary:hover { background: var(--color-primary-strong-hover); }
.btn--primary:active { background: var(--color-primary-strong-active); }
.btn--primary:focus-visible { box-shadow: 0 0 0 3px var(--color-focus-ring); }

/* Accent — teal */
.btn--accent {
  background: var(--color-accent);
  color: var(--color-on-accent);
}
.btn--accent:hover { background: var(--color-accent-hover); }
.btn--accent:active { background: var(--color-accent-active); }
.btn--accent:focus-visible { box-shadow: 0 0 0 3px var(--color-accent-focus-ring); }

/* Secondary — ghost / outline */
.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn--secondary:hover { background: var(--color-secondary-hover); }
.btn--secondary:active { background: var(--color-secondary-active); }
.btn--secondary:focus-visible { box-shadow: 0 0 0 3px var(--color-focus-ring); }

/* Teal text link */
.link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link:hover { color: var(--color-accent-hover); }
.link:focus-visible {
  outline: none;
  border-radius: 3px;
  box-shadow: 0 0 0 3px var(--color-accent-focus-ring);
}

/* Highlight badge. Base look is the subtle teal (also the `.badge--accent`
 * default); the semantic modifiers below are solid colored pills. */
.badge {
  display: inline-block;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

/* Solid semantic badges — white label on the semantic fill. */
.badge--success { background: var(--color-success); color: #fff; }
.badge--warning { background: var(--color-warning); color: #fff; }
.badge--danger  { background: var(--color-danger);  color: #fff; }
.badge--info    { background: var(--color-info);    color: #fff; }
