/* =========================================================
   Random Name Picker — tool-specific styles.
   Layered on /tools/_shared/tool.css.
   ========================================================= */

/* ---------- Picker display (the BIG centered name) ---------- */
.picker-display {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  margin-bottom: var(--space-4);
  padding: var(--space-6);
  background: var(--surface-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition-colors), transform 0.15s ease;
}
.picker-display.is-spinning {
  border-color: var(--accent);
  background: var(--accent-soft-bg);
}
.picker-display.is-final {
  border-color: var(--accent);
  background: var(--accent-soft-bg);
  transform: scale(1.01);
}

.picker-name {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--text);
  text-align: center;
  word-break: break-word;
  margin: 0;
  transition: color 0.18s ease, transform 0.18s ease;
}
.picker-name.is-empty {
  color: var(--text-subtle);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0;
}
.picker-name.is-final {
  color: var(--accent);
  font-size: 36px;
}
@media (min-width: 640px) {
  .picker-name { font-size: 32px; }
  .picker-name.is-final { font-size: 44px; }
}

/* ---------- Pick action ---------- */
.picker-actions {
  margin-bottom: var(--space-6);
}
.btn-pick {
  font-size: 16px;
  min-height: 52px;
  letter-spacing: -0.005em;
}

/* ---------- Input ---------- */
.picker-input {
  margin-bottom: var(--space-6);
}
.picker-input-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}
.picker-input-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}
.picker-status {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.picker-status strong {
  font-weight: 700;
  color: var(--text);
}

.picker-input textarea {
  width: 100%;
  resize: vertical;
  min-height: 140px;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-inset);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.55;
  transition: var(--transition-colors);
}
.picker-input textarea::placeholder { color: var(--text-subtle); }

.picker-sample-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.picker-sample-actions .btn {
  min-height: 36px;
  padding: var(--space-2) var(--space-3);
  font-size: 13px;
}
.picker-input textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.picker-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}
.picker-option {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.picker-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.picker-option-hint {
  color: var(--text-muted);
  font-size: 13px;
}

/* btn-link defined in shared layer would be cleaner, but the
   picker is the first tool to use a destructive text link — keep
   the styling local for now and promote to shared if a 2nd tool
   needs it. */
.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}
.btn-link:hover { color: var(--accent-hover); text-decoration: underline; }

/* ---------- History list ---------- */
.picker-history {
  margin-top: var(--space-2);
}
.picker-history .section-eyebrow {
  margin-bottom: var(--space-3);
}
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  min-height: 32px;
}
.history-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--text);
  transition: var(--transition-colors);
}
.history-list li::before {
  content: counter(history-counter) ".";
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  counter-increment: history-counter;
}
.history-list {
  counter-reset: history-counter;
}
.history-empty {
  background: transparent !important;
  border: none !important;
  color: var(--text-subtle) !important;
  padding: 0 !important;
  font-size: 14px;
}
.history-empty::before { content: '' !important; }
