/* ── GPU Comparator ── */

/* ── Slot bar ── */

.gpu-compare-slots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.gpu-compare-slot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.gpu-compare-slot select {
  appearance: none;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border: 1px solid rgba(128, 128, 128, 0.3);
  border-radius: 4px;
  background-color: var(--md-default-bg-color);
  color: var(--md-typeset-color);
  cursor: pointer;
  min-width: 200px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  transition: border-color 0.15s;
}

.gpu-compare-slot select:hover {
  border-color: rgba(128, 128, 128, 0.6);
}

.gpu-compare-slot select:focus {
  outline: none;
  border-color: var(--md-accent-fg-color);
}

.gpu-compare-remove {
  appearance: none;
  border: none;
  background: none;
  color: rgba(128, 128, 128, 0.5);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  line-height: 1;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}

.gpu-compare-remove:hover {
  color: var(--md-typeset-color);
  background: rgba(128, 128, 128, 0.1);
}

.gpu-compare-add {
  appearance: none;
  border: 1px dashed rgba(128, 128, 128, 0.3);
  background: none;
  color: rgba(128, 128, 128, 0.6);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  transition: color 0.15s, border-color 0.15s;
}

.gpu-compare-add:hover {
  color: var(--md-typeset-color);
  border-color: rgba(128, 128, 128, 0.6);
}

/* ── Charts ── */

.gpu-compare-charts {
  margin-bottom: 2rem;
  max-width: 100%;
  overflow: hidden;
}

.gpu-charts-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.gpu-chart-container {
  border: 1px solid rgba(128, 128, 128, 0.15);
  border-radius: 6px;
  padding: 1rem;
  min-height: 280px;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.gpu-chart-container canvas {
  max-height: 320px;
}

/* ── Comparison table ── */

.gpu-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.gpu-compare-table th,
.gpu-compare-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(128, 128, 128, 0.15);
}

.gpu-compare-table th {
  font-weight: 600;
  white-space: nowrap;
  color: rgba(128, 128, 128, 0.7);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gpu-compare-table th.gpu-name-header {
  color: var(--md-typeset-color);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: normal;
}

.gpu-compare-table tr:last-child td,
.gpu-compare-table tr:last-child th {
  border-bottom: none;
}

.gpu-compare-table td.gpu-compare-label {
  color: rgba(128, 128, 128, 0.7);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-weight: 600;
}

/* Winner highlight */
.gpu-compare-table td.gpu-compare-best {
  font-weight: 700;
  background: var(--md-accent-fg-color--transparent);
  border-radius: 2px;
}

/* No data */
.gpu-compare-table td.gpu-compare-na {
  color: rgba(128, 128, 128, 0.4);
}

/* ── Single GPU card ── */

.gpu-compare-card {
  border: 1px solid rgba(128, 128, 128, 0.2);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  max-width: 360px;
}

.gpu-compare-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
}

.gpu-compare-card-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.1);
  font-size: 0.8rem;
}

.gpu-compare-card-row:last-child {
  border-bottom: none;
}

.gpu-compare-card-label {
  color: rgba(128, 128, 128, 0.7);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gpu-compare-card-value {
  font-weight: 600;
}

/* ── Empty state ── */

.gpu-compare-empty {
  color: rgba(128, 128, 128, 0.5);
  font-size: 0.8rem;
  font-style: italic;
  padding: 1rem 0;
}

/* ── Responsive ── */

.gpu-compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

