/* sets.css – set completion boxes */

html, body {
  background: #0f172a;
  margin: 0;
  min-height: 100%;
}

.sets-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.2rem;
  box-sizing: border-box;
}

header h1, .sets-page h2 {
  color: #f8fafc;
  text-align: center;
}
.sets-page h2 {
  margin-bottom: 0.3rem;
}

.sets-note {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 1rem;
}

#set-filter {
  width: min(520px, 100%);
  display: block;
  margin: 0 auto 1rem;
  padding: 0.8rem 1rem;
  border-radius: 9999px;
  border: 1px solid #475569;
  background: #111827;
  color: #e2e8f0;
  font-size: 16px;
}

.set-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.set-box.open {
  grid-column: 1 / -1;
}

.set-box {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 14px;
  overflow: hidden;
}

.set-summary {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #e2e8f0;
  border: 0;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.set-summary strong {
  display: block;
  font-size: 1.05rem;
}

.set-summary small {
  color: #94a3b8;
}

.set-counts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.count-pill {
  background: #0f172a;
  border-radius: 9999px;
  padding: 6px 10px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.set-cards {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  padding: 0 12px 14px;
}

.set-box.open .set-cards {
  display: grid;
}

.set-card {
  background: #111827;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
}

.set-card.missing {
  opacity: 0.45;
  filter: grayscale(0.35);
}

.set-card img {
  width: 100%;
  aspect-ratio: 59 / 86;
  object-fit: cover;
  border-radius: 8px;
  background: #000;
}

.set-card p {
  margin: 6px 0 0;
  font-size: 0.82rem;
}

.set-card span {
  display: block;
  color: #94a3b8;
  font-size: 0.75rem;
}

@media (max-width: 700px) {
  .set-list { grid-template-columns: 1fr; }
  .set-summary { align-items: flex-start; flex-direction: column; }
  .set-counts { justify-content: flex-start; }
  .set-cards { grid-template-columns: repeat(2, 1fr); }
}

.change-set {
  display: inline-block;
  margin: 0 12px 10px;
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 16px;
}
.set-chooser { margin: 0 12px 12px; background: #111827; border: 1px solid #94a3b8; border-radius: 10px; padding: 10px; }
.set-chooser input { width: 100%; box-sizing: border-box; font-size: 16px; padding: 10px; border-radius: 8px; border: 1px solid #94a3b8; background: #0f172a; color: #f8fafc; }
.set-chooser-list { max-height: 240px; overflow: auto; }
.set-choice { display: block; width: 100%; text-align: left; background: #1e293b; color: #f8fafc; border: 0; border-radius: 8px; padding: 10px; margin-top: 6px; font-size: 16px; }
.set-choice.active { outline: 2px solid #60a5fa; }
