﻿/* PresentTool™ Dashboard — styles for view: projects (v3.7.0)
   ────────────────────────────────────────────────────────────
   Owns: projects view (grid + list), detail-overlay panel,
   new-project modal, empty + filtered-empty states.
   Uses thumb-grad-N from overview.css (shared).
   ──────────────────────────────────────────────────────────── */


/* ════ PAGE-HEADER FOR PROJECTS VIEW ════════════════════════════ */
.pv-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0 22px;
  margin-bottom: 6px;
}
.pv-page-head .title-block .eyebrow {
  font-family: var(--pt-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pt-text-muted);
  margin-bottom: 6px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.pv-page-head .title-block .eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--pt-primary);
}
.pv-page-head .title-block h1 {
  font-family: var(--pt-serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--pt-text);
}
.pv-page-head .title-block h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--pt-primary);
}
.pv-page-head .title-block .sub {
  font-size: 13.5px;
  color: var(--pt-text-muted);
  margin: 6px 0 0;
  max-width: 640px;
}
.pv-page-head .title-block .sub strong {
  color: var(--pt-text);
  font-weight: 600;
}
.pv-page-head .actions {
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}


/* ════ TOOLBAR ════════════════════════════════════════════════ */
.projects-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--pt-border);
  flex-wrap: nowrap;
  position: sticky;
  top: var(--pt-nav-h, 56px);
  background: var(--pt-bg-page);
  z-index: 5;
}
.filter-chips {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.filter-chip {
  font-family: var(--pt-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--pt-text-muted);
  background: transparent;
  border: 1px solid var(--pt-border);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
}
.filter-chip:hover { background: var(--pt-surface-2); color: var(--pt-text); }
.filter-chip.is-active {
  background: var(--pt-text);
  color: var(--pt-surface-0);
  border-color: var(--pt-text);
}
.filter-chip .count {
  font-family: var(--pt-mono);
  font-size: 10.5px;
  opacity: 0.7;
  margin-left: 4px;
}

.toolbar-search {
  flex: 1;
  max-width: 280px;
  display: inline-flex; align-items: center;
  background: var(--pt-surface-2);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-sm);
  padding: 6px 8px 6px 10px;
  gap: 8px;
  color: var(--pt-text-muted);
  margin-left: auto;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.toolbar-search:focus-within {
  border-color: var(--pt-primary);
  background: var(--pt-surface-0);
}
.toolbar-search.is-active {
  border-color: var(--pt-accent-mid);
  background: var(--pt-accent-soft);
}
.toolbar-search svg { width: 14px; height: 14px; flex: 0 0 14px; }
.toolbar-search input {
  border: none; background: transparent; outline: none;
  font-family: var(--pt-sans); font-size: 13px;
  flex: 1; color: var(--pt-text); min-width: 0;
}
.toolbar-search input::placeholder { color: var(--pt-text-muted); }
.toolbar-search .clear-btn {
  background: transparent; border: none;
  color: var(--pt-text-muted); cursor: pointer;
  display: inline-flex; align-items: center; padding: 0;
}
.toolbar-search .clear-btn svg { width: 11px; height: 11px; }

.view-toggle {
  display: inline-flex;
  background: var(--pt-surface-2);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-sm);
  padding: 2px;
}
.view-toggle button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 24px;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: var(--pt-text-muted);
  cursor: pointer;
}
.view-toggle button svg { width: 13px; height: 13px; }
.view-toggle button.is-active {
  background: var(--pt-surface-0);
  color: var(--pt-text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.sort-dropdown {
  position: relative;
}
.sort-dropdown-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--pt-sans);
  font-size: 12.5px;
  color: var(--pt-text);
  background: transparent;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-sm);
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
}
.sort-dropdown-btn svg { width: 12px; height: 12px; color: var(--pt-text-muted); }
.sort-dropdown-btn:hover { background: var(--pt-surface-2); }
.sort-menu {
  position: absolute;
  right: 0; top: calc(100% + 4px);
  min-width: 200px;
  background: var(--pt-surface-0);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-sm);
  box-shadow: var(--pt-shadow-card);
  padding: 4px;
  z-index: 30;
}
.sort-menu button {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 7px 10px;
  font-family: var(--pt-sans);
  font-size: 13px;
  color: var(--pt-text);
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
}
.sort-menu button:hover { background: var(--pt-surface-2); }
.sort-menu button.is-active { color: var(--pt-primary); font-weight: 600; }


/* ════ ACTIVE-FILTER CHIPS STRIP ════════════════════════════════ */
.active-filters {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 0 6px;
  font-size: 12.5px; color: var(--pt-text-muted);
  flex-wrap: wrap;
}
.active-filters .label {
  font-family: var(--pt-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pt-text-subtle);
}
.active-filters .pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px 3px 10px;
  background: var(--pt-accent-soft);
  border: 1px solid var(--pt-accent-mid);
  border-radius: 999px;
  color: var(--pt-primary);
  font-size: 11.5px;
  font-weight: 500;
}
.active-filters .pill button {
  background: transparent; border: none;
  color: var(--pt-primary); cursor: pointer;
  display: inline-flex; align-items: center;
  padding: 0; margin-left: 2px;
}
.active-filters .pill svg { width: 11px; height: 11px; }
.active-filters .clear-all { margin-left: auto; }


/* ════ GRID + CARDS ════════════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 24px;
}
.proj-card {
  background: var(--pt-surface-0);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.proj-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pt-shadow-card);
  border-color: var(--pt-border-strong);
  text-decoration: none;
}
.proj-card.is-selected {
  border-color: var(--pt-primary);
  box-shadow: 0 0 0 2px var(--pt-accent-soft);
}
.proj-card .thumb {
  height: 168px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 16px;
}
.proj-card .thumb::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.10), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,0.18), transparent 55%);
  pointer-events: none;
}
.proj-card .thumb .title {
  position: relative; z-index: 1;
  font-family: var(--pt-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.005em;
  color: rgba(255,255,255,0.94);
  text-shadow: 0 1px 6px rgba(0,0,0,0.18);
}
.proj-card .thumb .status-pill {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(4px);
}
.proj-card .body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.proj-card .row1 {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.proj-card .name {
  font-family: var(--pt-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--pt-text);
  letter-spacing: -0.005em;
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.proj-card .step-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--pt-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--pt-text-muted);
  background: var(--pt-surface-2);
  border-radius: var(--pt-radius-sm);
  padding: 3px 7px;
  white-space: nowrap;
}
.proj-card .step-pill svg { width: 11px; height: 11px; }
.proj-card .row2 {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
  color: var(--pt-text-muted);
  gap: 12px;
}
.proj-card .row2 .city {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.proj-card .row2 .time { font-family: var(--pt-mono); font-size: 11px; flex-shrink: 0; }


/* Defensive overlay for thumbs when used as backgrounds */
.proj-card .thumb[class*="thumb-grad-"]::before,
.detail-thumb[class*="thumb-grad-"]::before,
.row-thumb[class*="thumb-grad-"]::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}


/* ════ LIST (TABLE) ═══════════════════════════════════════════ */
.projects-table {
  background: var(--pt-surface-0);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  overflow: hidden;
  margin-top: 18px;
}
.projects-table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--pt-sans);
  font-size: 13px;
}
.projects-table thead th {
  text-align: left;
  font-family: var(--pt-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pt-text-muted);
  background: var(--pt-surface-1);
  border-bottom: 1px solid var(--pt-border);
  padding: 10px 16px;
}
.projects-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--pt-border);
  color: var(--pt-text);
  vertical-align: middle;
}
.projects-table tbody tr {
  cursor: pointer;
  transition: background 0.1s ease;
}
.projects-table tbody tr:last-child td { border-bottom: none; }
.projects-table tbody tr:hover { background: var(--pt-surface-1); }
.projects-table .row-name {
  display: inline-flex; align-items: center; gap: 12px;
}
.projects-table .row-thumb {
  width: 32px; height: 32px;
  border-radius: 6px;
  position: relative;
  flex: 0 0 32px;
  overflow: hidden;
}
.projects-table .row-thumb::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.10), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0,0,0,0.18), transparent 55%);
}
.projects-table .row-name .nm { font-weight: 600; }
.projects-table .row-name .sub {
  font-size: 11.5px; color: var(--pt-text-muted);
}
.projects-table .col-mono {
  font-family: var(--pt-mono);
  font-size: 12px;
  color: var(--pt-text-muted);
  white-space: nowrap;
}
.projects-table .col-kebab { width: 32px; text-align: right; }
.projects-table .kebab-btn {
  width: 26px; height: 26px;
  border-radius: 4px;
  background: transparent; border: none;
  color: var(--pt-text-muted);
  cursor: pointer;
}
.projects-table .kebab-btn svg { width: 14px; height: 14px; }
.projects-table .kebab-btn:hover { background: var(--pt-surface-3); color: var(--pt-text); }


/* ════ DETAIL-OVERLAY (slide-in panel) ════════════════════════ */
.detail-scrim {
  position: fixed;
  inset: 0;
  background: rgba(20,18,14,0.30);
  backdrop-filter: blur(1px);
  z-index: 80;
  animation: pv-fade-in 0.18s ease-out;
}
.detail-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 480px;
  max-width: 100vw;
  background: var(--pt-surface-0);
  border-left: 1px solid var(--pt-border);
  box-shadow: var(--pt-shadow-modal);
  z-index: 81;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pv-slide-in 0.22s ease-out;
}
@keyframes pv-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pv-slide-in {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

.detail-panel-head {
  padding: 18px 22px 0;
  border-bottom: 1px solid var(--pt-border);
}
.detail-panel-head .topbar {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.detail-panel-head .topbar .iconbtn,
.detail-panel-head .topbar .close {
  width: 28px; height: 28px;
  border-radius: var(--pt-radius-sm);
  border: 1px solid var(--pt-border);
  background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--pt-text-muted); cursor: pointer;
}
.detail-panel-head .topbar .iconbtn svg,
.detail-panel-head .topbar .close svg { width: 13px; height: 13px; }
.detail-panel-head .topbar .iconbtn:hover,
.detail-panel-head .topbar .close:hover { background: var(--pt-surface-2); color: var(--pt-text); }
.detail-panel-head .topbar .spacer { flex: 1; }
.detail-panel-head .name {
  font-family: var(--pt-serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.012em;
  color: var(--pt-text);
  margin: 0 0 6px;
}
.detail-panel-head .name em { font-style: italic; font-weight: 500; color: var(--pt-primary); }
.detail-panel-head .sub {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--pt-text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.detail-panel-head .sub .sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--pt-border-strong);
}
.detail-panel-tabs {
  display: flex; gap: 4px; margin-top: 4px;
  margin-left: -22px; margin-right: -22px;
  padding: 0 22px;
}
.detail-panel-tabs .tab {
  font-family: var(--pt-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--pt-text-muted);
  padding: 8px 10px;
  border: none; background: transparent;
  position: relative;
  cursor: pointer;
  margin-bottom: -1px;
}
.detail-panel-tabs .tab:hover { color: var(--pt-text); }
.detail-panel-tabs .tab.is-active {
  color: var(--pt-text);
  font-weight: 600;
  border-bottom: 2px solid var(--pt-primary);
}
.detail-panel-tabs .tab .num {
  font-family: var(--pt-mono);
  font-size: 10.5px;
  opacity: 0.6;
  margin-left: 3px;
}
.detail-panel-body {
  flex: 1;
  padding: 18px 22px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
}
.detail-thumb {
  height: 240px;
  border-radius: var(--pt-radius-md);
  overflow: hidden;
  position: relative;
  display: flex; align-items: flex-end;
  padding: 14px;
}
.detail-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.35) 100%);
}
.detail-thumb .title {
  position: relative; z-index: 1;
  font-family: var(--pt-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}
.detail-section-head {
  font-family: var(--pt-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pt-text-muted);
  margin: 0 0 8px;
}
.detail-stats-row {
  display: flex; gap: 18px;
  padding: 12px 14px;
  background: var(--pt-surface-1);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-sm);
}
.detail-stats-row .stat .v {
  font-family: var(--pt-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 22px;
  color: var(--pt-text);
  line-height: 1;
}
.detail-stats-row .stat .l {
  font-family: var(--pt-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pt-text-muted);
  margin-top: 4px;
}

.detail-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.detail-gallery .g {
  aspect-ratio: 1;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--pt-surface-3) center / cover no-repeat;
}
.detail-gallery .g::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.10), transparent 50%);
  pointer-events: none;
}
.detail-gallery.cols-1 { grid-template-columns: 1fr; }

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  font-size: 12.5px;
}
.detail-info-grid .label {
  font-family: var(--pt-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pt-text-muted);
}
.detail-info-grid .val { color: var(--pt-text); }
.detail-info-grid .val.mono { font-family: var(--pt-mono); }

.detail-share-row {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 12px;
  background: var(--pt-surface-2);
  border-radius: var(--pt-radius-sm);
  font-family: var(--pt-mono);
  font-size: 11.5px;
  color: var(--pt-primary);
}
.detail-share-row .url {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.detail-activity-list {
  display: flex; flex-direction: column; gap: 0;
}
.detail-activity-list .item {
  display: flex; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pt-border);
  font-size: 12.5px;
}
.detail-activity-list .item:last-child { border-bottom: none; }
.detail-activity-list .item .dot {
  flex: 0 0 6px;
  width: 6px; height: 6px; margin-top: 7px;
  border-radius: 50%;
  background: var(--pt-primary);
}
.detail-activity-list .item .when {
  font-family: var(--pt-mono);
  font-size: 10.5px;
  color: var(--pt-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.detail-publications-list .row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pt-border);
}
.detail-publications-list .row:last-child { border-bottom: none; }
.detail-publications-list .url {
  flex: 1;
  font-family: var(--pt-mono);
  font-size: 12px;
  color: var(--pt-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.detail-publications-list .views {
  font-family: var(--pt-mono);
  font-size: 11px;
  color: var(--pt-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-actions-bar {
  border-top: 1px solid var(--pt-border);
  padding: 14px 22px;
  display: flex; gap: 8px;
  background: var(--pt-surface-0);
}
.detail-actions-bar .btn { flex: 1; justify-content: center; }
.detail-actions-bar .btn-primary { flex: 2; }


/* ════ EMPTY STATES ═══════════════════════════════════════════ */
.projects-empty {
  text-align: center;
  padding: 80px 20px 100px;
  max-width: 520px;
  margin: 0 auto;
}
.projects-empty.filtered { padding: 60px 20px 80px; }
.projects-empty .illu {
  width: 180px; height: 140px;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, rgba(139,69,19,0.04), rgba(200,149,108,0.08));
  border-radius: var(--pt-radius-lg);
  border: 1px dashed var(--pt-border-strong);
  display: flex; align-items: center; justify-content: center;
}
.projects-empty .illu svg { width: 48px; height: 48px; color: var(--pt-primary); opacity: 0.55; }
.projects-empty h2 {
  font-family: var(--pt-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.012em;
  margin: 0 0 8px;
  color: var(--pt-text);
}
.projects-empty h2 em { font-style: italic; font-weight: 500; color: var(--pt-primary); }
.projects-empty p {
  font-family: var(--pt-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 14.5px;
  color: var(--pt-text-muted);
  margin: 0 auto 20px;
  line-height: 1.55;
  max-width: 420px;
}
.projects-empty .ctas {
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.projects-empty .hint {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--pt-mono);
  font-size: 11px;
  color: var(--pt-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.projects-empty .hint svg { width: 11px; height: 11px; }


/* ════ LOADING SKELETONS ══════════════════════════════════════ */
.proj-skeleton {
  background: var(--pt-surface-0);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.proj-skeleton .sk-thumb {
  height: 168px;
  background: linear-gradient(90deg, var(--pt-surface-2) 0%, var(--pt-surface-3) 50%, var(--pt-surface-2) 100%);
  background-size: 200% 100%;
  animation: pv-shimmer 1.4s ease-in-out infinite;
}
.proj-skeleton .sk-body {
  padding: 14px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.proj-skeleton .sk-line {
  height: 12px; border-radius: 4px;
  background: linear-gradient(90deg, var(--pt-surface-2) 0%, var(--pt-surface-3) 50%, var(--pt-surface-2) 100%);
  background-size: 200% 100%;
  animation: pv-shimmer 1.4s ease-in-out infinite;
}
.proj-skeleton .sk-line.sm { width: 60%; height: 10px; }
@keyframes pv-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ════ "TOON MEER" BUTTON ═════════════════════════════════════ */
.load-more-row {
  text-align: center;
  padding: 14px 0 28px;
}
.load-more-row .btn { min-width: 180px; justify-content: center; }
.load-more-row .meta {
  display: block;
  margin-top: 10px;
  font-family: var(--pt-mono);
  font-size: 11px;
  color: var(--pt-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ════ ERROR STATE ═══════════════════════════════════════════ */
.projects-error {
  text-align: center;
  padding: 60px 20px;
  color: var(--pt-text-muted);
}
.projects-error h2 {
  font-family: var(--pt-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 20px;
  color: var(--pt-text);
  margin: 0 0 8px;
}
.projects-error p { margin: 0 0 16px; font-size: 13.5px; }


/* ════ NEW-PROJECT MODAL ══════════════════════════════════════ */
.pv-modal-scrim {
  position: fixed; inset: 0;
  background: rgba(20,18,14,0.40);
  backdrop-filter: blur(4px);
  z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: pv-fade-in 0.15s ease-out;
}
.pv-modal {
  width: 100%;
  max-width: 480px;
  background: var(--pt-surface-0);
  border-radius: var(--pt-radius-lg);
  box-shadow: var(--pt-shadow-modal);
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: pv-modal-pop 0.18s ease-out;
}
@keyframes pv-modal-pop {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.pv-modal-head {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--pt-border);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.pv-modal-head h2 {
  font-family: var(--pt-serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.012em;
  color: var(--pt-text);
  margin: 0 0 4px;
}
.pv-modal-head h2 em { font-style: italic; font-weight: 500; color: var(--pt-primary); }
.pv-modal-head p {
  margin: 0; font-size: 12.5px; color: var(--pt-text-muted);
}
.pv-modal-head .close {
  width: 28px; height: 28px;
  border-radius: var(--pt-radius-sm);
  border: 1px solid var(--pt-border);
  background: transparent;
  color: var(--pt-text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.pv-modal-head .close svg { width: 12px; height: 12px; }
.pv-modal-body {
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.pv-modal-body .row2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.pv-modal-foot {
  border-top: 1px solid var(--pt-border);
  padding: 12px 22px 14px;
  display: flex; gap: 8px; justify-content: flex-end;
  background: var(--pt-surface-1);
}


/* ════ MOBILE / RESPONSIVE ═══════════════════════════════════ */
@media (max-width: 1100px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .projects-toolbar {
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    top: auto;
  }
  .filter-chips {
    order: 1;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .toolbar-search { order: 2; max-width: none; flex: 1; margin-left: 0; }
  .view-toggle    { order: 3; }
  .sort-dropdown  { order: 4; }
}

@media (max-width: 768px) {
  .pv-page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-bottom: 14px;
  }
  .pv-page-head .actions { justify-content: flex-start; }
  .pv-page-head .title-block h1 { font-size: 24px; }
  .projects-table { display: none; }
  .detail-panel {
    width: 100%;
    border-left: none;
  }
  .detail-actions-bar { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .projects-grid { grid-template-columns: 1fr; gap: 14px; }
  .proj-card .thumb { height: 200px; }
  .pv-modal-body .row2 { grid-template-columns: 1fr; }
}
