/* History page — matching SPA style */

.history-header {
  padding: 32px var(--screen-padding) 6px;
}

.history-header h1 {
  font: var(--text-display);
  letter-spacing: -0.5px;
}

.history-header .text-secondary {
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-text-secondary);
  margin-top: 4px;
  font-weight: 400;
}

/* Loading shimmer */
.history-loading .shimmer-row {
  height: 64px;
  border-radius: var(--card-radius);
  margin-bottom: var(--card-gap);
  background: linear-gradient(90deg, var(--color-canvas) 25%, var(--color-border) 50%, var(--color-canvas) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .history-loading .shimmer-row {
    animation: none;
    background: var(--color-border);
  }
}

/* Scan row — card style matching SPA */
.history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  margin-bottom: var(--space-lg);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  min-height: 48px;
}

.history-row:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.history-row-score {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-surface);
}

.history-row-score span {
  font-weight: 700;
  font-size: var(--font-size-sm);
  line-height: 1;
}

.history-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.history-row-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-row-meta {
  font-size: 11px;
  color: var(--color-text-secondary);
}

.history-row-tier {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--badge-radius);
}

/* Empty state — matching SPA */
.history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px;
  color: var(--color-text-muted);
  gap: 6px;
}

.history-empty svg {
  opacity: 0.25;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
}

.history-empty p {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 6px;
}

.history-empty .text-muted {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Error state */
.history-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px;
  color: var(--color-text-secondary);
  gap: var(--space-md);
}

/* Load more */
.history-load-more {
  padding: var(--space-md) 0 var(--space-lg);
}
