/* card grid styles for project showcase */

#projects-container {
  padding: 22px 26px 28px;
}

.projects-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 18px;
  flex-wrap: wrap;
}

.projects-head p {
  margin: 0;
  font-size: 0.9em;
  color: var(--text-secondary);
}

.projects-head a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85em;
  font-weight: 600;
}

.projects-head a:hover {
  text-decoration: underline;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-panel);
  padding: 18px 20px;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
  background: #26262b;
}

.project-card:active {
  transform: translateY(0) scale(0.99);
}

.project-card.featured {
  grid-column: span 2;
  border-color: rgba(10, 132, 255, 0.4);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.8em;
  color: var(--text-secondary);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.featured-badge {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.project-card h2 {
  margin: 0 0 6px;
  font-size: 1.08em;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.project-card p {
  margin: 0 0 14px;
  font-size: 0.88em;
  line-height: 1.5;
  color: var(--text-secondary);
  flex: 1 1 auto;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.72em;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--hairline);
  color: var(--text);
}

.card-link {
  margin-top: 14px;
  font-size: 0.82em;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 860px) {
  #projects-container {
    padding: 16px 16px 24px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }
}
