/* WOO Design System — thành phần. FILE SINH TỰ ĐỘNG, KHÔNG SỬA TAY.
   Sửa trong components/<tên>/*.css rồi chạy: node scripts/build-components.mjs */

/* components/progress-card/progress-card.css */
/* Thẻ "Tiến bộ của bạn". Chỉ dùng biến --woo-*: màu, khoảng cách, bo góc, chữ không viết tay
   (scripts/build-components.mjs chặn). Kích thước riêng của thẻ (cột tên, chiều cao thanh) được ghi rem/px. */

.woo-progress-card {
  background: var(--woo-color-bg-surface);
  border: var(--woo-border-width-default) solid var(--woo-color-border-default);
  border-radius: var(--woo-radius-md);
  padding: var(--woo-space-lg);
  color: var(--woo-color-text-heading);
  font-family: var(--woo-typography-body-m-family);
  font-size: var(--woo-typography-body-m-size);
  line-height: var(--woo-typography-body-m-line-height);
}

.woo-progress-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--woo-space-md);
  margin: 0 0 var(--woo-space-md);
}

.woo-progress-card__title {
  margin: 0;
  color: var(--woo-color-text-heading);
  font-family: var(--woo-typography-h3-family);
  font-size: var(--woo-typography-h3-size);
  font-weight: var(--woo-typography-h3-weight);
  line-height: var(--woo-typography-h3-line-height);
}

/* "Xem chi tiết" và "Thử lại" dùng chung một kiểu liên kết. */
.woo-progress-card__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--woo-space-xs);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--woo-color-text-heading);
  font-family: var(--woo-typography-body-m-family);
  font-size: var(--woo-typography-body-m-size);
  font-weight: var(--woo-font-weight-medium);
  line-height: var(--woo-typography-body-m-line-height);
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--woo-radius-xs);
}
.woo-progress-card__link:hover { text-decoration: underline; }
.woo-progress-card__link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 var(--woo-border-width-featured) var(--woo-color-white), 0 0 0 var(--woo-border-width-focus) var(--woo-color-state-focus);
}

.woo-progress-card__list {
  display: grid;
  gap: var(--woo-space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.woo-progress-card__row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) 2.75rem;
  align-items: center;
  gap: var(--woo-space-xs) var(--woo-space-md);
}

.woo-progress-card__name {
  display: inline-flex;
  align-items: center;
  gap: var(--woo-space-xs);
  color: var(--woo-color-text-heading);
}

/* Dấu sao của kỹ năng đang ưu tiên: màu icon mục đang mở (#B76B16, 4.1:1 trên nền trắng). */
.woo-progress-card__star {
  flex: none;
  width: 12px;
  height: 12px;
  color: var(--woo-color-nav-active-icon);
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.woo-progress-card__icon {
  flex: none;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.woo-progress-card__bar {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: var(--woo-radius-xs);
  background: var(--woo-color-border-default);
}

.woo-progress-card__fill {
  display: block;
  height: 100%;
  background: var(--woo-color-state-selected);
}
.woo-progress-card__row[data-tone="priority"] .woo-progress-card__fill { background: var(--woo-color-gold); }
.woo-progress-card__row[data-tone="reached"] .woo-progress-card__fill { background: var(--woo-color-success); }
.woo-progress-card__row[data-tone="attention"] .woo-progress-card__fill { background: var(--woo-color-attention); }

/* Phần trăm luôn Navy, đậm; canh phải để dấu % thẳng hàng. */
.woo-progress-card__pct {
  color: var(--woo-color-text-heading);
  font-size: var(--woo-typography-body-s-size);
  font-weight: var(--woo-font-weight-bold);
  line-height: var(--woo-typography-body-s-line-height);
  text-align: right;
}

.woo-progress-card__note {
  grid-column: 2 / -1;
  margin: 0;
  font-size: var(--woo-typography-body-s-size);
  line-height: var(--woo-typography-body-s-line-height);
}
.woo-progress-card__row[data-tone="attention"] .woo-progress-card__note { color: var(--woo-color-text-attention); }
.woo-progress-card__row[data-tone="reached"] .woo-progress-card__note { color: var(--woo-color-success); }

.woo-progress-card__message {
  margin: 0;
  color: var(--woo-color-text-secondary);
}

.woo-progress-card__error {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--woo-space-sm);
}
.woo-progress-card__error .woo-progress-card__link { text-decoration: underline; }

/* Đang tải: khối xám đứng yên (chuyển động chưa chốt). */
.woo-progress-card__block {
  display: block;
  width: 100%;
  height: 10px;
  border-radius: var(--woo-radius-xs);
  background: var(--woo-color-border-default);
}

.woo-progress-card__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
