/* =========================================================
   Checklist UI Component Styles (Progress, Cards, Haptics)
   ========================================================= */

.checklist-container {
  margin: 16px 0 20px 0;
  padding: 16px 18px;
  background: var(--surface-glass, rgba(28, 28, 30, 0.65));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: var(--text-primary, #ffffff);
}

[data-theme="light"] .checklist-container {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  color: #111111;
}

.checklist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.checklist-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checklist-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.checklist-counter {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, var(--accent-color, #2481cc));
}

/* Progress bar */
.checklist-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(120, 120, 128, 0.18);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}

[data-theme="light"] .checklist-progress-bar-bg {
  background: rgba(0, 0, 0, 0.08);
}

.checklist-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient, linear-gradient(90deg, var(--accent, #007aff), var(--accent-glow, #a855f7)));
  box-shadow: 0 0 10px var(--accent-glow, rgba(var(--accent-rgb, 0, 122, 255), 0.4));
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* List Items */
.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

[data-theme="light"] .checklist-item {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.04);
}

.checklist-item.completed {
  opacity: 0.85;
}

.checklist-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.checklist-title-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
}

/* GlassKit Liquid Glass Checkmark (https://github.com/JUNGHERZ/GlassKit) */
.checklist-check-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 1.5px rgba(255, 255, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .checklist-check-circle {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.9), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.checklist-check-svg {
  width: 13px;
  height: 13px;
  stroke: var(--accent-text, #ffffff);
  opacity: 0;
  transform: scale(0.6);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.checklist-item.completed .checklist-check-circle {
  background: var(--accent-gradient, linear-gradient(135deg, var(--accent, #007aff) 0%, rgba(var(--accent-rgb, 0, 122, 255), 0.88) 100%));
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 14px var(--accent-glow, rgba(var(--accent-rgb, 0, 122, 255), 0.5)), inset 0 1px 2px rgba(255, 255, 255, 0.85);
  transform: scale(1.05);
}

.checklist-item.completed .checklist-check-svg {
  opacity: 1;
  transform: scale(1);
}

.checklist-item-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.checklist-item-emoji {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.checklist-item-text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.checklist-item.completed .checklist-item-text {
  opacity: 0.75;
  color: var(--text-secondary, rgba(255, 255, 255, 0.7));
}

.checklist-btn-action {
  background: var(--accent, var(--accent-color, #2481cc));
  color: var(--accent-text, #ffffff);
  border: none;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px var(--accent-glow, rgba(var(--accent-rgb, 0, 122, 255), 0.25));
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.checklist-btn-action:active {
  transform: scale(0.96);
  opacity: 0.9;
}

.checklist-item.completed .checklist-btn-action {
  display: none;
}

/* Verified Badge in Profile Hero */
.verified-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-subtle, rgba(var(--accent-rgb, 0, 122, 255), 0.15));
  border: 1px solid var(--accent-glow, rgba(var(--accent-rgb, 0, 122, 255), 0.35));
  color: var(--accent, #007aff);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
