/* ==========================================================================
   wheel.css — Decision Wheel specific styles.
   Shared wheel visuals (stage, pointer, spin, options editor, result dialog,
   confetti) live in ../../css/wheel-kit.css.
   ========================================================================== */

.wheel-layout {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

/* ---- Tabs ---------------------------------------------------------------- */
.tabs {
  display: flex;
  gap: var(--sp-1);
  padding: 4px;
  background: var(--surface-2);
  border-radius: var(--r-full);
}
.tabs button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--on-surface-muted);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  padding: var(--sp-2);
  min-height: 40px;
  border-radius: var(--r-full);
  cursor: pointer;
}
.tabs button.is-active { background: var(--brand); color: var(--on-brand); }
.tabs button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: view-in var(--dur-med) var(--ease-standard); }

/* ---- Modes --------------------------------------------------------------- */
.mode-grid { display: flex; flex-direction: column; gap: var(--sp-3); }

/* ---- History ------------------------------------------------------------- */
.history-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.history-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.history-item__badge {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  flex: 0 0 auto;
}
.history-item__label { font-weight: var(--fw-medium); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-item__time { font-size: var(--fs-xs); color: var(--on-surface-faint); }

/* ---- Saved wheels -------------------------------------------------------- */
.saved-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-2);
}
.saved-item__info { flex: 1; min-width: 0; cursor: pointer; }
.saved-item__name { font-weight: var(--fw-semibold); }
.saved-item__meta { font-size: var(--fs-xs); color: var(--on-surface-faint); }

/* ---- Fullscreen ---------------------------------------------------------- */
.wheel-layout:fullscreen,
.wheel-layout:-webkit-full-screen {
  background: var(--bg);
  padding: var(--sp-5);
  justify-content: center;
}
.wheel-layout:fullscreen .tabs,
.wheel-layout:fullscreen .wheel-tabs-content { display: none; }
