/* =========================
   Base UI (style.css)
   Purpose: generic/layout styles shared across the app.
   Wheel- or modal-specific rules live in wheel.cleaned.css
   ========================= */

/* ---- Card shell ---- */
.wf-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 24px;
  width: 100%;
  min-height: 420px;
}

.wf-card-wrap { padding: 20px; }

/* ---- App grid (left = wheel area, right = inputs) ---- */
.wf-layout {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
}

/* Left column: keep it minimal so wheel.css can own the specifics */
.wf-left {
  min-width: 0;
  padding: 24px;
}

/* Right column shell */
.wf-right {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-self: start;
  align-self: stretch;
  height: auto;
  width: 420px;
  padding: 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.wf-right::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 0;
  width: 1px;
  background: rgba(15, 23, 42, 0.06);
}

/* ---- Right column header + actions ---- */
.wf-right-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wf-right-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
}

.wf-count-badge { font-weight: 600; }

.wf-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Generic circular and chip buttons ---- */
.wf-circlebtn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.wf-circlebtn:hover { background: #f8fafc; border-color: rgba(15, 23, 42, 0.14); }
.wf-circlebtn:active { background: #eef2f7; }
.wf-circlebtn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18); }

.wf-chipbtn,
.wf-iconbtn {
  height: 40px;
  min-width: 40px;
  padding: 0 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f4c152;
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.wf-chipbtn:hover, .wf-iconbtn:hover { filter: brightness(0.97); }
.wf-chipbtn:active, .wf-iconbtn:active { filter: brightness(0.94); }

.wf-icon { width: 18px; height: 18px; display: block; pointer-events: none; }

/* ---- Add row / input group ---- */
.wf-inputrow {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.wf-inputgroup {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  height: 40px;
  background: #fbf9f5;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
}
.wf-inputgroup input {
  border: 0;
  outline: none;
  background: transparent;
  padding: 0 12px;
  font: inherit;
  min-width: 0;
}
.wf-inputgroup:focus-within {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.wf-btn-plus {
  display: grid;
  place-items: center;
  width: 44px;
  height: 100%;
  border: 0;
  background: #f4c152;
  cursor: pointer;
  box-shadow: inset 1px 0 0 rgba(15, 23, 42, 0.08);
  transition: filter 0.15s ease;
}
.wf-btn-plus:hover { filter: brightness(0.97); }
.wf-btn-plus:active { filter: brightness(0.94); }

/* ---- List ---- */
.wf-list { display: grid; gap: 8px; }
.wf-list.is-hidden { display: none; }

.wf-list-item {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 6px 8px;
}

.wf-drag {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  cursor: grab;
}

.wf-list-input {
  width: 100%;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 0 10px;
  background: #fbf9f5;
}
.wf-list-input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

/* ---- Misc ---- */
.wf-chip { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgba(15, 23, 42, 0.08); background: #fff; cursor: pointer; }
.wf-chip.active { background: #e2e8f0; }

.wf-inputgroup input::placeholder { color: rgba(0, 0, 0, 0.55) !important; }
.wf-btn-plus, .wf-chipbtn, .wf-circlebtn { color: #000 !important; }

.wf-section-divider { height: 1px; background: rgba(15, 23, 42, 0.1); margin: 12px 0; }

/* Heading tiles demo */
.heading-with-tiles { font-size: 2em; text-align: left; display: flex; flex-wrap: wrap; justify-content: left; align-items: center; }
.scrabble-title { display: inline-flex; gap: 5px; margin: 0 10px 0 0; }
.scrabble-title .tile {
  background: #f4b860; color: #000; font-family: "Space Grotesk", sans-serif !important;
  font-size: 0.7em; font-weight: bold; width: 40px; height: 40px; border-radius: 6px;
  box-shadow: 0 2px 2px rgba(0,0,0,0.2); display: flex; align-items: center; justify-content: center; position: relative;
}
.scrabble-title .score { font-size: 0.6em; position: absolute; bottom: 4px; right: 6px; font-weight: normal; }

/* ---- Responsive base ---- */
@media (max-width: 900px) {
  .wf-layout {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 16px;
  }
  .wf-right {
    width: 100%;
    padding: 16px;
  }
  .wf-right::before { content: none; }
}