/* Comparison pages (S3-2 of the SEO indexing audit): include/vsVerdict.php */

.vsv {
  position: relative;
  background:
    radial-gradient(620px 400px at 12% 20%, rgba(183, 33, 255, 0.07), transparent 70%),
    radial-gradient(620px 400px at 90% 80%, rgba(33, 212, 253, 0.09), transparent 70%),
    linear-gradient(180deg, #fff 0%, #fbf8fe 100%);
}

.vsv-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.vsv .section-header {
  max-width: 760px;
}

/* Scorecard */
.vsv-card {
  max-width: 880px;
  margin: 0 auto;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(22, 19, 28, 0.04), 0 40px 80px -44px rgba(76, 29, 149, 0.45);
  overflow: hidden;
}

.vsv-score {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 26px 36px;
  background:
    radial-gradient(360px 160px at 18% 0%, rgba(183, 33, 255, 0.45), transparent 70%),
    radial-gradient(360px 160px at 82% 100%, rgba(33, 212, 253, 0.25), transparent 70%),
    #16131c;
  color: #fff;
}

.vsv-score__side {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.vsv-score__side--them {
  justify-content: flex-end;
}

.vsv-score__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.vsv-score__num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.vsv-score__side--jmm .vsv-score__num {
  background: linear-gradient(135deg, #d98bff, #6fe3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vsv-score__side--them .vsv-score__num {
  color: rgba(255, 255, 255, 0.55);
}

.vsv-score__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.vsv-score__dash {
  font-size: 1.75rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
}

.vsv-score__ties {
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.75);
}

.vsv-table {
  width: 100%;
  border-collapse: collapse;
}

.vsv-table thead th {
  padding: 18px 20px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: start;
  color: var(--color-text-muted);
}

.vsv-table thead th:nth-child(2) {
  color: var(--color-primary);
}

.vsv-row th,
.vsv-cell {
  padding: 16px 20px;
  border-top: 1px solid #f0edf4;
  text-align: start;
  vertical-align: middle;
}

.vsv-row th {
  width: 38%;
  padding-inline-start: 36px;
  font-weight: 600;
  color: var(--color-text);
}

/* Label and "Tie" chip on one line, the chip at the column's end */
.vsv-row th .vsv-th {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vsv-table thead td {
  padding-inline-start: 36px;
}

.vsv-cell {
  width: 31%;
  color: var(--color-text-muted);
}

.vsv-cell:last-child {
  padding-inline-end: 36px;
}

.vsv-cell.is-win {
  font-weight: 600;
  color: var(--color-text);
}

.vsv-cell--jmm.is-win {
  background: linear-gradient(90deg, rgba(183, 33, 255, 0.07), rgba(33, 212, 253, 0.07));
}

.vsv-win {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-inline-start: 10px;
  border-radius: 50%;
  background: var(--gradient-primary);
  vertical-align: -5px;
}

.vsv-cell--them .vsv-win {
  background: #6b7280;
}

.vsv-win svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsv-tie {
  flex: none;
  padding: 2px 8px;
  border-radius: 100px;
  background: #f3f1f6;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 1px;
  color: var(--color-text-muted);
}

/* Pick cards */
.vsv-picks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: start;
  max-width: 880px;
  margin: 32px auto 0;
}

.vsv-pick {
  position: relative;
  padding: 30px 30px 32px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
}

.vsv-pick--jmm {
  border-color: transparent;
  background: #fff;
  box-shadow: 0 30px 60px -34px rgba(183, 33, 255, 0.5);
}

.vsv-pick--jmm::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 2px;
  border-radius: 25px;
  background: var(--gradient-primary);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.vsv-pick__badge {
  position: absolute;
  top: -13px;
  inset-inline-start: 28px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vsv-pick__title {
  margin-bottom: 18px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.vsv-pick__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vsv-pick__list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  line-height: 1.5;
  color: var(--color-text);
}

.vsv-pick__list svg {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: #eceaf0;
  fill: none;
  stroke: #6b7280;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vsv-pick--jmm .vsv-pick__list svg {
  background: var(--gradient-primary);
  stroke: #fff;
}

.vsv-pick__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 26px;
}

.vsv-pick__note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

@media (max-width: 760px) {
  .vsv-score {
    padding: 22px 20px;
    gap: 12px;
  }

  .vsv-score__side {
    flex-direction: column;
    gap: 6px;
  }

  .vsv-score__side--them {
    flex-direction: column-reverse;
  }

  .vsv-score__name {
    font-size: 0.8125rem;
    text-align: center;
  }

  .vsv-score__num {
    font-size: 2.5rem;
  }

  /* Rows stack: the point on top, both answers side by side below */
  .vsv-table thead {
    display: none;
  }

  .vsv-table,
  .vsv-table tbody {
    display: block;
  }

  .vsv-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    border-top: 1px solid #f0edf4;
  }

  .vsv-row th {
    grid-column: 1 / -1;
    width: auto;
    padding: 16px 20px 8px;
    border-top: 0;
  }

  .vsv-cell,
  .vsv-cell:last-child {
    width: auto;
    padding: 10px 20px 16px;
    border-top: 0;
    font-size: 0.9375rem;
  }

  .vsv-cell::before {
    content: attr(data-side);
    display: block;
    margin-bottom: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-light);
  }

  .vsv-cell--jmm::before {
    color: var(--color-primary);
  }

  .vsv-cell--jmm.is-win {
    border-radius: 0 14px 14px 0;
  }

  [dir="rtl"] .vsv-cell--jmm.is-win {
    border-radius: 14px 0 0 14px;
  }

  .vsv-picks {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .vsv-pick {
    padding: 28px 22px 26px;
  }
}
