/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Upload Badge Styles - Consistent across all upload listings */

.upload-badges,
.upload-metadata-badges,
.upload-all-badges {
  display: inline-flex;
  gap: 0.375rem;
  align-items: center;
  flex-wrap: wrap;
}

.upload-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  height: 20px; /* Smaller fixed height for consistency */
  white-space: nowrap;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

/* Origin badge colors */
.origin-badge.badge-plugin {
  background: #f3e8ff;
  color: #7c3aed;
  border-color: #e9d5ff;
}

.origin-badge.badge-file {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.origin-badge.badge-url {
  background: #dbeafe;
  color: #1e40af;
  border-color: #bfdbfe;
}

.origin-badge.badge-default {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

/* Category badge */
.category-badge {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

/* Quality badge colors */
.quality-badge.badge-quality-high {
  background: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}

.quality-badge.badge-quality-medium {
  background: #fed7aa;
  color: #9a3412;
  border-color: #fdba74;
}

.quality-badge.badge-quality-low {
  background: #fecaca;
  color: #991b1b;
  border-color: #fca5a5;
}

/* Stats badge */
.stats-badge {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

/* Hover effects */
.upload-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* No metadata placeholder */
.no-metadata {
  color: #d1d5db;
  font-size: 0.75rem;
}

/* Admin table badge styling - consistent with my_uploads */
.admin-table .upload-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  height: 18px;
  border-radius: 3px;
  border: 1px solid;
}

.admin-table .upload-badges,
.admin-table .upload-metadata-badges,
.admin-table .upload-all-badges {
  gap: 0.375rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .upload-badges,
  .upload-metadata-badges {
    gap: 0.25rem;
  }
  
  .upload-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    height: 22px;
  }
}
