/* ══════════════════════════════════════
   Resume Strips
══════════════════════════════════════ */

.resume-strips {
  background: var(--hero-bg);
  border-bottom: 1px solid var(--hero-border);
}

.strips-inner {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 8px 12px;
}

.strips-label {
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-mid);
  padding: 2px 0;
}

.strips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}

@media (max-width: 480px) {
  .strips-grid { grid-template-columns: 1fr; }
}

.resume-strip {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--hero-border);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.resume-strip:hover { background: rgba(255,255,255,0.09); }

.strip-left {
  flex: 1;
  min-width: 0;
}

.strip-name {
  font-size: var(--fs-12);
  font-weight: 600;
  color: var(--hero-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.strip-detail {
  font-size: var(--fs-10);
  color: var(--hero-mid);
  font-family: var(--font-sans);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.8;
}

.strip-btn {
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s;
}
.strip-btn:hover { opacity: 0.85; }

/* ══════════════════════════════════════
   Dashboard
══════════════════════════════════════ */

.projects-wrap {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 12px 12px 80px;
}

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

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  border-radius: var(--radius-xl);
  background: var(--accent-lt);
  color: var(--accent-text);
  font-size: var(--fs-10);
  font-weight: 600;
  vertical-align: middle;
  letter-spacing: 0;
  text-transform: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Filter ── */
.filter-wrap { position: relative; }

.filter-btn {
  font-size: var(--fs-12);
  color: var(--ink-mid);
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 500;
  white-space: nowrap;
  padding: 3px 8px;
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn-active { border-color: var(--accent); color: var(--accent); background: var(--accent-lt); }

.archived-toggle-btn {
  font-size: var(--fs-12);
  color: var(--ink-mid);
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: 500;
  white-space: nowrap;
  padding: 3px 8px;
  transition: all 0.15s;
}
.archived-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }
.archived-toggle-btn-active { border-color: var(--accent); color: var(--accent); background: var(--accent-lt); }

.filter-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  min-width: 200px;
  max-width: 280px;
  overflow: hidden;
}

.filter-dropdown-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.filter-tag-chip {
  font-size: var(--fs-12);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--ink-mid);
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-sans);
  transition: all 0.12s;
}
.filter-tag-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-tag-chip-on { background: var(--accent-lt); border-color: var(--accent-lt); color: var(--accent-text); }

.filter-empty {
  padding: 12px 14px;
  font-size: var(--fs-12);
  color: var(--ink-light);
  font-style: italic;
  text-align: center;
}

.filter-clear {
  display: block;
  width: 100%;
  padding: 7px 12px;
  text-align: center;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  color: var(--ink-light);
  cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.filter-clear:hover { background: var(--surface2); color: var(--ink); }

/* ── Sort ── */
.sort-wrap { position: relative; flex-shrink: 0; }

.sort-btn {
  font-size: var(--fs-12);
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-weight: 500;
  white-space: nowrap;
}
.sort-btn:hover { opacity: 0.75; }

.sort-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  min-width: 130px;
  overflow: hidden;
}

.sort-option {
  display: block;
  width: 100%;
  padding: 7px 12px;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.1s;
}
.sort-option:last-child { border-bottom: none; }
.sort-option:hover { background: var(--surface2); }
.sort-option-active { color: var(--accent); font-weight: 600; }

/* ── Project grid ── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 480px) and (orientation: portrait) {
  .project-grid { grid-template-columns: 1fr; }
}

.empty-filter {
  grid-column: 1 / -1;
  padding: 24px 0;
  text-align: center;
  font-size: var(--fs-12);
  color: var(--ink-light);
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.empty-filter-clear {
  font-size: var(--fs-12);
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  font-style: normal;
}

/* ── FAB ── */
.fab {
  position: fixed;
  bottom: 62px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-size: var(--fs-22);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 102;
  transition: opacity 0.15s, transform 0.15s;
}
.fab:hover { opacity: 0.88; transform: translateX(-50%) scale(1.05); }

/* ══════════════════════════════════════
   Project Card
══════════════════════════════════════ */

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.project-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.card-active { border-color: var(--accent); }

.card-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex: 1;
}

.photo-wrap {
  width: 55%;
  flex-shrink: 0;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.card-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-emoji {
  font-size: var(--fs-24);
  line-height: 1;
  opacity: 0.45;
}

.card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-left: 1px solid var(--border);
}

.card-body {
  flex: 1;
  padding: 6px 7px 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-name {
  font-size: var(--fs-12);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.badge {
  font-size: var(--fs-9);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  align-self: flex-start;
  white-space: nowrap;
}

.badge-active   { background: var(--accent-lt); color: var(--accent-text); }
.badge-paused   { background: var(--surface2);  color: var(--ink-mid); }
.badge-waiting  { background: var(--warn-lt);   color: var(--warn); }
.badge-completed { background: var(--ok-lt);    color: var(--ok); }
.badge-archived  { background: var(--surface2); color: var(--ink-light); }

.card-sub {
  font-size: var(--fs-10);
  color: var(--ink-mid);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-tags {
  padding: 0 7px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.tag-chip {
  font-size: var(--fs-9);
  font-weight: 500;
  padding: 1px 5px;
  border-radius: var(--radius-xl);
  background: var(--accent-lt);
  color: var(--accent-text);
  white-space: nowrap;
}

.card-stats {
  padding: 5px 7px 6px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.stat-lbl {
  font-size: var(--fs-9);
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.stat-val {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums lining-nums;
  font-size: var(--fs-12);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 4px 6px;
  border-top: 1px solid var(--border);
}

.archive-btn,
.delete-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
  color: var(--ink-light);
}
.archive-btn:hover { border-color: var(--ink-mid); color: var(--ink); }
.delete-btn:hover  { border-color: var(--danger); color: var(--danger); background: var(--danger-lt); }
