/* Trumpfheller Weather Widget styles — scoped under .tww-widget to avoid theme conflicts.
   Fixed, high-contrast light palette (not tied to OS dark-mode) so it stays readable
   regardless of the visitor's system theme or the surrounding page background. */
.tww-widget {
  --tww-bg: #eef3fa;
  --tww-card-bg: #ffffff;
  --tww-text: #16202c;
  --tww-subtext: #46525f;
  --tww-border: #d7e0ea;
  --tww-accent: #2f6fb5;
  --tww-accent-color: #2f6fb5;
  --tww-shadow: 0 1px 3px rgba(16,24,40,0.08), 0 6px 18px rgba(16,24,40,0.06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  font-size: 14px;
  line-height: 1.4;
  color: var(--tww-text) !important;
  background: var(--tww-bg);
  padding: 16px;
  border-radius: 12px;
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
}
.tww-widget,
.tww-widget * {
  box-sizing: border-box;
  border: none;
  box-shadow: none;
  background-image: none;
  text-decoration: none;
  list-style: none;
}
.tww-widget .tww-app {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 0 auto;
}

.tww-widget .tww-search-row { display: flex; gap: 6px; text-align: left; }
.tww-widget .tww-city-input {
  flex: 1; padding: 7px 10px; border-radius: 8px;
  border: 1px solid var(--tww-border) !important; background: var(--tww-card-bg);
  color: var(--tww-text); font-size: 13px; outline: none; min-width: 0;
}
.tww-widget .tww-city-input:focus { border-color: var(--tww-accent) !important; }
.tww-widget .tww-search-btn {
  padding: 7px 12px; border-radius: 8px; border: none;
  background: var(--tww-accent); color: #fff; font-size: 13px;
  cursor: pointer; white-space: nowrap;
}
.tww-widget .tww-search-btn:hover { filter: brightness(1.08); }
.tww-widget .tww-search-btn:active { filter: brightness(0.95); }

.tww-widget .tww-status { font-size: 11px; color: var(--tww-subtext); min-height: 14px; }
.tww-widget .tww-status.tww-error { color: #d9534f; }

.tww-widget .tww-current-card {
  background: var(--tww-card-bg); border-radius: 14px; padding: 16px 14px;
  box-shadow: var(--tww-shadow) !important; text-align: center;
  border-top: 4px solid var(--tww-accent) !important;
}
.tww-widget .tww-city-name { font-size: 15px; font-weight: 600; }
.tww-widget .tww-date-line { font-size: 11px; color: var(--tww-subtext); margin-top: 2px; }
.tww-widget .tww-icon { font-size: 38px; margin: 8px 0 2px; }
.tww-widget .tww-temp { font-size: 32px; font-weight: 700; line-height: 1; }
.tww-widget .tww-desc { margin-top: 4px; color: var(--tww-subtext); font-size: 12px; }
.tww-widget .tww-meta {
  display: flex; justify-content: center; gap: 12px; margin-top: 10px;
  font-size: 11px; color: var(--tww-subtext);
}

.tww-widget .tww-forecast { display: flex; flex-direction: column; gap: 8px; }
.tww-widget .tww-forecast h2 {
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  margin: 2px 2px 4px !important;
  padding: 0 !important;
  color: var(--tww-subtext) !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block !important;
  width: auto !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  text-align: center !important;
}
.tww-widget .tww-day-card {
  background: var(--tww-card-bg); border-radius: 10px; padding: 8px 10px;
  display: flex; align-items: center; gap: 8px; box-shadow: var(--tww-shadow) !important;
  border-left: 3px solid var(--tww-accent-color) !important;
  text-align: left;
}
.tww-widget .tww-day-name { width: 40px; font-weight: 600; font-size: 12px; flex-shrink: 0; color: var(--tww-text); }
.tww-widget .tww-day-icon { font-size: 18px; width: 22px; text-align: center; flex-shrink: 0; }
.tww-widget .tww-day-desc {
  flex: 1; font-size: 11px; color: var(--tww-subtext);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tww-widget .tww-day-temps { font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--tww-text); }
.tww-widget .tww-day-temps .tww-lo { color: var(--tww-subtext); font-weight: 500; margin-left: 4px; }

.tww-widget footer {
  display: block !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  text-align: center;
  font-size: 10px;
  color: var(--tww-subtext);
  margin-top: 2px;
}
