@charset "utf-8";

.weather-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: weatherFadeIn 0.25s ease;
}

@keyframes weatherFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes weatherSlideIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.weather-popup {
  background: rgba(20, 20, 40, 0.88);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 28px 30px 24px;
  width: 400px;
  max-width: 92vw;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: weatherSlideIn 0.3s ease;
  color: #fff;
  position: relative;
}

.weather-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: color 0.2s;
}

.weather-popup-close:hover {
  color: #fff;
}

.weather-current {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.weather-current-icon {
  font-size: 2.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.weather-current-icon.sunny { color: #ffb74d; }
.weather-current-icon.cloudy { color: #b0bec5; }
.weather-current-icon.rainy { color: #64b5f6; }
.weather-current-icon.snowy { color: #e0e0e0; }
.weather-current-icon.foggy { color: #9e9e9e; }

.weather-current-body {
  flex: 1;
  min-width: 0;
}

.weather-current-city {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.weather-current-city i {
  font-size: 0.65rem;
}

.weather-current-cond {
  font-size: 1.2rem;
  font-weight: 600;
}

.weather-current-temp {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
}

.weather-current-meta {
  display: flex;
  gap: 14px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.weather-current-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.weather-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 18px;
}

.weather-forecast-title {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.weather-forecast {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.weather-day {
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 4px;
  transition: background 0.2s;
}

.weather-day:hover {
  background: rgba(255, 255, 255, 0.12);
}

.weather-day-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.weather-day-icon {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.weather-day-icon.sunny { color: #ffb74d; }
.weather-day-icon.cloudy { color: #b0bec5; }
.weather-day-icon.rainy { color: #64b5f6; }
.weather-day-icon.snowy { color: #e0e0e0; }
.weather-day-icon.foggy { color: #9e9e9e; }

.weather-day-desc {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weather-day-hilo {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}

.weather-day-hilo .hi {
  color: #ff8a65;
}

.weather-day-hilo .lo {
  color: #64b5f6;
  margin-left: 4px;
}

@media (max-width: 480px) {
  .weather-popup {
    padding: 22px 18px 18px;
    width: 96vw;
    border-radius: 14px;
  }

  .weather-current-icon {
    font-size: 2rem;
  }

  .weather-current-temp {
    font-size: 2.2rem;
  }

  .weather-forecast {
    gap: 4px;
  }

  .weather-day {
    padding: 8px 2px;
  }
}
