/* Runama Weather widget — standalone styles, layered on top of styles.css */
html, body.widget-body {
  margin: 0;
  background: transparent;
  min-height: auto;
}
.widget {
  margin: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
}
.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.widget-head .brand { font-size: 15px; gap: 7px; }
.widget-head .brand-logo { width: 22px; height: 22px; }
.widget-head .btn.icon-btn { padding: 7px 9px; font-size: 14px; }

.widget-state {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 4px;
  color: var(--text-muted);
  font-size: 13.5px;
}
#widgetError.widget-state { color: var(--warn-text); }

.widget .place { font-size: 20px; }
.widget .tempRow { margin: 10px 0; gap: 14px; }
.widget .temp { font-size: 42px; }
.widget .icon { font-size: 38px; }
.widget-metrics { grid-template-columns: repeat(3, 1fr); }

.widget-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.widget-more {
  color: var(--primary-2);
  font-size: 12.5px;
  font-weight: 700;
}
.widget-more:hover, .widget-more:focus-visible { text-decoration: underline; }

#locMessage.loc-message { margin: 10px 0 0; font-size: 12px; }

/* ---- variant: minimal — a single-line clickable badge ---- */
html[data-widget-variant="minimal"] .widget { padding: 0; background: none; border: 0; box-shadow: none; max-width: 260px; }
html[data-widget-variant="minimal"] .widget-head { display: none; }
html[data-widget-variant="minimal"] .widget-state { padding: 8px 4px; font-size: 12px; }
.w-minimal {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--text); white-space: nowrap;
}
.w-minimal:hover, .w-minimal:focus-visible { border-color: var(--primary); }
.w-minimal-icon { font-size: 18px; }
.w-minimal-city { font-size: 13px; color: var(--text-muted); }
.w-minimal-temp { font-size: 15px; font-weight: 800; margin-inline-start: auto; }

/* ---- variant: compact — icon + temp + city, no metrics ---- */
html[data-widget-variant="compact"] .widget { max-width: 220px; padding: 16px; }
html[data-widget-variant="compact"] #widgetContent { text-align: center; }
.w-compact-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 2px; }
html[data-widget-variant="compact"] .temp { font-size: 34px; }
html[data-widget-variant="compact"] .icon { font-size: 30px; }
html[data-widget-variant="compact"] .place { font-size: 16px; }

/* ---- variant: forecast — current conditions + real 5-day strip ---- */
.w-forecast-strip { display: flex; gap: 7px; margin-top: 12px; }
.w-fday {
  flex: 1; text-align: center; padding: 8px 4px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line);
}
.w-fday span { display: block; font-size: 10.5px; color: var(--text-muted); }
.w-fday b { display: block; font-size: 17px; margin: 3px 0; }
.w-fday small { display: block; font-size: 10.5px; color: var(--text-muted); }
html[data-widget-variant="forecast"] .widget { max-width: 460px; }
