/* CrochetNa Craft UX Styles */
.cn-craft-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fbf5e9;
  border: 1px solid rgba(40, 63, 47, 0.12);
  border-radius: 8px;
  padding: 14px 20px;
  margin: 24px 0 32px 0;
  font-family: 'DM Sans', -apple-system, sans-serif;
}

.cn-terms-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cn-terms-label {
  font-size: 13px;
  font-weight: 600;
  color: #283f2f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cn-term-btn {
  background: #fff;
  border: 1px solid rgba(40, 63, 47, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #283f2f;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cn-term-btn.is-active {
  background: #283f2f;
  color: #fbf5e9;
  border-color: #283f2f;
}

.cn-progress-meter {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cn-progress-text {
  font-size: 13px;
  font-weight: 500;
  color: #283f2f;
}

.cn-progress-bar {
  width: 120px;
  height: 8px;
  background: rgba(40, 63, 47, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.cn-progress-fill {
  height: 100%;
  background: #d85e34;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.cn-reset-btn {
  background: transparent;
  border: none;
  color: #888;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.cn-reset-btn:hover {
  color: #d85e34;
}

/* Row-by-Row Stitches */
.cn-step-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 8px;
  background: #fff;
  border: 1px solid rgba(40, 63, 47, 0.08);
  border-radius: 6px;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.cn-step-row:hover {
  border-color: rgba(40, 63, 47, 0.2);
}

.cn-step-row.is-done {
  background: rgba(40, 63, 47, 0.03);
  opacity: 0.65;
}

.cn-step-row.is-done .cn-stitch-instruction {
  text-decoration: line-through;
  color: #777;
}

.cn-checkbox-wrap {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  margin-top: 2px;
}

.cn-row-toggle {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.cn-custom-check {
  width: 22px;
  height: 22px;
  border: 2px solid #283f2f;
  border-radius: 5px;
  display: inline-block;
  background: #fff;
  transition: all 0.2s ease;
}

.cn-row-toggle:checked + .cn-custom-check {
  background: #283f2f;
}

.cn-row-toggle:checked + .cn-custom-check::after {
  content: "✔";
  color: #fbf5e9;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cn-row-text {
  flex: 1;
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #283f2f;
}

.cn-row-badge {
  display: inline-block;
  background: rgba(216, 94, 52, 0.12);
  color: #d85e34;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
}
