/* dashboard/header-current.css — cabecera, toggles, clima actual, alertas */

.gw-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}
.gw-location {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gw-location-dot { color: var(--text-blue); font-size: 10px; }
.gw-location-text { font-weight: 500; }
.gw-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.gw-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background-color: #fbbc04;
}
.gw-status-dot.online   { background-color: #81c995; }
.gw-status-dot.offline  { background-color: #f28b82; }
.gw-status-dot.estimado { background-color: #fbbc04; }
.gw-last-update { font-size: 12px; color: var(--text-secondary); }

.gw-prefs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.gw-toggle-group {
  display: flex;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  overflow: hidden;
}
.gw-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-family: inherit;
  padding: 3px 9px;
  cursor: pointer;
  transition: all 0.2s;
}
.gw-toggle-btn.active {
  background: rgba(251,188,4,0.2);
  color: var(--tab-accent);
  font-weight: 500;
}

.gw-main-weather {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.gw-main-left { display: flex; align-items: center; gap: 12px; }
.gw-huge-icon { width: 76px; height: 76px; object-fit: contain; }
.gw-temp-box { display: flex; align-items: flex-start; }
.gw-temp-value {
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--temp-color);
  transition: color 1s ease;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.gw-temp-units {
  display: flex;
  margin-top: 10px;
  font-size: 15px;
  color: var(--text-secondary);
}
.gw-unit {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all 0.2s;
}
.gw-unit:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.gw-unit.active { color: var(--text-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.gw-unit-div { margin: 0 2px; color: var(--text-secondary); }

.gw-clock-widget {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  cursor: pointer;
  width: fit-content;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s;
}
.gw-clock-widget:hover { background: rgba(255,255,255,0.08); }
#gwClockTime { font-size: 14px; font-weight: 500; }
.gw-clock-fmt {
  font-size: 10px;
  color: var(--tab-accent);
  border: 1px solid var(--tab-accent);
  border-radius: 10px;
  padding: 1px 5px;
  font-weight: 500;
}
.gw-main-right { text-align: right; }
.gw-weather-title { font-size: 20px; font-weight: 400; margin-bottom: 4px; }
.gw-weather-desc { font-size: 15px; color: var(--text-secondary); }

.gw-alert-banner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.gw-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
}
.gw-alert.frio  { background: rgba(79,195,247,0.18); color: #4fc3f7; border: 1px solid rgba(79,195,247,0.4); }
.gw-alert.lluvia{ background: rgba(138,180,248,0.18); color: #8ab4f8; border: 1px solid rgba(138,180,248,0.4); }
.gw-alert.viento{ background: rgba(255,107,91,0.18); color: #ff6b5b; border: 1px solid rgba(255,107,91,0.4); }

.gw-details {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.8;
}
