/* ============================
Checklist Tool – Specific Styles
============================ */

.checklist-input {
  display: flex;
  align-items: stretch;
  gap: var(--space-sm);
  width: 100%;
  margin-bottom: var(--space-lg);
}

.checklist-input input {
  flex: 1;
  min-height: 52px;
  padding: 0 1rem;
  border-radius: 12px;
  font-size: 1rem;
}

.checklist-input button {
  min-width: 132px;
  min-height: 52px;
  padding: 0 1rem;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
}

.checklist-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.checklist-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 48px;
  padding: 0.8rem 0.9rem;
  border: var(--surface-card-border);
  border-radius: var(--surface-panel-radius);
  background: var(--surface-card-bg);
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast);
}

.checklist-list li:hover {
  background: color-mix(in srgb, var(--primary) 5%, var(--card));
  border-color: color-mix(
    in srgb,
    var(--primary) 18%,
    var(--surface-card-border-color)
  );
  box-shadow: var(--surface-shadow);
  transform: var(--surface-hover-transform);
}

.checklist-list li.muted {
  justify-content: center;
  min-height: 118px;
  padding: 1.5rem;
  border-style: dashed;
  color: var(--muted);
  text-align: center;
  opacity: 0.92;
}

.checklist-list li.done span {
  text-decoration: line-through;
  opacity: 0.6;
}

html.dark .checklist-list li.done span {
  opacity: 0.5;
}

.checklist-list button {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
}

.checklist-page .tool-checklist {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.checklist-page .tool-body {
  align-items: stretch;
  gap: var(--space-md);
}

.checklist-page .related-tools {
  padding: var(--space-lg);
  border: var(--surface-card-border);
  border-radius: var(--surface-card-radius);
  background: var(--surface-card-bg);
}

html:not(.dark) .checklist-page .related-tools.affiliate-note {
  background: var(--surface-related-bg);
  border-color: var(--surface-related-border-color);
  box-shadow: var(--surface-shadow);
}

.checklist-page .related-tools p {
  margin: 0 0 var(--space-sm);
}

.checklist-page .related-tools p:last-child {
  margin-bottom: 0;
}

/* ============================
Interaction refinements
============================ */
.checklist-list li span {
  cursor: pointer;
}

.checklist-list li span:hover {
  opacity: 0.85;
}

/* ============================
Page-specific adjustments
============================ */
.checklist-page .page-content {
  min-height: calc(100vh - var(--header-height) - 120px);
}

.checklist-page .drawer-body a,
.checklist-page .nav-dropdown a {
  box-sizing: border-box;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  padding-left: 13px;
  font-weight: 500;
  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast);
}

.checklist-page .drawer-body a.active,
.checklist-page .nav-dropdown a.active {
  border-left-color: var(--primary);
  font-weight: 500;
}

@media (width <= 640px) {
  .checklist-input {
    flex-direction: column;
  }

  .checklist-input button {
    width: 100%;
  }
}
