/* ─── SHARED COMPONENTS — PeptideIQ ──────────────────────────────────────── */
/* Cards, pills, check badge — used across homepage and article pages.        */

/* ─── ARTICLE CARDS ───────────────────────────────────────────────────────── */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.acard {
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: box-shadow var(--t-mid), transform var(--t-mid);
}
.acard:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.acard-img {
  height: 150px;
  position: relative;
  overflow: hidden;
}
.acard-imgbg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.acard-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 6px;
}
.acard-body { padding: 16px; }
.acard-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 10px;
  transition: color var(--t-fast);
}
.acard:hover .acard-title { color: var(--teal-link); }
.acard-meta {
  font-size: 12px;
  font-weight: 400;
  color: var(--light-muted);
}
.acard-meta span { display: block; }
.acard-reviewed {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
  margin-top: 8px;
}

/* Check circle */
.check {
  width: 14px;
  height: 14px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check svg { width: 8px; height: 8px; }

/* ─── PILL FILTERS ────────────────────────────────────────────────────────── */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.pill {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
  background: var(--white);
  border: 1.5px solid var(--pill-border);
  padding: 7px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pill:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-pale);
}
.pill.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* ─── RESPONSIVE CARDS ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: 1fr; }
}

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