/* ===== Lab (recipe cards) ===== */
.lab-group {
  margin-bottom: 18px;
}

.lab-group h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #ffeebb;
}

#view-lab .card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.hub-progress {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.recipe-card {
  display: flex;
  position: relative;
  background: linear-gradient(145deg, #1c2034 0%, #131625 100%);
  border: 1px solid #2a3048;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-base);
}

.recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.recipe-card.just-researched {
  animation: recipe-flash 0.9s ease both;
}

@keyframes recipe-flash {
  0% { box-shadow: 0 0 0 0 rgba(85,204,136,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(85,204,136,0); }
  100% { box-shadow: 0 0 0 0 rgba(85,204,136,0); }
}

.recipe-swatch {
  width: 72px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.10) 0%, transparent 55%),
    #0d101c;
  border-right: 2px dashed #2a3048;
}

.recipe-swatch::after {
  content: '';
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--recipe-color);
  box-shadow: 0 0 20px var(--recipe-color), inset 0 2px 4px rgba(255,255,255,0.25);
}

.recipe-main {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
}

.recipe-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.recipe-name {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.recipe-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.recipe-card.owned .recipe-status {
  background: rgba(85,204,136,0.14);
  color: var(--success);
  border: 1px solid rgba(85,204,136,0.38);
}

.recipe-card.locked .recipe-status {
  background: rgba(255,170,51,0.12);
  color: var(--accent);
  border: 1px solid rgba(255,170,51,0.35);
}

.recipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.recipe-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 10px;
  background: #0d101c;
  border: 1px solid #2a3048;
  color: #c4cadd;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.recipe-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: #a0a8c0;
  line-height: 1.45;
}

.recipe-research {
  margin-top: 4px;
  border-radius: 8px;
  font-weight: 700;
}

@media (max-width: 640px) {
  #view-lab .card-list { grid-template-columns: 1fr; }
  .recipe-card { flex-direction: column; }
  .recipe-swatch { width: 100%; height: 56px; border-right: none; border-bottom: 2px dashed #2a3048; }
}

