/* Model Assets Index Page */
.model-assets-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.model-assets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.model-assets-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Filters */
.model-assets-filters {
  background: var(--background-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.filter-form {
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 180px;
}

.filter-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.filter-select {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--background-primary);
  color: var(--text-primary);
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: end;
}

/* Model Assets Table */
.model-assets-table {
  width: 100%;
  background: var(--background-secondary);
  border-radius: 8px;
  overflow: hidden;
}

.model-link {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 500;
}

.model-link:hover {
  text-decoration: underline;
}

.download-indicator {
  margin-left: 0.5rem;
  font-size: 0.875rem;
}

/* Model Asset Show Page */
.model-asset-show-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.model-asset-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.model-asset-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.info-card {
  background: var(--background-secondary);
  padding: 1.5rem;
  border-radius: 8px;
}

.card-title {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.info-value {
  font-size: 1rem;
  color: var(--text-primary);
}

.locations-table,
.workflows-table {
  width: 100%;
  margin-top: 1rem;
}

.locations-table th,
.workflows-table th {
  text-align: left;
  padding: 0.75rem;
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
  color: var(--text-secondary);
}

.locations-table td,
.workflows-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.source-urls-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
}

.source-urls-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.source-urls-list li:last-child {
  border-bottom: none;
}

.source-url-link {
  color: var(--link-color);
  text-decoration: none;
  word-break: break-all;
}

.source-url-link:hover {
  text-decoration: underline;
}

.code-block {
  background: var(--background-primary);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.875rem;
  margin-top: 1rem;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  background: var(--background-secondary);
  border-radius: 8px;
}

.empty-state p {
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .model-assets-container,
  .model-asset-show-container {
    padding: 1rem;
  }

  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group {
    width: 100%;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}
