/* ===========================================================
   projects.css
   Tokens
=========================================================== */
:root {
  --pine-950: #0f1c16;
  --pine-900: #14251d;
  --pine-800: #1b2e24;
  --mint-100: #eaf3ea;
  --mint-050: #f4f9f4;
  --ink: #10201a;
  --paper: #f5f7f3;
  --stone-400: #9aa69b;
  --leaf-500: #6f9b5e;
  --amber-500: #e0a83f;
 
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", system-ui, -apple-system, sans-serif;
 
  --radius-card: 18px;
  --radius-organic: 34px 18px 18px 18px; /* signature: soft leaf-like corner */
}
 
* { box-sizing: border-box; }
 
body {
  margin: 0;
  font-family: var(--font-body);
  /* background: var(--mint-100); */
  color: var(--ink);
}
 
/* ===========================================================
   Layout
=========================================================== */
.projects-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
 
@media (max-width: 860px) {
  .projects-page {
    grid-template-columns: 1fr;
  }
}
 
/* ===========================================================
   Sidebar
=========================================================== */
.filters-sidebar {
  background: var(--pine-950);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  align-self: start;
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  margin-top: 60px;
  gap: 24px;
}
 
@media (max-width: 860px) {
  .filters-sidebar { position: static; }
}
 
.filter-block__title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mint-050);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(234, 243, 234, 0.15);
}
 
.filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
}
 
.filter-list::-webkit-scrollbar { width: 6px; }
.filter-list::-webkit-scrollbar-thumb { background: var(--pine-800); border-radius: 4px; }
 
.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--mint-100);
  font-size: 14px;
  transition: background 0.15s ease;
}
 
.filter-option:hover { background: var(--pine-800); }
 
.filter-option input {
  accent-color: var(--leaf-500);
  margin-right: 8px;
}
 
.filter-option__label {
  flex: 1;
  display: flex;
  align-items: center;
}
 
.filter-option__count {
  font-size: 12px;
  color: var(--stone-400);
}
 
.clear-filters {
  align-self: flex-start;
  background: none;
  border: 1px solid rgba(234, 243, 234, 0.3);
  color: var(--mint-100);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
 
.clear-filters:hover {
  border-color: var(--amber-500);
  color: var(--amber-500);
}
 
/* ===========================================================
   Status filter pills
=========================================================== */
.status-filters {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
 
.status-btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  background: var(--mint-050);
  color: var(--pine-900);
  border: 1px solid rgba(15, 28, 22, 0.12);
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}
 
.status-btn:hover { transform: translateY(-1px); }
 
.status-btn.is-active {
  background: var(--pine-950);
  color: var(--mint-100);
  border-color: var(--pine-950);
}
 
/* ===========================================================
   Cards tabel
=========================================================== */
.projects-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
 
.projects-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  min-width: 720px; /* forces horizontal scroll instead of squish on small screens */
}
 
.projects-table thead th {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  text-align: left;
  padding: 14px 18px;
  background: var(--pine-900, #0f2a24);
  color: #fff;
  white-space: nowrap;
}
 
.projects-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: middle;
}

/* .col-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-items: center;
} */

.col-image img{
  border-radius: 10px;
}
 
.projects-table tbody tr:last-child td {
  border-bottom: none;
}
 
.projects-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}
 
.projects-table .col-action {
  text-align: right;
}
 
.projects-table .view-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px; /* pill */
  background: var(--mint-400, #7fd8b5);
  color: var(--pine-900, #0f2a24);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
}
 
.projects-table .view-btn:hover {
  background: var(--mint-500, #5cc79f);
}
 
/* Optional: stacked layout on small screens using data-label */
@media (max-width: 640px) {
  .projects-table thead {
    display: none;
  }
  .projects-table, .projects-table tbody, .projects-table tr, .projects-table td {
    display: block;
    width: 100%;
  }
  .projects-table tr {
    margin-bottom: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
  }
  .projects-table td {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
  }
  .projects-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--pine-900, #0f2a24);
  }
  .projects-table .col-action::before {
    content: '';
  }
} 
/* ===========================================================
   Empty state
=========================================================== */
.no-results {
  text-align: center;
  padding: 48px 0;
  color: var(--pine-800);
  font-family: var(--font-body);
  font-size: 15px;
}
 
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .project-card,
  .card-image img,
  .status-btn {
    transition: none;
  }
}

/* ===========================================================
   Home page project cards
=========================================================== */
.home-projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .home-projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .home-projects-grid { grid-template-columns: 1fr; }
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--pine-800);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(15, 28, 22, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 28, 22, 0.12);
}

.card-image {
  aspect-ratio: 3 / 3;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--paper);
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; /* Change this number to your desired line count */
  overflow: hidden;
  text-overflow: ellipsis;
}

.badgu {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 4px 12px;
  border-radius: 999px;
}

.badgu--ongoing {
  background: rgba(224, 168, 63, 0.15);
  color: var(--amber-500);
}

.badgu--completed {
  background: rgba(111, 155, 94, 0.15);
  color: var(--leaf-500);
}

.card-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.card-meta__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
}

.card-meta .view-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--mint-100);
  color: var(--pine-950);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.card-meta .view-btn:hover {
  background: #9aa69b;
}