/* ═══════════════════════════════════════════════════════════
   CHECKLIST.CSS — Item / Equipment Checklist Card (checklist.html)
   Page-specific styles. Requires main.css.
   ═══════════════════════════════════════════════════════════ */

/* ─── PAGE HEADER ─────────────────────────────────────────── */
.checklist-hero {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.checklist-hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

/* Progress bar */
.cl-progress-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.cl-progress-stat {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.cl-progress-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.cl-bar-wrap { flex: 1; }
.cl-bar-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.cl-bar {
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.cl-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

/* ─── FILTER BAR ──────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-right: 4px;
}
.filter-btn {
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}
.filter-btn:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }
.filter-btn.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

/* ─── CATEGORY GROUP ──────────────────────────────────────── */
.category-group { margin-bottom: 28px; }
.category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.category-icon { font-size: 16px; }
.category-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.category-count {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-dim);
  margin-left: auto;
}

/* ─── CHECKLIST ITEMS ─────────────────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: 6px; }

.cl-item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.12s, background 0.12s;
}
.cl-item:hover { border-color: rgba(255,255,255,0.12); background: var(--bg-card-hi); }
.cl-item.checked {
  opacity: 0.55;
  border-color: rgba(54,211,153,0.15);
  background: rgba(54,211,153,0.03);
}
.cl-item.missable { border-color: rgba(255,68,68,0.18); }

/* Checkbox */
.cl-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  transition: border-color 0.12s, background 0.12s;
}
.cl-checkbox:hover { border-color: var(--accent); }
.cl-item.checked .cl-checkbox {
  background: var(--green);
  border-color: var(--green);
  color: #0c0c14;
  font-size: 12px;
  font-weight: 700;
}
.cl-item.checked .cl-checkbox::after { content: "✓"; }

/* Item body */
.cl-body { display: flex; flex-direction: column; gap: 5px; }
.cl-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-name { font-size: 14px; font-weight: 700; color: var(--text); }
.cl-item.checked .cl-name { text-decoration: line-through; color: var(--text-muted); }
.cl-detail-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-location {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.cl-location::before { content: "📍"; font-size: 11px; }
.cl-platform {
  font-family: var(--mono);
  font-size: 10px;
  padding: 1px 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-dim);
}
.cl-notes { font-size: 12px; color: var(--text-dim); font-style: italic; }

/* Right column (badge + affiliate) */
.cl-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* Affiliate bridge placeholder */
.cl-affiliate {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px dashed rgba(255,197,50,0.25);
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  transition: border-color 0.12s, background 0.12s;
  white-space: nowrap;
}
.cl-affiliate:hover { border-color: rgba(255,197,50,0.5); background: var(--gold-dim); text-decoration: none; }
.cl-affiliate::before { content: "🛒 "; }

/* ─── DEAL CALLOUT (bottom of page) ───────────────────────── */
.cl-deal-callout {
  background: var(--bg-card);
  border: 1px dashed rgba(255,197,50,0.2);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}
.cl-deal-icon { font-size: 28px; flex-shrink: 0; }
.cl-deal-body { flex: 1; }
.cl-deal-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.cl-deal-title { font-size: 15px; font-weight: 700; color: var(--text); }
.cl-deal-desc  { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.cl-deal-cta {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid rgba(255,197,50,0.4);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  transition: background 0.12s;
}
.cl-deal-cta:hover { background: var(--gold-dim); text-decoration: none; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .checklist-hero-row { flex-direction: column; }
  .cl-progress-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cl-bar-wrap { width: 100%; }
  .cl-item { grid-template-columns: 28px 1fr; }
  .cl-right { grid-column: 2; flex-direction: row; justify-content: flex-start; }
  .cl-deal-callout { flex-direction: column; }
  .cl-deal-cta { width: 100%; text-align: center; }
}
