/* ─────────────────────────────────────────────────────────────
   Hello Radio — form controls
   Ported from Edward's design-token-system.html (demo-* components),
   colorized to the Meta Ad Library palette via tokens.css.
   One job: inputs, selects, buttons — here and on future pages.
   Loads after components.css; overrides the toolbar controls.
   ───────────────────────────────────────────────────────────── */

/* ── Primitives (token-sheet structure, Meta colors) ── */
.input, .select, .textarea {
  width: 100%; font-family: var(--font-body); font-size: var(--text-sm);
  padding: 0.55rem 0.75rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring-soft);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2365676b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center;
  padding-right: 2rem; cursor: pointer;
}
.label {
  display: block; font-size: var(--text-sm); font-weight: 500;
  color: var(--text); margin-bottom: 0.35rem; letter-spacing: 0.01em;
}
.field { margin-bottom: 1rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500;
  padding: 0.55rem 1.1rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: all var(--dur-fast); white-space: nowrap; outline: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--prim-white); border-color: var(--accent); }
.btn-primary:hover { opacity: 0.88; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--control-bg); border-color: var(--text-tertiary); }
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover { background: var(--control-bg); color: var(--text); }

/* ── Toolbar pills on the token-sheet structure ── */
.pill {
  background: var(--surface);
  border: 1px solid var(--border-strong);
}
.pill:hover { background: var(--control-bg); border-color: var(--text-tertiary); }
