/**
 * Weather widget (sidebar carousel).
 */

.weather-widget {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 20px 18px 18px;
  border-radius: var(--card-radius);
  background: linear-gradient(160deg, var(--color-navy-950), var(--color-navy-850));
  color: var(--color-white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.weather-widget__slides {
  position: relative;
  flex: 1;
  min-height: 300px;
}

.weather-widget__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 380ms ease, visibility 380ms ease;
}

.weather-widget__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.weather-widget__city {
  margin: 0 0 10px;
  font-size: var(--font-size-sm);
  font-weight: 900;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.88);
}

.weather-widget__current {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.weather-widget__icon {
  font-size: 2.4rem;
  line-height: 1;
}

.weather-widget__temp {
  margin: 0;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.weather-widget__temp span {
  font-size: 1.4rem;
  font-weight: 700;
}

.weather-widget__stats {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.weather-widget__stats li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.82);
}

.weather-widget__stats strong {
  color: var(--color-white);
  font-weight: 800;
}

.weather-widget__forecast {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.weather-widget__forecast-day {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.88);
}

.weather-widget__forecast-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.weather-widget__forecast-temp {
  font-weight: 700;
}

.weather-widget__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 8px 0 14px;
}

.weather-widget__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.weather-widget__dot.is-active {
  background: var(--color-blue-400);
}

.weather-widget__cta {
  width: 100%;
  margin-top: auto;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.weather-widget__cta:hover {
  color: var(--color-white);
}
