/* General wind direction card and its compass vane. Must load after summary-card.css. */

.summary-card--wind {
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, #edf6ff 0%, #dfeefb 100%);
  border-color: rgba(33, 75, 115, 0.22);
  color: #18314f;
}

.summary-card--wind strong {
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.wind-vane {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 4px 0 2px;
}

.wind-vane__ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(24, 49, 79, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.wind-vane__ring::before,
.wind-vane__ring::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 12px;
  background: rgba(31, 29, 26, 0.25);
  transform: translate(-50%, -50%);
}

.wind-vane__ring::before {
  transform: translate(-50%, -50%) rotate(0deg);
}

.wind-vane__ring::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.wind-vane__needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 24px;
  border-radius: 999px;
  background: rgba(24, 49, 79, 0.95);
  transform: translate(-50%, -90%) rotate(var(--wind-angle));
  transform-origin: center bottom;
}

.wind-vane__needle::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 12px solid rgba(24, 49, 79, 0.95);
  transform: translateX(-50%);
}

.wind-vane__center {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(24, 49, 79, 0.95);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.24);
}
