/* AI Recommendations Page Specific CSS - Text Visibility Fix */

/* Override any global styles that might conflict */
.price-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
  background: #f8fafc !important;
  padding: 8px;
  border-radius: 6px;
}

.price-item {
  text-align: center;
}

/* Fix for white text on light background issue */
.price-label {
  font-size: 0.75em;
  color: #374151 !important; /* Dark gray for good contrast */
  font-weight: 600;
  margin-bottom: 2px;
}

.price-value {
  font-size: 0.85em;
  font-weight: 700;
  color: #1F2937 !important; /* Darker gray for values */
}

/* Ensure other text elements have proper contrast */
.section-content {
  color: #FFFFFF !important;
  font-size: 0.8em;
  line-height: 1.4;
}

.section-title {
  font-weight: 600;
  color: #FFFFFF !important;
  font-size: 0.85em;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Ensure stock card backgrounds are dark enough */
.stock-card {
  background: #1A1A1D !important;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid #2D2D30;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Make sure company names are visible */
.company-name {
  color: #E5E7EB !important;
  font-size: 0.95em;
  margin-bottom: 12px;
  font-weight: 500;
}

/* Ensure stock symbols are visible */
.stock-symbol {
  font-size: 1.4em;
  font-weight: 700;
  color: #FFFFFF !important;
}

/* Additional safety overrides for any conflicting styles */
.price-info .price-label,
.price-info .price-value {
  background: transparent !important;
}

/* Hover states should maintain readability */
.stock-card:hover .price-label {
  color: #374151 !important;
}

.stock-card:hover .price-value {
  color: #1F2937 !important;
}

/* Mobile responsiveness for price info */
@media (max-width: 480px) {
  .price-info {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .price-label {
    color: #374151 !important;
  }

  .price-value {
    color: #1F2937 !important;
  }
}