/**
 * CHUNK 97C: Inventory-Aware UI Behaviors
 * 
 * Styles for inventory hints, badges, and validation alerts
 */

/* Inventory Empty Banner */
.inventory-empty-banner {
  background: rgba(191, 160, 90, 0.12); /* CHUNK 96: Gold-tinted background */
  border: 1px solid var(--bb-gold, rgba(191, 160, 90, 0.3));
  border-radius: 12px;
  padding: var(--space-md, 16px);
  margin-bottom: var(--space-lg, 24px);
  color: var(--bb-deep, #0F1118);
  font-size: var(--type-body-size, 1rem);
  text-align: center;
}

.inventory-empty-banner p {
  margin: 0;
  line-height: 1.5;
}

/* Strict Mode Validation Alert */
.inventory-strict-alert {
  background: rgba(232, 93, 117, 0.12); /* CHUNK 96: Rose-tinted background */
  border: 1px solid var(--bb-rose, rgba(232, 93, 117, 0.3));
  border-radius: 12px;
  padding: var(--space-md, 16px);
  margin-bottom: var(--space-lg, 24px);
  color: var(--bb-deep, #0F1118);
  font-size: var(--type-body-size, 1rem);
  font-weight: 500;
}

.inventory-strict-alert p {
  margin: 0;
  line-height: 1.5;
}

/* Spirit Detection Hint Box */
.inventory-spirit-hint {
  background: rgba(59, 130, 246, 0.12); /* Blue hint */
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: var(--space-md, 16px);
  margin-bottom: var(--space-lg, 24px);
  color: var(--bb-deep, #0F1118) !important; /* Ensure dark text for readability */
  font-size: var(--type-micro-size, 0.8125rem);
  line-height: 1.5;
}

.inventory-spirit-hint p {
  margin: 0;
  color: var(--bb-deep, #0F1118) !important; /* Override any lighter text colors */
}

.inventory-spirit-hint .bb-text-sm {
  color: var(--bb-deep, #0F1118) !important; /* Ensure bb-text-sm doesn't make it too light */
}

.inventory-spirit-hint strong {
  font-weight: 600;
  color: var(--bb-deep, #0F1118) !important; /* Ensure bold text is also dark */
}

/* Inventory-Aware Badge - FIX: Moved to top-right to avoid overlapping action buttons */
.inventory-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 500;
  position: absolute;
  top: 0.5rem; /* Position near top, below padding */
  right: 0.75rem; /* Small offset from edge */
  z-index: 1; /* Low z-index - don't interfere with buttons */
  pointer-events: none;
  opacity: 0.75;
  white-space: nowrap;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inventory-badge--aware {
  background: rgba(191, 160, 90, 0.15); /* CHUNK 96: Gold-tinted */
  color: var(--bb-deep, #0F1118);
  border: 1px solid var(--bb-gold, rgba(191, 160, 90, 0.3));
}

.inventory-badge--full-bar {
  background: rgba(148, 163, 184, 0.15); /* Neutral gray */
  color: var(--bb-deep, #0F1118);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .inventory-badge {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: var(--space-sm, 12px);
    display: inline-flex;
  }
}

/* Round card container needs relative positioning for badge */
.round-card,
.mocktail-builder-drink-card,
.start-from-scratch-drink-card {
  position: relative;
}
