/* ============================================================
   Quick Entry — append to bottom of styles.css
   ============================================================ */

/* ---- Progress bar ---- */
.qe-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.qe-progress-bar {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.qe-progress-fill {
  height: 100%;
  background: var(--accent-light);
  border-radius: 99px;
  transition: width 0.3s ease;
}
.qe-progress-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ---- Player card ---- */
.qe-player-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.qe-player-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.qe-player-name {
  font-size: 18px;
  font-weight: 600;
}

/* ---- Questions ---- */
.qe-question {
  margin-bottom: 18px;
}
.qe-q-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ---- Stars ---- */
.qe-stars {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.qe-star {
  background: none;
  border: none;
  font-size: 32px;
  color: var(--border);
  padding: 4px;
  line-height: 1;
  transition: color 0.1s, transform 0.1s;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.qe-star.active { color: var(--warn); }
.qe-star:active { transform: scale(1.2); }
.qe-star-hint {
  font-size: 12px;
  color: var(--text-muted);
  min-height: 16px;
  margin-top: 2px;
}

/* ---- Pill buttons ---- */
.qe-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.qe-pill {
  flex: 1;
  min-width: 80px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  min-height: 44px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.qe-pill:hover { border-color: var(--accent); color: var(--text); }
.qe-pill.active {
  border-color: var(--accent-light);
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent-light);
  font-weight: 600;
}

/* ---- Quick stats row ---- */
.qe-stats-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
@media (max-width: 400px) {
  .qe-stats-row { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Note textarea ---- */
.qe-note {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  padding: 10px 12px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}
.qe-note:focus { outline: none; border-color: var(--accent-light); }

/* ---- Insight panel ---- */
.qe-insight {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.qe-insight-icon { font-size: 20px; flex-shrink: 0; }
#qe-insight-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

/* ---- Nav row ---- */
.qe-nav-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.qe-nav-row .btn-outline,
.qe-nav-row .btn-primary {
  flex: 1;
}

/* ---- Summary page ---- */
.qe-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--border);
}
.qe-summary-row:last-child { border-bottom: none; }
.qe-summary-player {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.qe-summary-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.qe-summary-stars {
  font-size: 12px;
  color: var(--warn);
  letter-spacing: 1px;
}
.qe-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}
.qe-badge.good   { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.qe-badge.warn   { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.qe-badge.poor   { background: color-mix(in srgb, var(--poor) 15%, transparent); color: var(--poor); }
.qe-badge.muted  { background: var(--surface); color: var(--text-muted); }

.qe-team-insights { border-left: 3px solid var(--accent-light); }
.qe-team-insight-row {
  font-size: 14px;
  line-height: 1.6;
  padding: 4px 0;
  color: var(--text);
}
.qe-team-insight-row + .qe-team-insight-row {
  border-top: 0.5px solid var(--border);
}