/* CSS for Boost Cards */

.boost-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.boost-card {
  background-color: var(--color-card);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 220px;
  margin-bottom: 1rem;
}

.boost-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.boost-name {
  font-size: 1.1rem;
  margin: 0 0 0.75rem 0;
  color: var(--color-text);
  text-align: left;
}

.boost-image-container {
  position: relative;
  width: 100%;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem;
  overflow: hidden;
}

.boost-image-container img {
  max-width: 140px;
  max-height: 140px;
  width: 140px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.boost-image-fallback {
  width: 120px;
  height: 120px;
  background-color: var(--color-card-alt);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--color-text);
}

.boost-owned {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1rem;
}

/* Quantity inputs are now styled in the main style.css */

.boost-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.boost-stat-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.boost-stat-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.boost-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.boost-stat-icon:hover {
  transform: scale(1.1);
}

.boost-stat-icon i {
  font-size: 1.3rem;
}

/* Updated stat value color classes with the new specified colors */
.stat-value-blue {
  background-color: #32d9ff;
  color: white;
}

.stat-value-green {
  background-color: #4ae962;
  color: black; /* Changed to black for better contrast with light green */
}

.stat-value-yellow {
  background-color: #e5d32f;
  color: black;
}

.stat-value-orange {
  background-color: #df6e31;
  color: white;
}

.stat-value-red {
  background-color: #de3e39;
  color: white;
}

/* Custom stat icon styling for image-based icons */
.custom-stat-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  vertical-align: middle;
}

/* Adjust filter for icons on light backgrounds */
.stat-value-green .custom-stat-icon,
.stat-value-yellow .custom-stat-icon {
  filter: brightness(0); /* Keep black for green and yellow backgrounds */
}

.boost-stat-name {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.boost-stat-value {
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--color-text);
}

.boost-card .quantity-input {
  height: 28px !important; /* Smaller than the default 36px */
}

.boost-card .quantity-input button {
  width: 28px !important;
  height: 28px !important;
  font-size: 1rem !important;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boost-card .quantity-input input {
  height: 28px !important;
  font-size: 0.9rem !important;
}

/* Make boost cards a more consistent size */
.boost-card {
  height: auto;
  min-height: 400px;
  width: 200px;
  margin: 0 auto 1rem auto;
}