/* ─────────────────────────────────────────────
   Convert Buttons — extracted from index.html
   Use with tokens.css. Three variants: primary, secondary, ghost+outline (navbar).
   ───────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(180deg, #2B84FF 0%, var(--color-blue-600) 58%, #005FEB 100%);
  color: #fff;
  border: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 0 0 1px rgba(0,82,204,0.45);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font: 500 var(--text-ui)/1 var(--font-family);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), transform var(--duration-press) var(--ease-out);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #0F72FF 0%, var(--color-blue-700) 100%);
  box-shadow: var(--shadow-btn-primary), inset 0 1px 0 rgba(255,255,255,0.16), inset 0 0 0 1px rgba(0,72,180,0.55);
  opacity: 1;
}

.btn-primary--lg {
  padding: 16px 32px;
  font-size: var(--text-ui);
  border-radius: var(--radius-lg);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #1a1a2e;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font: 500 var(--text-ui)/1 var(--font-family);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: border-color var(--duration-fast) var(--ease-out), transform var(--duration-press) var(--ease-out);
}
.btn-secondary:hover {
  border-color: rgba(0,0,0,0.25);
  opacity: 1;
}

/* Navbar variants (smaller, used in nav actions) */
.btn-ghost {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--text-ui);
  font-weight: 500;
  color: var(--color-ink-800);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s var(--ease-out), transform var(--duration-press) var(--ease-out);
}
.btn-ghost:hover { background: rgba(0,0,0,0.04); }

.btn-outline {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--text-ui);
  font-weight: 500;
  color: #0a0a0a;
  background: rgba(255,255,255,0.1);
  border: 1px solid #d4d4d4;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s var(--ease-out), border-color 0.15s var(--ease-out), transform var(--duration-press) var(--ease-out);
}
.btn-outline:hover { background: rgba(0,0,0,0.03); border-color: #bbb; }

/* ── Press feedback ──
   Every button confirms it was heard. 0.97 is deliberately subtle — these are
   hit constantly, and anything deeper reads as a toy. Reduced-motion keeps the
   feedback (it aids comprehension) and only drops the movement. */
.btn-primary:active,
.btn-secondary:active,
.btn-ghost:active,
.btn-outline:active { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  .btn-primary:active,
  .btn-secondary:active,
  .btn-ghost:active,
  .btn-outline:active { transform: none; opacity: 0.85; }
}
