/*
 * Collection card grid - card_collections/show and user_collections/show
 * Unowned cards faded; non-common cards get a subtle rarity-colored outline
 */

.collection-card {
  transition: opacity var(--transition-fast);
}

.collection-card--unowned {
  opacity: 0.4;
}

.collection-card--unowned:hover {
  opacity: 0.55;
}

/* Placeholder ? emoji for uncollected cards - slightly transparent */
.collection-card-emoji-unowned {
  opacity: 0.5;
}

/* Subtle colored outline on non-common cards (matches rarity) */
.collection-card--common {
  border-color: var(--border-primary);
}

.collection-card--uncommon {
  border-color: rgba(196, 196, 196, 0.6);
  box-shadow: 0 0 0 1px rgba(196, 196, 196, 0.4);
}

.collection-card--rare {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.35);
}

.collection-card--super_rare {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35);
}

.collection-card--legendary {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.35);
}

/* Rarity letter (C/U/R/S/L) in lower left of collection card */
.collection-card-rarity-letter {
  min-width: 1.25rem;
  padding: 0.1rem 0.25rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid currentColor;
}

/* Small dot when the viewer owns this card - bottom right of grid card */
.collection-card-you-own-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bs-success, #198754);
}

/* Stable width so Hide/Show unowned toggle doesn't resize the mystery card button */
.collection-mystery-btn {
  min-width: 12.5rem;
}
