/* LABEL: PILOT-READY
 * css/first-run-guide.css
 *
 * Real Helper Pillar 2 (2026-06-12) — styles for the role-aware
 * first-run welcome card (#firstRunGuideCard, rendered above the
 * builder's empty state by js/builder/first-run-guide.js) and the
 * role-aware suggestion chips inside the empty state
 * (#emptyStateRoleChips, container shipped by empty-state-template.js).
 *
 * Accessibility: every interactive target is ≥44px tall; visible
 * focus rings; respects prefers-reduced-motion for the highlight
 * pulse used by "Use on a phone" / "Start from a template".
 */

/* ── First-run card ─────────────────────────────────────────────── */
.first-run-card {
  position: relative;
  max-width: 720px;
  margin: 1.25rem auto 0;
  padding: 1.1rem 3rem 1.2rem 1.3rem; /* right pad clears the ✕ */
  background: linear-gradient(135deg, #ffffff 0%, #f6f7ff 100%);
  border: 1px solid #dfe3f2;
  border-radius: 16px;
  box-shadow: 0 3px 12px rgba(60, 72, 160, 0.10);
  text-align: left;
}

.first-run-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1f2544;
  margin: 0 0 0.3rem;
}

.first-run-blurb {
  font-size: 0.9rem;
  color: #4a5174;
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

/* 2026-06-13 (Luke): "Describe a board" input ABOVE the action row. */
.first-run-buildrow {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.7rem;
}
.first-run-buildinput {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1px solid #d4d8e8;
  border-radius: 10px;
  font-size: 0.92rem;
  color: #1a1a22;
  background: #fff;
  outline: none;
}
.first-run-buildinput:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.first-run-buildgo {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #fff; border: none; border-radius: 10px;
  font-weight: 700; font-size: 0.92rem; cursor: pointer; white-space: nowrap;
}
.first-run-buildgo:hover { filter: brightness(1.06); }

/* 2026-06-13 (Luke): all three start buttons in ONE row. */
.first-run-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
}

.first-run-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.3);
}
.first-run-btn:hover { filter: brightness(1.06); }
.first-run-btn:focus-visible {
  outline: 3px solid #312e81;
  outline-offset: 2px;
}

/* Dismiss ✕ — 44px hit target even though the glyph is small. */
.first-run-dismiss {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 44px;
  min-height: 44px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #6b7180;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.first-run-dismiss:hover { background: #eef0fa; color: #1f2544; }
.first-run-dismiss:focus-visible {
  outline: 3px solid #312e81;
  outline-offset: 2px;
}

/* ── Empty-state suggestion chips ───────────────────────────────── */
.first-run-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.first-run-chips:empty { display: none; }

.first-run-or {
  font-size: 0.78rem;
  font-weight: 700;
  color: #8a90a6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.first-run-chip {
  min-height: 44px;
  padding: 0.5rem 1rem;
  background: var(--surface,#fff);
  border: 1.5px solid #d3d7e4;
  border-radius: 999px;
  color: #3a4163;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
.first-run-chip:hover { border-color: #6366f1; color: #312e81; background: #f6f7ff; }
.first-run-chip:focus-visible {
  outline: 3px solid #312e81;
  outline-offset: 2px;
}

/* ── Target highlight pulse (Use on a phone / templates) ────────── */
.first-run-highlight {
  animation: firstRunPulse 0.8s ease-in-out 3;
  border-radius: 10px;
}
@keyframes firstRunPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .first-run-highlight { animation: none; outline: 3px solid #6366f1; }
}

/* Narrow screens — stack the card actions full-width for fat-finger
   friendliness. */
@media (max-width: 540px) {
  .first-run-card { margin: 0.9rem 0.6rem 0; }
  .first-run-actions { flex-direction: column; }
  .first-run-btn { width: 100%; white-space: normal; }
}
