/* TinkySpeak Kiosk — Privacy & Idle UI
 * ─────────────────────────────────────────────────────────────────────────
 * Styles for:
 *   • Idle-timeout "Still there?" modal (kiosk-idle.js)
 *   • Inline digit warning under #textInput (kiosk-privacy.js)
 *
 * Kept out of kiosk.css on purpose — that file is already over our monolith
 * threshold (>1.5K lines). New UI gets its own stylesheet.
 * ───────────────────────────────────────────────────────────────────────── */

/* ═══ Idle Modal ═══ */
.idle-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(17, 24, 39, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-family: var(--f-sans, system-ui, sans-serif);
}
.idle-modal.visible {
  display: flex;
  animation: idleFadeIn 160ms ease-out;
}
@keyframes idleFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.idle-modal-box {
  background: #ffffff;
  color: #111827;
  border-radius: 20px;
  padding: 2rem 1.75rem 1.5rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
  text-align: center;
  animation: idleSlideUp 220ms cubic-bezier(.2,.8,.2,1);
}
@keyframes idleSlideUp {
  from { transform: translateY(14px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0)     scale(1);    opacity: 1; }
}

.idle-modal-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.idle-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
  color: #111827;
}

.idle-modal-body {
  font-size: 1rem;
  line-height: 1.45;
  margin: 0 0 1.5rem;
  color: #374151;
}
.idle-modal-body #idleCountdown {
  font-weight: 800;
  color: var(--header-color, #2E5090);
}

.idle-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.idle-modal-btn {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease;
  min-height: 48px; /* WCAG touch-target */
}
.idle-modal-btn:active { transform: scale(0.97); }

.idle-modal-btn-primary {
  background: var(--header-color, #2E5090);
  color: #ffffff;
}
.idle-modal-btn-primary:hover { filter: brightness(1.08); }

.idle-modal-btn-secondary {
  background: #f3f4f6;
  color: #374151;
}
.idle-modal-btn-secondary:hover { background: #e5e7eb; }

/* Dark mode — flip the surface */
body.dark-mode .idle-modal-box {
  background: #1c1a22;
  color: #f3f4f6;
}
body.dark-mode .idle-modal-title { color: #f9fafb; }
body.dark-mode .idle-modal-body  { color: #d1d5db; }
body.dark-mode .idle-modal-btn-secondary {
  background: #2a2833;
  color: #e5e7eb;
}
body.dark-mode .idle-modal-btn-secondary:hover { background: #34313e; }

/* ═══ Digit Warning Banner ═══ */
.digit-warning {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0.25rem 0;
  padding: 0.55rem 0.75rem;
  background: #fef3c7;           /* amber-100 */
  border: 1px solid #fcd34d;      /* amber-300 */
  color: #78350f;                 /* amber-900 */
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  animation: digitWarnFade 160ms ease-out;
}
.digit-warning.visible { display: flex; }
@keyframes digitWarnFade {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: translateY(0); }
}
.digit-warning-icon {
  font-size: 1rem;
  flex-shrink: 0;
}
.digit-warning-text {
  flex: 1;
}
.digit-warning strong {
  color: #451a03;
  font-weight: 700;
}

body.dark-mode .digit-warning {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fde68a;
}
body.dark-mode .digit-warning strong { color: #fef3c7; }
