/* ==========================================================================
   Zeon OS - WEATHER APP STYLES
   ========================================================================== */

.weather-app {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #14213d;
  color: #ffffff;
  font-family: var(--font-sans);
  overflow: hidden;
  position: relative;
  transition: background 0.5s ease;
}

/* Atmospheric weather dynamic backgrounds */
.weather-app.weather-bg-sunny {
  background: #1d5f8a;
}

.weather-app.weather-bg-night {
  background: #0a1120;
}

.weather-app.weather-bg-cloudy {
  background: #3a4658;
}

.weather-app.weather-bg-rain {
  background: #2b394b;
}

.weather-app.weather-bg-storm {
  background: #1c2340;
}

.weather-app.weather-bg-snow {
  background: #4b5b6e;
}

/* Header & Controls */
.weather-header {
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  z-index: 10;
}

.weather-search-wrapper {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.weather-search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 6px 14px 6px 34px;
  color: #ffffff;
  font-size: 12.5px;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.weather-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.weather-search-input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.weather-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  display: flex;
}

/* Search Dropdown Results */
.weather-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.weather-search-empty {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.weather-empty-note {
  padding: 22px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.weather-search-item {
  padding: 9px 14px;
  font-size: 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s ease;
}

.weather-search-item:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
}

.weather-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.weather-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
}

.weather-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.weather-unit-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-full);
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-unit-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.weather-unit-btn.active {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Quick City Pills */
.weather-pills-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.weather-pills-bar::-webkit-scrollbar {
  display: none;
}

.weather-pill {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.weather-pill:hover, .weather-pill.active {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.5);
}

/* Scrollable Main Workspace */
.weather-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Hero Current Weather Section */
.weather-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
}

.weather-hero-left {
  display: flex;
  flex-direction: column;
}

.weather-city-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.weather-location-icon {
  width: 18px;
  height: 18px;
  color: #38bdf8;
}

.weather-local-date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.weather-temp-huge {
  font-size: 68px;
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1;
  margin: 12px 0 6px;
  display: flex;
  align-items: flex-start;
}

.weather-temp-deg {
  font-size: 32px;
  margin-top: 6px;
  font-weight: 400;
}

.weather-condition-label {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 8px;
}

.weather-hi-lo {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 4px;
}

.weather-hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.weather-hero-art {
  width: 110px;
  height: 110px;
  animation: weather-float 4s ease-in-out infinite alternate;
}

@keyframes weather-float {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-8px) scale(1.03); }
}

/* Glass Section Container */
.weather-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.weather-card-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 24-Hour Hourly Forecast Carousel */
.weather-hourly-track {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.weather-hour-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
  padding: 10px 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.15s ease;
}

.weather-hour-col:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.weather-hour-time {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.weather-hour-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
}

.weather-hour-temp {
  font-size: 14px;
  font-weight: 600;
}

.weather-hour-pop {
  font-size: 10px;
  color: #38bdf8;
  font-weight: 600;
  margin-top: 4px;
}

/* 7-Day Full Week Forecast */
.weather-week-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.weather-week-row {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.weather-week-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.weather-week-day {
  width: 80px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.weather-week-icon-box {
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.weather-week-icon {
  width: 22px;
  height: 22px;
}

.weather-week-desc {
  flex: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  margin-left: 10px;
}

.weather-week-pop {
  font-size: 11px;
  color: #38bdf8;
  font-weight: 600;
  width: 44px;
  text-align: right;
  margin-right: 14px;
}

.weather-week-range {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 170px;
}

.weather-week-min {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  width: 28px;
  text-align: right;
}

.weather-week-bar-bg {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.weather-week-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: #38bdf8;
}

.weather-week-max {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  width: 28px;
  text-align: left;
}

/* Meteorological Metric Grid */
.weather-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.weather-metric-tile {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}

.weather-metric-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.weather-metric-value {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.weather-metric-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}
