/* form.css — Inputs, sliders et contrôles de saisie */

/* ---------- INPUTS BLINDS / ANTE ---------- */
.blind-input, .ante-input {
  width: 44px; padding: 5px 3px; border-radius: 6px;
  border: 1px solid var(--b); background: var(--s2); color: var(--cream);
  text-align: center; font-size: 12px; font-weight: 600;
  transition: border-color 0.15s;
}
.blind-input:focus, .ante-input:focus { outline: none; border-color: var(--gold); }
.slash { color: var(--gold); font-weight: 700; font-size: 12px; }

/* Masquer les flèches spinner */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* ---------- INPUT STACK (modal joueur) ---------- */
.stack-input-wrap { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; }
.stack-input {
  flex: 1; min-width: 0; padding: 14px; border-radius: 8px;
  border: 1px solid var(--b); background: var(--s1); color: var(--cream);
  font-size: 18px; font-weight: 700; text-align: center;
  transition: border-color 0.15s;
}
.stack-input:focus { outline: none; border-color: var(--gold); }
.stack-input-wrap .unit-toggle-mini { align-self: stretch; }
.stack-input-wrap .unit-toggle-mini button { flex: 1; height: 100%; }

@media (max-width: 430px) {
  .stack-input { padding: 10px; font-size: 16px; }
}

/* ---------- RAISE INLINE ---------- */
.raise-inline-row {
  display: flex; gap: 4px; align-items: center;
  background: rgba(230,81,0,0.1); border: 1px solid rgba(230,81,0,0.35);
  border-radius: 6px; padding: 5px;
}
.raise-input-inline {
  flex: 1; min-width: 0; padding: 7px 5px;
  border-radius: 4px; border: 1px solid var(--b);
  background: var(--s1); color: var(--cream);
  font-size: 13px; font-weight: 700; text-align: center;
  transition: border-color 0.15s;
}
.raise-input-inline:focus { outline: none; border-color: var(--gold); }

/* ---------- TOGGLE UNITÉ (J / BB) ---------- */
.unit-toggle-mini {
  display: flex; border: 1px solid var(--b); border-radius: 4px;
  overflow: hidden; flex-shrink: 0;
}
.unit-toggle-mini button {
  background: var(--s1); color: var(--cream); border: none;
  padding: 7px 8px; font-weight: 700; cursor: pointer; font-size: 10px;
  transition: background 0.15s, color 0.15s;
}
.unit-toggle-mini button.active { background: var(--gold); color: var(--ink); }

/* ---------- MESSAGE D'ERREUR RAISE ---------- */
.raise-error {
  background: rgba(183,28,28,0.2); border: 1px solid rgba(183,28,28,0.5);
  color: #ffcdd2; border-radius: 6px; padding: 5px 8px;
  font-size: 11px; font-weight: 600; text-align: center; line-height: 1.3;
}
.raise-error strong { color: #fff; }

/* ---------- SLIDER % POT ---------- */
.pot-slider-wrap {
  display: flex; flex-direction: column; gap: 3px;
  background: rgba(230,81,0,0.08); border: 1px solid rgba(230,81,0,0.3);
  border-radius: 6px; padding: 6px 8px; margin-top: -2px;
}
.pot-slider-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 9px; font-weight: 700; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.pot-slider-value { color: var(--cream); font-size: 10px; }
.pot-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 18px; background: transparent;
  cursor: pointer; outline: none;
}
.pot-slider::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--s3) 0%, var(--gold) 50%, var(--fold) 100%);
}
.pot-slider::-moz-range-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--s3) 0%, var(--gold) 50%, var(--fold) 100%);
}
.pot-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--ink);
  margin-top: -6px; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.pot-slider::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--ink); cursor: pointer;
}
.pot-slider-presets {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px;
}

/* ---------- ALL-IN INLINE ---------- */
.allin-inline-row {
  display: flex; gap: 4px; align-items: center;
  background: rgba(183,28,28,0.15); border: 1px solid rgba(183,28,28,0.45);
  border-radius: 6px; padding: 5px;
}
