/* ============================================================
   PROJECTS PAGE STYLES
   ============================================================ */

/* --- Under construction banner --- */
.under-construction {
  padding-top: 4rem;
  padding-bottom: 0;
}

.under-construction__inner {
  background: linear-gradient(135deg, rgba(26, 82, 118, 0.06) 0%, rgba(46, 134, 193, 0.1) 100%);
  border: 2px dashed var(--accent);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}

.under-construction__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.under-construction__title {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.under-construction__text {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

.projects-section { padding-top: 5rem; padding-bottom: 5rem; }

/* --- Filter bar --- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* --- Grid --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

/* --- Project card --- */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.project-card.hidden { display: none; }

.project-card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 2.5rem;
  font-family: var(--font-head);
  font-weight: 800;
}

.project-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.project-card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.project-card__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}

.project-card__links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.project-link {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.project-link:hover {
  background: var(--accent);
  color: #fff;
}

.project-link--filled {
  background: var(--accent);
  color: #fff;
}

.project-link--filled:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* No results */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 0;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 1rem;
  display: none;
}

.no-results.visible { display: block; }

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