/* ============================================================
   Projects Page Styles — GRIND Lab
   ============================================================ */

/* ── Projects Filter Bar ── */
.projects-filter {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  position: sticky; top: var(--nav-height); z-index: 100;
}
.projects-filter-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; padding: 16px 0;
}
.projects-filter-tabs { display: flex; gap: 6px; }
.projects-sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-gray); }
.projects-sort select {
  padding: 7px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-family: var(--font);
  font-size: 13px; color: var(--text-dark); background: var(--white);
  cursor: pointer; outline: none;
}

/* ── Projects Main Section ── */
.projects-section { padding: 48px 28px 88px; }
.projects-container { max-width: 1200px; margin: 0 auto; }

/* ── Project Category Header ── */
.projects-category { margin-bottom: 56px; }
.projects-category-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px; padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.projects-category-header h2 { font-size: 22px; font-weight: 800; color: var(--text-dark); }
.projects-category-header .count {
  background: var(--light); color: var(--accent);
  font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 50px;
}

/* ── Project Cards ── */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--white);
  transition: var(--transition); display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.project-card-img {
  width: 100%; height: 196px;
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; position: relative; overflow: hidden;
}
.project-card-img.theme-geoai {
  background: linear-gradient(135deg, var(--primary) 0%, #3d6614 100%);          /* charcoal → dark green */
}
.project-card-img.theme-remote {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 50%, var(--primary-light) 100%);
}
.project-card-img.theme-disaster {
  background: linear-gradient(135deg, #6b0a2e 0%, #a81f52 50%, var(--highlight) 100%); /* dark → pink */
}
.project-card-img.theme-nature {
  background: linear-gradient(135deg, #1a3d08 0%, #3a7512 50%, var(--accent) 100%);    /* dark → green */
}
.project-card-img.theme-urban {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}
.project-card-img .project-icon { font-size: 52px; opacity: 0.6; }
.project-status-badge {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 12px; border-radius: 50px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}
.project-status-badge.ongoing { background: rgba(5,150,105,0.85); color: var(--white); }
.project-status-badge.completed { background: rgba(107,114,128,0.85); color: var(--white); }
.project-status-badge.upcoming { background: rgba(0,150,183,0.85); color: var(--white); }
.project-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.project-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.project-card-body h3 { font-size: 17px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; color: var(--text-dark); }
.project-card-body h3 a:hover { color: var(--accent); }
.project-card-body p { font-size: 13.5px; color: var(--text-gray); line-height: 1.7; flex: 1; margin-bottom: 18px; }
.project-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--border-light); margin-top: auto; }
.project-funding { font-size: 12px; color: var(--text-light); display: flex; align-items: center; gap: 5px; }
.project-funding i { color: var(--accent); font-size: 11px; }
.project-link { font-size: 13px; font-weight: 600; color: var(--accent); display: flex; align-items: center; gap: 5px; transition: var(--transition); }
.project-link:hover { gap: 9px; }

/* ── Featured / Highlight Project ── */
.project-featured-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--primary); margin-bottom: 40px;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 360px;
}
.project-featured-visual {
  background: linear-gradient(160deg, var(--primary-light) 0%, var(--primary) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; color: rgba(255,255,255,0.25); position: relative;
}
.project-featured-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.project-featured-body .section-tag { text-align: left; margin-bottom: 12px; }
.project-featured-body h2 { font-size: 28px; font-weight: 800; color: var(--white); line-height: 1.25; margin-bottom: 14px; }
.project-featured-body p { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.8; margin-bottom: 24px; }
.project-meta-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 28px; }
.project-meta-item { font-size: 13px; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 6px; }
.project-meta-item i { color: var(--accent-light); font-size: 12px; }
.project-meta-item strong { color: rgba(255,255,255,0.85); }

/* ── Project Detail Modal / Expanded (placeholder) ── */
.project-detail-placeholder {
  background: var(--lighter); border-radius: var(--radius);
  border: 2px dashed var(--border); padding: 40px;
  text-align: center; color: var(--text-light); margin-top: 28px;
}

/* ── Team Members on Project ── */
.project-team { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.project-member-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(255,255,255,0.15);
  margin-right: -8px;
}
.project-member-count { font-size: 12px; color: rgba(255,255,255,0.5); margin-left: 16px; }

/* ── Responsive ── */
@media (max-width: 1024px) { .projects-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-featured-card { grid-template-columns: 1fr; }
  .project-featured-visual { min-height: 200px; }
}
