/* ============================================================
   CLIMA — Widget Open-Meteo · Estilo editorial
   ============================================================ */

.weather-current-card {
  margin: var(--s5);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--text);
  color: #fdfaf3;
  padding: var(--s6) var(--s5);
  position: relative;
  border: 1px solid rgba(253,250,243,0.06);
}

.weather-current-card::before {
  content: '';
  position: absolute;
  top: -24px;
  right: -24px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(253,250,243,0.04);
}

.weather-city-name {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(253,250,243,0.55);
  margin-bottom: var(--s2);
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.weather-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--s4);
}

.weather-temp {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
}

.weather-temp-unit {
  font-size: 1.4rem;
  opacity: 0.6;
}

.weather-icon {
  font-size: 3rem;
  line-height: 1;
  opacity: 0.85;
}

.weather-desc {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(253,250,243,0.7);
  margin-bottom: var(--s4);
}

.weather-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  border-top: 1px solid rgba(253,250,243,0.1);
  padding-top: var(--s4);
}

.weather-detail-item { text-align: center; }

.weather-detail-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(253,250,243,0.45);
  margin-bottom: 2px;
}

.weather-detail-value {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
}

.weather-updated {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.1em;
  color: rgba(253,250,243,0.35);
  margin-top: var(--s3);
}

/* ----------------------------------------------------------
   PREVISÃO 7 DIAS
   ---------------------------------------------------------- */
.forecast-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text3);
  padding: var(--s4) var(--s5) var(--s2);
}

.forecast-list {
  margin: 0 var(--s5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.forecast-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-bottom: 1px solid var(--border);
}
.forecast-item:last-child { border-bottom: none; }

.forecast-day {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  min-width: 28px;
}

.forecast-icon { font-size: 1.1rem; flex-shrink: 0; }

.forecast-desc {
  font-size: 0.8rem;
  color: var(--text2);
  flex: 1;
}

.forecast-temps {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-serif);
}

.forecast-min { font-size: 0.82rem; color: var(--text3); }
.forecast-max { font-size: 0.95rem; color: var(--text); }

.forecast-rain {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: #5a8fc0;
  min-width: 28px;
  text-align: right;
}

.forecast-bar-wrap {
  width: 40px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.forecast-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #5a8fc0, var(--c-primary));
}

/* ----------------------------------------------------------
   CIDADE SELECTOR
   ---------------------------------------------------------- */
.weather-city-selector {
  display: flex;
  gap: var(--s2);
  padding: var(--s3) var(--s5);
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}
.weather-city-selector::-webkit-scrollbar { display: none; }

.weather-city-btn {
  padding: 5px var(--s3);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--t-fast);
  background: var(--bg);
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: var(--s1);
  -webkit-tap-highlight-color: transparent;
}
.weather-city-btn.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--bg);
}

/* ----------------------------------------------------------
   OFFLINE
   ---------------------------------------------------------- */
.weather-offline {
  text-align: center;
  padding: var(--s8) var(--s4);
  color: var(--text3);
}
.weather-offline-icon { font-size: 2.5rem; margin-bottom: var(--s3); opacity: 0.3; }
.weather-offline-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
}
