/* ==========================================================================
   ldsmaps.org - Premium Weather & Meteorological Design System
   ========================================================================== */

:root {
  /* Dynamic Palette Tokens */
  --bg-dark: #070b14;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.75);
  --bg-card-inner: rgba(10, 16, 30, 0.45);
  
  --border-glass: rgba(255, 255, 255, 0.09);
  --border-glass-bright: rgba(56, 189, 248, 0.35);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-accent: #38bdf8;

  --accent-cyan: #38bdf8;
  --accent-blue: #0284c7;
  --accent-indigo: #6366f1;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  /* Atmospheric Theme Gradients (Overwritten dynamically by theme class) */
  --ambient-glow-1: rgba(2, 132, 199, 0.22);
  --ambient-glow-2: rgba(99, 102, 241, 0.18);
  --ambient-glow-3: rgba(56, 189, 248, 0.12);

  /* Elevation Shadows */
  --shadow-glass: 0 16px 36px -10px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border-glass);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.25);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Atmospheric Theme Modifiers */
body.theme-clear-day {
  --ambient-glow-1: rgba(14, 165, 233, 0.32);
  --ambient-glow-2: rgba(245, 158, 11, 0.22);
  --ambient-glow-3: rgba(56, 189, 248, 0.2);
}

body.theme-clear-night {
  --ambient-glow-1: rgba(99, 102, 241, 0.35);
  --ambient-glow-2: rgba(14, 165, 233, 0.25);
  --ambient-glow-3: rgba(168, 85, 247, 0.22);
}

body.theme-rain, body.theme-heavy-rain {
  --ambient-glow-1: rgba(2, 132, 199, 0.38);
  --ambient-glow-2: rgba(56, 189, 248, 0.28);
  --ambient-glow-3: rgba(99, 102, 241, 0.22);
}

body.theme-thunderstorm {
  --ambient-glow-1: rgba(168, 85, 247, 0.42);
  --ambient-glow-2: rgba(56, 189, 248, 0.28);
  --ambient-glow-3: rgba(245, 158, 11, 0.25);
}

body.theme-snow {
  --ambient-glow-1: rgba(56, 189, 248, 0.35);
  --ambient-glow-2: rgba(147, 197, 253, 0.3);
  --ambient-glow-3: rgba(99, 102, 241, 0.25);
}

body.theme-fog, body.theme-overcast, body.theme-cloudy-day, body.theme-cloudy-night {
  --ambient-glow-1: rgba(2, 132, 199, 0.32);
  --ambient-glow-2: rgba(99, 102, 241, 0.26);
  --ambient-glow-3: rgba(56, 189, 248, 0.22);
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  background-image: 
    radial-gradient(ellipse 900px 500px at 15% 10%, var(--ambient-glow-1), transparent),
    radial-gradient(ellipse 800px 600px at 85% 25%, var(--ambient-glow-2), transparent),
    radial-gradient(ellipse 1000px 700px at 50% 90%, var(--ambient-glow-3), transparent);
  background-attachment: fixed;
  transition: background-image 0.8s ease-in-out;
}

/* Subtle Starfield / Dust Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 189, 248, 0.5);
}

/* Common Glassmorphism Container */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  z-index: 1;
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

/* Header & Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 11, 20, 0.75);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.75rem 2rem;
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
  transition: opacity 0.2s;
}
.brand-link:hover {
  opacity: 0.9;
}
.brand-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

/* Header Live Clock & Meta */
.header-meta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.live-clock-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-glass);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
}
.clock-indicator-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.clock-time {
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}
.clock-date {
  color: var(--text-secondary);
  border-left: 1px solid var(--border-glass);
  padding-left: 0.6rem;
}

/* Metric / Imperial Toggle */
.unit-switcher {
  display: flex;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  padding: 3px;
}
.unit-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.unit-toggle-btn.active {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.4);
}

/* Global App Loading Line */
.app-progress-bar {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-indigo), transparent);
  background-size: 200% 100%;
  animation: loading-stream 1.4s infinite linear;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.app-progress-bar.visible {
  opacity: 1;
}
@keyframes loading-stream {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Main Container Layout */
.main-wrapper {
  max-width: 1440px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Severe Weather Advisory Alert */
.advisory-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.15), rgba(245, 158, 11, 0.15));
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  animation: slideDown 0.3s ease;
}
.advisory-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.advisory-icon {
  font-size: 1.3rem;
}
.advisory-title {
  font-weight: 700;
  color: #fca5a5;
  margin-right: 0.5rem;
}
.advisory-text {
  color: #e2e8f0;
  font-size: 0.9rem;
}
.advisory-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0 0.5rem;
  transition: color 0.2s;
}
.advisory-close:hover {
  color: #ffffff;
}

/* Search and Quick Cities Section */
.search-controls-bar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  padding: 0.5rem 0.75rem 0.5rem 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search-input-wrapper:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.search-magnifier-icon {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  margin-right: 0.75rem;
}
.search-magnifier-icon svg {
  width: 20px;
  height: 20px;
}

.city-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-family: var(--font-body);
}
.city-search-input::placeholder {
  color: var(--text-tertiary);
}

.search-action-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.search-action-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-locate-me {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 0.5rem;
}
.btn-locate-me:hover {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}
.btn-locate-me svg {
  width: 16px;
  height: 16px;
}

/* Search Autocomplete Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  z-index: 150;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}
.search-results-dropdown.visible {
  display: block;
}

.search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.15s ease;
}
.search-item:last-child {
  border-bottom: none;
}
.search-item:hover {
  background: rgba(56, 189, 248, 0.12);
}
.search-item-info {
  display: flex;
  flex-direction: column;
}
.search-item-title {
  font-weight: 600;
  color: #ffffff;
  font-size: 1rem;
}
.search-item-sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.search-item-coords {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.search-empty-msg {
  padding: 1.25rem;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

/* Quick City Chips & Bookmarks Bar */
.quick-and-favorites-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.quick-chips-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.chip-group-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  margin-right: 0.3rem;
}
.quick-city-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.quick-city-chip:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.favorites-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.favorites-pills-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.fav-pill-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #e0e7ff;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.fav-pill-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: #818cf8;
}
.fav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #818cf8;
}
.no-favs-msg {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ==========================================================================
   Dashboard Main Grid Layout
   ========================================================================== */
.weather-dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
}

@media (max-width: 1080px) {
  .weather-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.left-column-layout, .right-column-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Hero Weather Card */
.hero-weather-card {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.hero-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.hero-location-info {
  display: flex;
  flex-direction: column;
}
.hero-city-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: #ffffff;
}
.hero-country-sub {
  color: var(--accent-cyan);
  font-size: 1rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-condition-pill {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}
.btn-fav-star {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-fav-star:hover, .btn-fav-star.is-active {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.15);
}

/* Primary Temperature Row */
.hero-main-temp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.hero-temp-display {
  display: flex;
  align-items: flex-start;
}
.hero-temp-val {
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -2px;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-temp-unit {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-top: 0.5rem;
  margin-left: 0.2rem;
}

.hero-condition-center {
  display: flex;
  flex-direction: column;
}
.hero-condition-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}
.hero-feels-like {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}
.hero-high-low {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

.hero-weather-icon-slot {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}
.weather-icon-svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Atmospheric Metrics Grid
   ========================================================================== */
.metrics-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.35);
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
}
.metric-svg {
  width: 16px;
  height: 16px;
  color: var(--accent-cyan);
}

.metric-main-value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}
.metric-sub-text {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

/* Progress bar inside metric */
.metric-bar-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin-top: 0.6rem;
  overflow: hidden;
}
.metric-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* Compass Needle Widget */
.compass-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
.compass-dial-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.compass-arrow-pointer {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 12px solid #ef4444;
  position: absolute;
  top: 3px;
}

/* ==========================================================================
   24-Hour Forecast & Trend Chart
   ========================================================================== */
.hourly-forecast-module {
  padding: 1.5rem;
}

.module-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.module-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.module-title-badge {
  font-size: 0.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

/* Canvas Graph */
.chart-container-box {
  width: 100%;
  height: 120px;
  margin-bottom: 1.25rem;
  position: relative;
}
#hourly-temp-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Horizontal Cards Carousel */
.hourly-cards-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.hourly-forecast-card {
  flex: 0 0 74px;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s;
}
.hourly-forecast-card:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}
.hourly-forecast-card.is-current {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}
.h-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.h-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.4rem;
}
.h-temp {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}
.h-rain {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.h-rain.is-dry {
  color: var(--text-tertiary);
  opacity: 0.6;
}

/* ==========================================================================
   Extended 7-10 Day Forecast List
   ========================================================================== */
.daily-forecast-module {
  padding: 1.5rem;
}

.daily-list-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.daily-row-card {
  display: grid;
  grid-template-columns: 85px 1.2fr 65px 1.4fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}
.daily-row-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.15);
}
.daily-row-card.is-today {
  border-left: 3px solid var(--accent-cyan);
}

.daily-col-day {
  display: flex;
  flex-direction: column;
}
.daily-day-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}
.daily-date-sub {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.daily-col-condition {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.daily-icon-wrapper {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.daily-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.daily-col-rain {
  text-align: right;
  font-size: 0.75rem;
  font-weight: 600;
}
.rain-pill {
  color: var(--accent-cyan);
}
.dry-pill {
  color: var(--text-tertiary);
  opacity: 0.5;
}

.daily-col-temp {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.temp-min {
  font-size: 0.85rem;
  color: var(--text-secondary);
  width: 32px;
  text-align: right;
}
.temp-max {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  width: 32px;
}
.temp-range-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  position: relative;
}
.temp-range-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, #38bdf8, #f59e0b);
  border-radius: 999px;
}

/* ==========================================================================
   Air Quality Index (AQI) Module
   ========================================================================== */
.aqi-module {
  padding: 1.5rem;
}

.aqi-display-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.aqi-gauge-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}
.aqi-svg-gauge {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}
.gauge-progress {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 70;
  transition: stroke-dashoffset 0.8s ease, stroke 0.5s ease;
}
.aqi-gauge-inner-val {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.aqi-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}
.aqi-sub-label {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.aqi-info-summary {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.aqi-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.aqi-description-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.aqi-pollutants-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.pollutant-card {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.5rem;
  text-align: center;
}
.pollutant-name {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  font-weight: 600;
}
.pollutant-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0.2rem;
}

/* ==========================================================================
   Astronomical Sun & Moon Module
   ========================================================================== */
.astro-module {
  padding: 1.5rem;
}

.astro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 600px) {
  .astro-grid {
    grid-template-columns: 1fr;
  }
}

.astro-box {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.astro-box-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

/* Sun Path Arc */
.sun-arc-svg {
  width: 160px;
  height: 75px;
  overflow: visible;
  margin-bottom: 0.75rem;
}
.astro-times-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0.5rem;
}
.astro-time-item {
  display: flex;
  flex-direction: column;
}
.astro-time-lbl {
  font-size: 0.65rem;
  color: var(--text-tertiary);
}
.astro-time-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

/* Realistic Moon Sphere */
.moon-sphere {
  width: 50px;
  height: 50px;
  background: #cbd5e1;
  border-radius: 50%;
  margin: 0.6rem 0;
  position: relative;
  box-shadow: inset 10px 0 10px rgba(0, 0, 0, 0.85);
  transition: box-shadow 0.5s ease;
}
.moon-phase-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}
.moon-illum-sub {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.2rem;
}

/* ==========================================================================
   Activity / Lifestyle Recommendations
   ========================================================================== */
.activities-module {
  padding: 1.5rem;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.activity-card {
  background: var(--bg-card-inner);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
}
.act-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.act-icon {
  font-size: 1.1rem;
}
.act-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  flex: 1;
  margin-left: 0.4rem;
}
.act-stars {
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.act-reason {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Toast Notification Banner
   ========================================================================== */
.toast-banner {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass-bright);
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.toast-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.toast-banner.toast-success {
  border-color: rgba(16, 185, 129, 0.5);
}
.toast-banner.toast-warning {
  border-color: rgba(245, 158, 11, 0.5);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-glass);
  background: rgba(7, 11, 20, 0.8);
  backdrop-filter: blur(16px);
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand-summary {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 460px;
}
.footer-links-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-link:hover {
  color: var(--accent-cyan);
}
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .site-header {
    padding: 0.6rem 1rem;
  }
  .header-meta-group {
    display: none;
  }
  .hero-city-title {
    font-size: 1.8rem;
  }
  .hero-temp-val {
    font-size: 4rem;
  }
  .hero-weather-icon-slot {
    width: 65px;
    height: 65px;
  }
  .daily-row-card {
    grid-template-columns: 65px 1fr 50px 100px;
    font-size: 0.85rem;
  }
}
