/* ─── Jämförelsegrid ─────────────────────────────────────────────────────────── */

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 600px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .vs-separator {
    justify-self: center;
  }
}

/* ─── Jämförelsekort ─────────────────────────────────────────────────────────── */

.comparison-card {
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 10px !important;
  transition:
    transform       0.15s ease,
    box-shadow      0.15s ease,
    border-color    0.15s ease,
    background-color 0.15s ease,
    opacity         0.15s ease;
  user-select: none;
  min-height: 160px;
  display: flex;
  flex-direction: column;
}

.comparison-card .card-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: hsl(171, 100%, 41%);
}

.comparison-card:focus-visible {
  outline: 3px solid hsl(171, 100%, 41%);
  outline-offset: 3px;
}

.comparison-card.is-chosen {
  background-color: hsl(141, 53%, 96%);
  border-color: hsl(141, 71%, 48%);
  transform: translateY(-2px);
}

.comparison-card.is-unchosen {
  opacity: 0.35;
}

.comparison-text {
  font-size: 1.15rem;
  line-height: 1.55;
  text-align: center;
  overflow-wrap: break-word;
  word-break: break-word;
}

.choose-label {
  justify-content: center !important;
  color: hsl(171, 100%, 29%);
  font-weight: 600;
  font-size: 0.9rem;
  gap: 0.4rem;
}

/* ─── VS-separator ───────────────────────────────────────────────────────────── */

.vs-separator {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: hsl(0, 0%, 88%);
  color: hsl(0, 0%, 35%);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* ─── Resultatlista ──────────────────────────────────────────────────────────── */

.result-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid hsl(0, 0%, 93%);
  transition: background-color 0.1s;
}

.result-row:last-child {
  border-bottom: none;
}

.result-row:hover {
  background-color: hsl(0, 0%, 98%);
}

.result-badge {
  min-width: 2.75rem;
  justify-content: center;
  flex-shrink: 0;
}

.result-label {
  font-size: 1rem;
  color: hsl(0, 0%, 21%);
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ─── Tangentbordsstilar ─────────────────────────────────────────────────────── */

kbd {
  display: inline-block;
  padding: 0.1em 0.45em;
  font-size: 0.82em;
  font-family: monospace;
  background-color: hsl(0, 0%, 96%);
  border: 1px solid hsl(0, 0%, 72%);
  border-radius: 4px;
  box-shadow: inset 0 -1px 0 hsl(0, 0%, 72%);
  color: hsl(0, 0%, 21%);
}
