:root {
  --bg-1: #061b4d;
  --bg-2: #0a3d8f;
  --bg-3: #1d86ff;
  --accent: #6bd3ff;
  --glass: rgba(255, 255, 255, 0.15);
  --glass-strong: rgba(255, 255, 255, 0.22);
  --glass-border: rgba(255, 255, 255, 0.28);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.7);
  --orb-1: rgba(125, 211, 252, 0.8);
  --orb-2: rgba(82, 145, 255, 0.8);
  --orb-3: rgba(74, 226, 255, 0.6);
}

/* Weather Theme: Clear/Sunny */
[data-weather="clear"] {
  --bg-1: #0369a1;
  --bg-2: #0ea5e9;
  --bg-3: #38bdf8;
  --accent: #fcd34d;
  --glass: rgba(255, 255, 255, 0.18);
  --glass-strong: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.35);
  --orb-1: rgba(252, 211, 77, 0.5);
  --orb-2: rgba(251, 191, 36, 0.4);
  --orb-3: rgba(253, 224, 71, 0.35);
}

/* Weather Theme: Cloudy */
[data-weather="cloudy"] {
  --bg-1: #1e293b;
  --bg-2: #475569;
  --bg-3: #64748b;
  --accent: #e2e8f0;
  --glass: rgba(255, 255, 255, 0.16);
  --glass-strong: rgba(255, 255, 255, 0.24);
  --glass-border: rgba(255, 255, 255, 0.3);
  --orb-1: rgba(148, 163, 184, 0.3);
  --orb-2: rgba(100, 116, 139, 0.25);
  --orb-3: rgba(203, 213, 225, 0.2);
}

/* Weather Theme: Rainy */
[data-weather="rain"] {
  --bg-1: #0c1929;
  --bg-2: #1a3a52;
  --bg-3: #2d5a7b;
  --accent: #7dd3fc;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-strong: rgba(255, 255, 255, 0.2);
  --glass-border: rgba(255, 255, 255, 0.25);
  --orb-1: rgba(56, 189, 248, 0.25);
  --orb-2: rgba(14, 165, 233, 0.2);
  --orb-3: rgba(2, 132, 199, 0.15);
}

/* Weather Theme: Stormy/Thunderstorm */
[data-weather="storm"] {
  --bg-1: #0a0a14;
  --bg-2: #151525;
  --bg-3: #252540;
  --accent: #c4b5fd;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.22);
  --orb-1: rgba(139, 92, 246, 0.2);
  --orb-2: rgba(88, 28, 135, 0.25);
  --orb-3: rgba(250, 204, 21, 0.1);
}

/* Weather Theme: Snow */
[data-weather="snow"] {
  --bg-1: #1e3a5f;
  --bg-2: #4a6fa5;
  --bg-3: #7b9ec9;
  --accent: #f1f5f9;
  --glass: rgba(255, 255, 255, 0.2);
  --glass-strong: rgba(255, 255, 255, 0.28);
  --glass-border: rgba(255, 255, 255, 0.35);
  --orb-1: rgba(226, 232, 240, 0.4);
  --orb-2: rgba(203, 213, 224, 0.3);
  --orb-3: rgba(241, 245, 249, 0.35);
}

/* Weather Theme: Foggy/Misty */
[data-weather="fog"] {
  --bg-1: #4a5568;
  --bg-2: #636f7f;
  --bg-3: #8896a4;
  --accent: #e2e8f0;
  --glass: rgba(255, 255, 255, 0.18);
  --glass-strong: rgba(255, 255, 255, 0.26);
  --glass-border: rgba(255, 255, 255, 0.32);
  --orb-1: rgba(203, 213, 224, 0.3);
  --orb-2: rgba(160, 174, 192, 0.25);
  --orb-3: rgba(226, 232, 240, 0.25);
}

/* Weather Theme: Night/Clear Night */
[data-weather="night"] {
  --bg-1: #020617;
  --bg-2: #0f172a;
  --bg-3: #1e293b;
  --accent: #c4b5fd;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-strong: rgba(255, 255, 255, 0.16);
  --glass-border: rgba(255, 255, 255, 0.2);
  --orb-1: rgba(99, 102, 241, 0.2);
  --orb-2: rgba(139, 92, 246, 0.15);
  --orb-3: rgba(168, 85, 247, 0.12);
}

/* Weather Theme: Hot */
[data-weather="hot"] {
  --bg-1: #7c2d12;
  --bg-2: #c2410c;
  --bg-3: #ea580c;
  --accent: #fef08a;
  --glass: rgba(0, 0, 0, 0.2);
  --glass-strong: rgba(0, 0, 0, 0.28);
  --glass-border: rgba(255, 255, 255, 0.2);
  --orb-1: rgba(251, 191, 36, 0.5);
  --orb-2: rgba(251, 146, 60, 0.4);
  --orb-3: rgba(252, 211, 77, 0.35);
}

/* Weather Theme: Windy */
[data-weather="wind"] {
  --bg-1: #134e5e;
  --bg-2: #2d8892;
  --bg-3: #71b280;
  --accent: #d1fae5;
  --glass: rgba(255, 255, 255, 0.16);
  --glass-strong: rgba(255, 255, 255, 0.24);
  --glass-border: rgba(255, 255, 255, 0.3);
  --orb-1: rgba(168, 230, 207, 0.4);
  --orb-2: rgba(113, 178, 128, 0.3);
  --orb-3: rgba(45, 136, 146, 0.25);
}

body {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background: linear-gradient(160deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  color: #f8fbff;
  min-height: 100vh;
  transition: background 0.8s ease-in-out;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.glass-panel {
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-panel-subtle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Text readability enhancements */
.text-readable {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Ensure high contrast text in cards */
.glass-card,
.glass-panel {
  color: var(--text-primary, #ffffff);
}

.glass-card p,
.glass-panel p {
  color: var(--text-secondary, rgba(255, 255, 255, 0.9));
}

.chart-svg {
  width: 100%;
  height: 100%;
  touch-action: none;
  pointer-events: none;
}

.chart-container {
  position: relative;
  cursor: crosshair;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.chart-tooltip {
  position: absolute;
  bottom: 100%;
  left: 0;
  transform: translate(-50%, -8px);
  background: rgba(8, 15, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  color: #f8fbff;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 12px 30px rgba(5, 15, 35, 0.35);
}

.chart-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.chart-grid {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}

.chart-line-temp {
  fill: none;
  stroke: rgba(125, 211, 252, 0.9);
  stroke-width: 2.5;
}

.chart-line-feels {
  fill: none;
  stroke: rgba(255, 255, 255, 0.65);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.chart-bar {
  fill: rgba(125, 211, 252, 0.5);
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 6px;
}

.legend-temp {
  background: rgba(125, 211, 252, 0.9);
}

.legend-feels {
  border: 1px dashed rgba(255, 255, 255, 0.7);
  background: transparent;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  z-index: 10;
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.glass-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f8fbff;
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.glass-input:focus {
  outline: none;
  border-color: rgba(125, 211, 252, 0.8);
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.25);
  background: rgba(255, 255, 255, 0.14);
}

.btn-primary {
  background: linear-gradient(135deg, #4aa8ff, #6fe0ff);
  color: #052452;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(18, 120, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(18, 120, 255, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: #f8fbff;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.9rem;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* Scrollbar styling for hourly forecast */
.hourly-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.hourly-scroll::-webkit-scrollbar {
  height: 6px;
}

.hourly-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.hourly-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.hourly-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Alert card animations */
.alert-card {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.orb {
  position: absolute;
  border-radius: 9999px;
  opacity: 0.5;
  mix-blend-mode: screen;
  animation: float 25s ease-in-out infinite;
  pointer-events: none;
}

.orb-one {
  width: 500px;
  height: 500px;
  top: -180px;
  left: -120px;
  background: radial-gradient(
    circle at 30% 30%,
    var(--orb-1),
    transparent 60%
  );
  transition: background 0.8s ease-in-out;
}

.orb-two {
  width: 400px;
  height: 400px;
  bottom: -180px;
  right: -120px;
  background: radial-gradient(
    circle at 70% 30%,
    var(--orb-2),
    transparent 60%
  );
  animation-delay: -7s;
  transition: background 0.8s ease-in-out;
}

.orb-three {
  width: 300px;
  height: 300px;
  top: 40%;
  right: 10%;
  background: radial-gradient(
    circle at 40% 40%,
    var(--orb-3),
    transparent 55%
  );
  animation-delay: -14s;
  transition: background 0.8s ease-in-out;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
    );
  background-size: 64px 64px;
  opacity: 0.15;
  pointer-events: none;
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.05s;
}

.delay-2 {
  animation-delay: 0.15s;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 25px, 0);
  }
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Card hover effects */
.glass-panel-subtle {
  transition: background 0.2s ease, transform 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .orb-one {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -80px;
  }
  
  .orb-two {
    width: 250px;
    height: 250px;
    bottom: -100px;
    right: -80px;
  }
  
  .orb-three {
    width: 180px;
    height: 180px;
  }
}

/* ===================================
   Mobile Optimizations (Samsung S25 Ultra)
   Screen: 3120 x 1440px, 6.9", 19.5:9 aspect ratio
   =================================== */

/* Safe area insets for notch/camera cutout */
@supports (padding: max(0px)) {
  .pt-safe {
    padding-top: max(0.75rem, env(safe-area-inset-top));
  }
  .pb-safe {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }
  .px-safe {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }
}

/* Extra small breakpoint for narrow phones */
@media (min-width: 360px) {
  .xs\:inline {
    display: inline;
  }
}

/* Mobile typography adjustments */
@media (max-width: 640px) {
  body {
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Larger touch targets (minimum 44x44px) */
  button, 
  [role="button"],
  input,
  select,
  textarea,
  a {
    min-height: 44px;
  }
  
  /* Better text rendering on mobile */
  * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Optimize scrolling */
  .hourly-scroll {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  
  .hourly-scroll::-webkit-scrollbar {
    display: none;
  }
  
  /* Modal optimizations */
  .modal-content {
    margin: 0.75rem;
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
  }
  
  /* Card touch feedback */
  .glass-panel-subtle:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.98);
  }
  
  /* Button active states */
  .btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 5px 15px rgba(18, 120, 255, 0.25);
  }
  
  .btn-secondary:active {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(0.97);
  }
  
  /* Reduced motion for battery savings */
  @media (prefers-reduced-motion: reduce) {
    * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}

/* Tall phone optimizations (S25 Ultra aspect ratio ~19.5:9) */
@media (max-width: 640px) and (min-aspect-ratio: 18/9) {
  /* More vertical space utilization */
  .glass-card {
    border-radius: 1rem;
  }
  
  /* Compact vertical spacing */
  main {
    padding-top: 1rem;
    padding-bottom: 1.5rem;
  }
}

/* High DPI display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .glass-card,
  .glass-panel,
  .glass-panel-subtle {
    border-width: 0.5px;
  }
}

/* Dark mode / AMOLED optimizations */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
  
  /* Pure black backgrounds save battery on AMOLED */
  body {
    background-color: #000;
  }
}

/* Landscape mode on mobile */
@media (max-width: 896px) and (orientation: landscape) {
  main {
    padding: 0.75rem 1rem;
  }
  
  .modal-content {
    max-height: 90vh;
    max-height: 90dvh;
  }
}

/* Line clamp utilities for mobile */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  
  .scroll-smooth {
    scroll-behavior: smooth;
  }
}

/* Scroll snap for hourly forecast */
.snap-x {
  scroll-snap-type: x mandatory;
}

.snap-start {
  scroll-snap-align: start;
}

.snap-mandatory {
  scroll-snap-type: x mandatory;
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .fade-up,
  .btn-primary,
  .spinner,
  .alert-card,
  .weather-particle {
    animation: none !important;
    transition: none !important;
  }
  
  .fade-up {
    opacity: 1;
    transform: none;
  }

  .weather-effects {
    display: none;
  }
}

/* Weather Animation Effects */
.weather-effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.weather-particle {
  position: absolute;
  pointer-events: none;
}

/* Rain Effect */
[data-weather="rain"] .rain-drop,
[data-weather="storm"] .rain-drop {
  width: 2px;
  height: 18px;
  background: linear-gradient(to bottom, transparent 0%, rgba(147, 197, 253, 0.3) 30%, rgba(147, 197, 253, 0.6) 100%);
  border-radius: 0 0 2px 2px;
  animation: rain-fall linear infinite;
}

[data-weather="storm"] .rain-drop {
  height: 22px;
  background: linear-gradient(to bottom, transparent 0%, rgba(186, 230, 253, 0.4) 30%, rgba(186, 230, 253, 0.7) 100%);
}

@keyframes rain-fall {
  0% {
    transform: translateY(-100vh) translateX(0) rotate(-5deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(100vh) translateX(-30px) rotate(-5deg);
    opacity: 0;
  }
}

/* Storm Lightning Flash */
[data-weather="storm"] .lightning-flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.4), transparent 70%);
  opacity: 0;
  animation: lightning 6s infinite;
}

[data-weather="storm"] .lightning-flash:nth-child(2) {
  animation-delay: 2.5s;
}

@keyframes lightning {
  0%, 88%, 90%, 92%, 94%, 100% {
    opacity: 0;
  }
  89%, 91% {
    opacity: 0.7;
  }
  93% {
    opacity: 0.4;
  }
}

/* Rain Mist Overlay */
[data-weather="rain"] .rain-mist,
[data-weather="storm"] .rain-mist {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(147, 197, 253, 0.1), transparent);
  animation: mist-pulse 4s ease-in-out infinite;
}

@keyframes mist-pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

/* Snow Effect */
[data-weather="snow"] .snowflake {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  filter: blur(1px);
  animation: snow-fall linear infinite;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes snow-fall {
  0% {
    transform: translateY(-100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) translateX(50px) rotate(360deg);
    opacity: 0;
  }
}

/* Fog Effect */
[data-weather="fog"] .fog-layer {
  position: absolute;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.08),
    transparent
  );
  animation: fog-drift 30s linear infinite;
}

[data-weather="fog"] .fog-layer:nth-child(2) {
  animation-delay: -10s;
  animation-duration: 25s;
  opacity: 0.7;
}

[data-weather="fog"] .fog-layer:nth-child(3) {
  animation-delay: -20s;
  animation-duration: 35s;
  opacity: 0.5;
}

@keyframes fog-drift {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0%);
  }
}

/* Sun Rays Effect for Clear Day */
[data-weather="clear"] .sun-glow {
  position: absolute;
  top: -50px;
  right: 5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(253, 224, 71, 0.6) 0%, rgba(251, 191, 36, 0.3) 40%, transparent 70%);
  border-radius: 50%;
  animation: sun-glow-pulse 5s ease-in-out infinite;
}

[data-weather="clear"] .sun-ray {
  position: absolute;
  top: -80px;
  right: 8%;
  width: 150px;
  height: 400px;
  background: linear-gradient(
    180deg,
    rgba(253, 224, 71, 0.4) 0%,
    rgba(251, 191, 36, 0.2) 30%,
    transparent 100%
  );
  transform-origin: top center;
  animation: sun-pulse 4s ease-in-out infinite;
  filter: blur(15px);
}

[data-weather="clear"] .sun-ray:nth-child(2) {
  right: 12%;
  width: 100px;
  animation-delay: -1.5s;
  opacity: 0.8;
}

[data-weather="clear"] .sun-ray:nth-child(3) {
  right: 2%;
  width: 80px;
  animation-delay: -3s;
  opacity: 0.6;
}

@keyframes sun-glow-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes sun-pulse {
  0%, 100% {
    opacity: 0.6;
    transform: scaleY(1) scaleX(1);
  }
  50% {
    opacity: 0.9;
    transform: scaleY(1.1) scaleX(1.05);
  }
}

/* Night Stars Effect */
[data-weather="night"] .star {
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle 4s ease-in-out infinite;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

[data-weather="night"] .star.bright {
  width: 3px;
  height: 3px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 12px rgba(147, 197, 253, 0.4);
}

[data-weather="night"] .shooting-star {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent);
  border-radius: 50%;
  animation: shooting 3s ease-out infinite;
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

@keyframes shooting {
  0% {
    transform: translateX(0) translateY(0) rotate(-45deg);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  20% {
    transform: translateX(300px) translateY(300px) rotate(-45deg);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* Moon glow for night */
[data-weather="night"] .moon-glow {
  position: absolute;
  top: 5%;
  right: 15%;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(226, 232, 240, 0.3) 0%, rgba(226, 232, 240, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  animation: moon-pulse 6s ease-in-out infinite;
}

@keyframes moon-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

/* Wind Streaks */
[data-weather="wind"] .wind-streak {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: wind-blow 2s linear infinite;
}

@keyframes wind-blow {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100vw);
    opacity: 0;
  }
}

/* Hot Heat Waves */
[data-weather="hot"] .heat-wave {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(
    to top,
    rgba(251, 191, 36, 0.1),
    transparent
  );
  animation: heat-shimmer 3s ease-in-out infinite;
}

@keyframes heat-shimmer {
  0%, 100% {
    opacity: 0.3;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.6;
    transform: scaleY(1.05);
  }
}
