/* Generic List Page Styles */

.page-header {
  background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
  color: var(--white);
  padding: 60px 0;
}

.page-header h1 {
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: 12px;
}

.page-header p {
  font-size: 16px;
  color: #D1D5DB;
  max-width: 600px;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.list-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.list-card:hover {
  border-color: var(--im-teal);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.list-card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 24px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  min-height: 150px;
}

.list-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.list-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.list-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-light);
  flex-wrap: wrap;
  font-family: 'Roboto Mono', monospace;
}

.list-description {
  font-size: 13px;
  color: var(--ink-light);
  line-height: 1.5;
  margin: 0;
}

.list-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.loader {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-light);
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--paper);
  border-top-color: var(--im-teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--ink-light);
}

@media (max-width: 920px) {
  .list-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .list-grid {
    grid-template-columns: 1fr;
  }
}
