/**
 * Collection List Header Styles
 * Material Design-inspired styling for enhanced list views
 *
 * Copyright (c) 2025 QwickApps.com. All rights reserved.
 */

.collection-list-header {
  padding: 0 1.5rem;
  margin-bottom: 1rem;
}

.collection-list-stats {
  padding: 0.875rem;
  border-radius: 6px;
  background: var(--theme-elevation-50);
  border: 1px solid var(--theme-elevation-200);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.625rem;
}

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: 4px;
  background: var(--theme-elevation-0);
  border: 1px solid var(--theme-elevation-200);
  transition: all 0.15s ease;
  cursor: default;
  min-height: 56px;
}

.stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.stat-card-primary {
  border-left: 4px solid var(--color-success-500);
  background: linear-gradient(135deg, var(--theme-elevation-0) 0%, var(--color-success-50) 100%);
}

.stat-card-success {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, var(--theme-elevation-0) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.stat-card-warning {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, var(--theme-elevation-0) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.stat-card-info {
  border-left: 4px solid #3b82f6;
  background: linear-gradient(135deg, var(--theme-elevation-0) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.stat-icon {
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.85;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--theme-text);
  opacity: 0.55;
  margin-bottom: 0.125rem;
  line-height: 1.2;
}

.stat-value {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--theme-text);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Dark mode adjustments */
html[data-theme='dark'] .collection-list-stats {
  background: var(--theme-elevation-100) !important;
  border-color: var(--theme-elevation-400) !important;
}

html[data-theme='dark'] .stat-card {
  background: var(--theme-elevation-50);
  border-color: var(--theme-elevation-400);
}

html[data-theme='dark'] .stat-card-primary {
  background: linear-gradient(135deg, var(--theme-elevation-50) 0%, rgba(0, 123, 255, 0.1) 100%);
}

html[data-theme='dark'] .stat-card-success {
  background: linear-gradient(135deg, var(--theme-elevation-50) 0%, rgba(16, 185, 129, 0.1) 100%);
}

html[data-theme='dark'] .stat-card-warning {
  background: linear-gradient(135deg, var(--theme-elevation-50) 0%, rgba(245, 158, 11, 0.1) 100%);
}

html[data-theme='dark'] .stat-card-info {
  background: linear-gradient(135deg, var(--theme-elevation-50) 0%, rgba(59, 130, 246, 0.1) 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .collection-list-header {
    padding: 0 1rem;
  }

  .collection-list-stats {
    padding: 0.75rem;
  }

  .stat-card {
    padding: 0.625rem 0.75rem;
    min-height: 52px;
  }

  .stat-icon {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.625rem;
  }

  .stat-value {
    font-size: 1.125rem;
  }
}
