/* Nice Day rating: top-of-page comparison and per-card badge */

.nice-day {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nice-day[hidden] {
  display: none;
}

.nd-title {
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

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

.nd-vs {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.nd-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  text-align: center;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.nd-side.winner {
  border-color: rgba(250, 204, 21, 0.6);
  background: rgba(250, 204, 21, 0.07);
  box-shadow: 0 0 28px rgba(250, 204, 21, 0.15);
}

.donut {
  position: relative;
  width: 124px;
  height: 124px;
}

.donut svg {
  width: 100%;
  height: 100%;
}

.donut-track {
  fill: none;
  stroke: var(--surface-strong);
  stroke-width: 10;
}

.donut-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dasharray 0.4s ease;
}

.donut-score {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  font-weight: 800;
}

.nd-name {
  margin-top: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.nd-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.nd-crown {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #facc15;
}

.factors {
  display: grid;
  gap: 0.2rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Tug-of-war bar: each side's share of the combined score */
.tug {
  display: flex;
  height: 14px;
  margin-top: 1.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface-strong);
}

.tug-seg {
  height: 100%;
  transition: width 0.4s ease;
}

.nd-verdict {
  margin: 0.9rem 0 0;
  text-align: center;
  font-weight: 600;
}

/* Badge on each location card */
.nice-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.6rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.25);
}

.nice-score {
  font-size: 0.95rem;
  font-weight: 800;
  color: #facc15;
}

@media (max-width: 560px) {
  .nd-versus {
    grid-template-columns: 1fr;
  }

  .nd-vs {
    justify-self: center;
  }
}
