/* Image Optimizer spezifische Styles */

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.summary-card .number {
  font-size: 2rem;
  font-weight: bold;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.summary-card .label {
  font-size: 0.9rem;
  color: #666;
}

.summary-card.warning .number {
  color: #f59e0b;
}

.summary-card.success .number {
  color: #10b981;
}

.images-table-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
}

.images-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.images-table thead {
  background: #f9fafb;
}

.images-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}

.images-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.images-table tr:last-child td {
  border-bottom: none;
}

.images-table tr:hover {
  background: #f9fafb;
}

.image-preview {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e0e0e0;
}

.image-url {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
  color: #666;
}

.image-url a {
  color: #2563eb;
  text-decoration: none;
}

.image-url a:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge.format {
  background: #dbeafe;
  color: #1e40af;
}

.badge.webp {
  background: #d1fae5;
  color: #065f46;
}

.badge.avif {
  background: #d1fae5;
  color: #065f46;
}

.badge.jpeg, .badge.png {
  background: #fee2e2;
  color: #991b1b;
}

.badge.cdn {
  background: #ddd6fe;
  color: #5b21b6;
}

.badge.lazy {
  background: #d1fae5;
  color: #065f46;
}

.issues-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.issues-list li {
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.issues-list .warning {
  background: #fef3c7;
  color: #92400e;
  border-left: 3px solid #f59e0b;
}

.issues-list .info {
  background: #dbeafe;
  color: #1e40af;
  border-left: 3px solid #3b82f6;
}

.file-size {
  font-weight: 600;
}

.file-size.large {
  color: #dc2626;
}

.file-size.medium {
  color: #f59e0b;
}

.file-size.small {
  color: #10b981;
}

.format-breakdown {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.format-item {
  background: #f3f4f6;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.format-item .format-name {
  font-weight: 600;
  color: #374151;
}

.format-item .format-count {
  color: #6b7280;
  margin-left: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .images-table {
    font-size: 0.85rem;
  }

  .images-table th,
  .images-table td {
    padding: 0.75rem;
  }

  .image-preview {
    width: 60px;
    height: 60px;
  }

  .image-url {
    max-width: 150px;
  }
}
