/* filter.css */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin: 2rem 0;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: var(--accent);
  color: #0a192f;
}

.filter-btn.active {
  background: var(--accent);
  color: #0a192f;
  box-shadow: 0 5px 15px rgba(100,255,218,0.4);
}

/* One card per line, full width, rectangle */
main {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

article {
  width: 100%;
  border-radius: 8px; /* rectangle — small radius */
  will-change: transform, opacity;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

/* Hide: collapse without shifting siblings */
article.hide {
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  pointer-events: none;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

article.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  height: auto;
  overflow: visible;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}