/* Marty — Goals page styles (F4). Uses core tokens from app.css. */

.goal-card {
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.goal-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.goal-ico {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: var(--green-softer);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.goal-info { flex: 1; min-width: 0; }
.goal-name {
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.goal-tag {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.goal-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.goal-line strong { color: var(--ink); }
.goal-add-btn { flex-shrink: 0; }

/* Completed goal celebration */
.goal-done {
  background: linear-gradient(135deg, var(--green-softer), var(--card) 60%);
  box-shadow: var(--shadow), inset 0 0 0 1.5px var(--green-soft);
}
.goal-done .progress { background: var(--green-soft); }
.progress-bar.done {
  background: linear-gradient(90deg, var(--green), var(--green-dark));
}

/* Emoji suggestions in the goal modal */
.emoji-suggest {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.emoji-chip {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .06s ease, border-color .15s ease;
}
.emoji-chip:active { transform: scale(.92); }
.emoji-chip:hover { border-color: var(--green); }

/* Skeleton icon keeps the shimmer (goal-ico's bg would otherwise win the cascade) */
.goal-ico.skeleton {
  background: linear-gradient(90deg, #ECEFEB 25%, #F5F7F4 50%, #ECEFEB 75%);
  background-size: 200% 100%;
}
