/* ============================================================
   SINGLE CELL COHORT CARDS
   Matches the vitessce portal index page aesthetic,
   adapted to sit inside the scrna.php omics page.
   ============================================================ */

/* Grid container */
.sc-cohort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 8px 0 24px;
}

/* Individual card */
.sc-cohort-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1.5px solid var(--card-border, #d0cce8);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.sc-cohort-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, #534AB7);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.sc-cohort-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
  border-color: var(--card-accent, #534AB7);
}

.sc-cohort-card:hover::before {
  opacity: 1;
}

/* Header row: badge + arrow */
.sc-cohort-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sc-cohort-card__badge {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--card-border, #d0cce8);
  background: var(--card-bg, #EEEDFE);
  color: var(--card-text, #26215C);
}

.sc-cohort-card__arrow {
  font-size: 16px;
  color: var(--card-accent, #534AB7);
  transition: transform 0.18s ease;
  line-height: 1;
}

.sc-cohort-card:hover .sc-cohort-card__arrow {
  transform: translateX(4px);
}

/* Title */
.sc-cohort-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--sc-text-dark, #1a2a3a);
  line-height: 1.25;
  margin: 0;
}

/* Description */
.sc-cohort-card__desc {
  font-size: 13px;
  color: #667788;
  line-height: 1.55;
  flex: 1;
  margin: 0;
}

/* Tag pills */
.sc-cohort-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.sc-cohort-card__tag {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--card-border, #d0cce8);
  background: var(--card-bg, #EEEDFE);
  color: var(--card-text, #26215C);
  letter-spacing: 0.04em;
}

/* Footer stats */
.sc-cohort-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0eef8;
  margin-top: auto;
}

.sc-cohort-card__stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sc-cohort-card__stat-value {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--sc-text-dark, #1a2a3a);
  line-height: 1;
}

.sc-cohort-card__stat-label {
  font-size: 10px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sc-cohort-card__divider {
  width: 1px;
  height: 22px;
  background: #f0eef8;
}

/* Section intro text above the grid */
.sc-singlecell-intro {
  font-size: 13px;
  color: #667788;
  margin-bottom: 4px;
  font-style: italic;
}

/* Loading skeleton */
.sc-cohort-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 8px 0 24px;
}

.sc-cohort-skeleton__card {
  height: 180px;
  border-radius: 14px;
  background: linear-gradient(90deg, #f0eef8 25%, #e8e5f5 50%, #f0eef8 75%);
  background-size: 200% 100%;
  animation: sc-shimmer 1.4s infinite;
  border: 1.5px solid #e8e5f5;
}

@keyframes sc-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
