.lds-weather {
  --lds-green: #314d3e;
  --lds-green-2: #2f5d50;
  --lds-cream: #f6f4ee;
  --lds-line: rgba(49, 77, 62, .14);
  --lds-text: #26352d;
  --lds-muted: #6f7b74;
  margin: 34px 0;
  color: var(--lds-text);
}

.lds-weather * { box-sizing: border-box; }

.lds-weather__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.lds-weather__kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--lds-green-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lds-weather__heading h2 {
  margin: 0 0 6px;
  color: var(--lds-green);
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.06;
}

.lds-weather__heading p {
  max-width: 680px;
  margin: 0;
  color: var(--lds-muted);
  font-size: 15px;
}

.lds-weather__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.lds-weather--single .lds-weather__grid {
  grid-template-columns: minmax(0, 1fr);
}

.lds-weather-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lds-line);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(49, 77, 62, .08), transparent 34%),
    #fff;
  box-shadow: 0 12px 34px rgba(35, 54, 45, .08);
  padding: 24px;
}

.lds-weather-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.lds-weather-card__eyebrow {
  margin-bottom: 4px;
  color: var(--lds-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.lds-weather-card h3 {
  margin: 0;
  color: var(--lds-green);
  font-size: 26px;
  line-height: 1.1;
}

.lds-weather-card__status-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: var(--lds-cream);
  font-size: 30px;
}

.lds-weather-now {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0 20px;
}

.lds-weather-now__temp {
  color: var(--lds-green);
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
}

.lds-weather-now__temp span {
  margin-left: 3px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: top;
}

.lds-weather-now__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lds-weather-now__meta strong { font-size: 16px; }
.lds-weather-now__meta span { color: var(--lds-muted); font-size: 13px; }

.lds-weather-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--lds-line);
  border-bottom: 1px solid var(--lds-line);
}

.lds-weather-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(246, 244, 238, .72);
}

.lds-weather-metric__icon {
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.lds-weather-wind-arrow {
  color: var(--lds-green-2);
  font-size: 24px;
  font-weight: 900;
}

.lds-weather-metric div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.lds-weather-metric small {
  color: var(--lds-muted);
  font-size: 11px;
  line-height: 1.2;
}

.lds-weather-metric strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lds-weather-section-title {
  margin: 18px 0 10px;
  color: var(--lds-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lds-weather-hourly {
  display: grid;
  grid-template-columns: repeat(6, minmax(74px, 1fr));
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.lds-weather-hour {
  display: flex;
  min-width: 74px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: 1px solid var(--lds-line);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.lds-weather-hour time {
  color: var(--lds-muted);
  font-size: 11px;
  font-weight: 700;
}

.lds-weather-hour__icon { font-size: 19px; line-height: 1; }
.lds-weather-hour strong { color: var(--lds-green); font-size: 16px; }
.lds-weather-hour__rain,
.lds-weather-hour__wind { color: var(--lds-muted); font-size: 10px; }

.lds-weather-daily {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.lds-weather-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 10px 4px;
  border-radius: 12px;
  background: var(--lds-cream);
  text-align: center;
}

.lds-weather-day strong { color: var(--lds-green); font-size: 12px; }
.lds-weather-day__icon { font-size: 18px; line-height: 1; }
.lds-weather-day span:not(.lds-weather-day__icon) { font-size: 11px; font-weight: 700; }
.lds-weather-day small { color: var(--lds-muted); font-size: 10px; }

.lds-weather-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--lds-line);
  color: var(--lds-muted);
  font-size: 10px;
}

.lds-weather__attribution {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
  color: var(--lds-muted);
  font-size: 11px;
}

.lds-weather__attribution a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.lds-weather__attribution img {
  display: block;
  width: 110px;
  min-width: 110px;
  height: auto;
}

.lds-weather-error {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid #e6c7c7;
  border-radius: 12px;
  background: #fff5f5;
  color: #7b2f2f;
}

@media (min-width: 961px) {
  .lds-weather--single,
  .lds-weather--single .lds-weather__grid,
  .lds-weather--single .lds-weather-card {
    width: 100%;
    max-width: none;
  }

  .lds-weather--single .lds-weather__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lds-weather--single .lds-weather-card {
    padding: 28px;
  }

  .lds-weather--single .lds-weather-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lds-weather--single .lds-weather-hourly {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow-x: visible;
  }

  .lds-weather--single .lds-weather-hour {
    min-width: 0;
  }

  .lds-weather--single .lds-weather-daily {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow: visible;
  }
}

@media (max-width: 960px) {
  .lds-weather__grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .lds-weather { margin: 24px 0; }
  .lds-weather__heading { margin-bottom: 16px; }
  .lds-weather__heading h2 { font-size: 34px; }
  .lds-weather__heading p { font-size: 14px; }
  .lds-weather-card { padding: 18px; border-radius: 18px; }
  .lds-weather-card h3 { font-size: 23px; }
  .lds-weather-card__status-icon { width: 46px; height: 46px; font-size: 26px; }
  .lds-weather-now { margin: 18px 0 16px; }
  .lds-weather-now__temp { font-size: 52px; }
  .lds-weather-metrics { grid-template-columns: 1fr 1fr; }
  .lds-weather-hourly { grid-template-columns: repeat(6, 82px); }
  .lds-weather-daily { grid-template-columns: repeat(5, 78px); overflow-x: auto; padding-bottom: 4px; }
  .lds-weather-card__footer { flex-direction: column; gap: 3px; }
  .lds-weather__attribution { justify-content: flex-start; }
}

@media (max-width: 420px) {
  .lds-weather-metrics { grid-template-columns: 1fr; }
}

/* Povećana čitljivost weather widgeta za starije članove */
.lds-weather {
  --lds-muted: #4f5f56;
  --lds-text: #203128;
}
.lds-weather__kicker { font-size: 15px; }
.lds-weather__heading h2 { font-size: clamp(34px, calc(3.5vw + 3px), 52px); }
.lds-weather__heading p { font-size: 18px; color: #4f5f56; }
.lds-weather-card__eyebrow { font-size: 15px; color: #4f5f56; }
.lds-weather-card h3 { font-size: 30px; }
.lds-weather-now__temp { font-size: 62px; }
.lds-weather-now__temp span { font-size: 26px; }
.lds-weather-now__meta strong { font-size: 20px; }
.lds-weather-now__meta span { font-size: 17px; color: #4f5f56; }
.lds-weather-metric small { font-size: 14px; color: #4f5f56; }
.lds-weather-metric strong { font-size: 17px; }
.lds-weather-section-title { font-size: 15px; }
.lds-weather-hour time { font-size: 15px; color: #4f5f56; }
.lds-weather-hour strong { font-size: 20px; }
.lds-weather-hour__rain,
.lds-weather-hour__wind { font-size: 14px; color: #4f5f56; }
.lds-weather-day strong { font-size: 16px; }
.lds-weather-day span:not(.lds-weather-day__icon) { font-size: 15px; }
.lds-weather-day small { font-size: 14px; color: #4f5f56; }
.lds-weather-card__footer { font-size: 14px; color: #4f5f56; }
.lds-weather__attribution { font-size: 14px; color: #4f5f56; }

@media (max-width: 767px) {
  .lds-weather__heading h2 { font-size: 38px; }
  .lds-weather__heading p { font-size: 17px; }
  .lds-weather-card h3 { font-size: 27px; }
  .lds-weather-now__temp { font-size: 56px; }
  .lds-weather-metric strong { font-size: 16px; }
  .lds-weather-hour time { font-size: 14px; }
  .lds-weather-hour strong { font-size: 19px; }
  .lds-weather-hour__rain,
  .lds-weather-hour__wind { font-size: 13px; }
  .lds-weather-day strong { font-size: 15px; }
  .lds-weather-day span:not(.lds-weather-day__icon) { font-size: 14px; }
  .lds-weather-day small { font-size: 13px; }
}
