/* ═══════════════════════════════════════════
   Memoroam — Docs Tab
   Travel document checklist styling.
   ═══════════════════════════════════════════ */

.docs-wrap { padding: 0 2px 80px; }

/* ── Header ──────────────────────────────── */
.docs-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 4px;
}
.docs-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700; color: var(--text);
  margin: 0;
}
.docs-progress-summary { display: flex; align-items: center; gap: 6px; }
.docs-progress-text {
  font-family: 'DM Sans', sans-serif; font-size: 12px;
  color: var(--muted); font-weight: 500;
}

/* ── Progress Ring ───────────────────────── */
.docs-ring-wrap {
  display: flex; justify-content: center;
  padding: 16px 0 22px;
}
.docs-ring { width: 108px; height: 108px; }

/* ── Section Toggle ──────────────────────── */
.docs-section-toggle {
  display: flex; gap: 8px; margin-bottom: 20px;
}
.docs-section-btn {
  flex: 1; padding: 12px 14px;
  border-radius: 14px; border: 1.5px solid var(--border);
  background: var(--card); cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  transition: all .2s;
  -webkit-user-select: none; user-select: none;
}
.docs-section-btn.active {
  border-color: var(--accent, #4A8C8A);
  background: rgba(74, 140, 138, .06);
}
.docs-section-label {
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  font-weight: 600; color: var(--text);
}
.docs-section-count {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: var(--muted);
}

/* ── Checklist Group ─────────────────────── */
.docs-group {
  background: var(--card);
  border-radius: 16px; border: 1px solid var(--border);
  padding: 16px; margin-bottom: 12px;
  transition: opacity .3s;
}
.docs-group--done { opacity: .55; }

.docs-group-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.docs-group-title {
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  font-weight: 700; color: var(--text);
}
.docs-group-count {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  color: var(--muted);
}

/* ── Group progress bar ──────────────────── */
.docs-group-bar {
  height: 3px; border-radius: 2px;
  background: var(--border); margin-bottom: 14px;
  overflow: hidden;
}
.docs-group-bar-fill {
  height: 100%; border-radius: 2px;
  background: var(--accent, #4A8C8A);
  transition: width .4s cubic-bezier(.32,.72,0,1);
}

/* ── Checklist Item ──────────────────────── */
.docs-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(0,0,0,.04);
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
  transition: opacity .2s;
}
.docs-item:first-of-type { border-top: none; }

.docs-check {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease;
}
.docs-item--checked .docs-check {
  background: var(--accent, #4A8C8A);
  border-color: var(--accent, #4A8C8A);
  color: white;
}
.docs-check svg { display: block; }
.docs-check svg polyline {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: docs-check-draw .28s cubic-bezier(.65,.05,.36,1) .06s forwards;
}
@keyframes docs-check-draw { to { stroke-dashoffset: 0; } }
.docs-check.docs-check--just-toggled {
  animation: docs-check-pop .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes docs-check-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* Progress ring — smooth fill/unfill */
.docs-ring-progress {
  transition: stroke-dashoffset .55s cubic-bezier(.32,.72,0,1), stroke .3s ease;
}

.docs-item-label {
  font-family: 'DM Sans', sans-serif; font-size: 14px;
  color: var(--text); line-height: 1.3;
  transition: opacity .2s;
}
.docs-item--checked .docs-item-label {
  opacity: .45;
  text-decoration: line-through;
  text-decoration-color: var(--muted);
}

/* ── Dark mode adjustments ───────────────── */
[data-theme="dark"] .docs-item {
  border-top-color: rgba(255,255,255,.06);
}
