/* Potions data management, parallel to awards */

.potions-list-view .potions-list,
.potions-public-bank-view .potions-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.potion-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(124, 115, 255, 0.2);
  border-radius: 8px;
  padding: 14px;
  transition: all 0.25s ease;
}

.potion-card:hover {
  border-color: rgba(124, 115, 255, 0.45);
  transform: translateY(-2px);
}

.potion-card.disabled {
  opacity: 0.55;
}

.potion-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.potion-thumb-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(124, 115, 255, 0.3);
}

.potion-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.potion-title-block {
  flex: 1;
  min-width: 0;
}

.potion-title-block h4 {
  margin: 0 0 6px 0;
  font-size: 15px;
  color: #fff;
  word-break: break-word;
}

.potion-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.potion-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.potion-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.potion-meta {
  font-size: 13px;
  margin-bottom: 6px;
}

.potion-gp {
  color: #fbbf24;
  font-weight: 600;
}

.potion-stock-summary {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
  margin-bottom: 6px;
}

.potion-spell-linked {
  font-size: 12px;
  color: #a5b4fc;
  margin-top: 4px;
}

/* Four stats (GP, level, charges, stock) - 2×2 grid so cards don't clip on narrow widths */
.damage-stats.potion-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.damage-stats.potion-stats .stat-item {
  font-size: 0.82em;
  gap: 4px;
  min-width: 0;
}

.damage-stats.potion-stats .stat-label {
  flex-shrink: 0;
}

.potions-create-view .potion-image-preview {
  width: 96px;
  height: 96px;
  border-radius: 8px;
  border: 2px dashed rgba(124, 115, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  background: rgba(124, 115, 255, 0.06);
}

.potions-create-view .potion-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.potions-create-view .potion-image-preview .fa-flask {
  font-size: 36px;
  color: rgba(124, 115, 255, 0.5);
}

.potion-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
}

.potion-grid-item {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 2px solid rgba(124, 115, 255, 0.25);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, transform 0.15s;
}

.potion-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.potion-grid-item:hover {
  border-color: rgba(124, 115, 255, 0.55);
}

.potion-grid-item.selected {
  border-color: #7c73ff;
  box-shadow: 0 0 0 2px rgba(124, 115, 255, 0.35);
}

.potion-grid-item.upload-item {
  border-style: dashed;
  color: #7c73ff;
  font-size: 22px;
}
