/* ===================================
   WEATHER WIDGET
   =================================== */

.weather-widget-link {
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease;
}

.weather-widget-link:hover {
  transform: translateY(-2px);
}


.weather-widget {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.25) 0%, rgba(157, 127, 213, 0.25) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 8px 5px;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 7px;
    transition: all 0.3s ease;
}

.weather-widget-link:hover .weather-widget {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(157, 127, 213, 0.5);
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.3) 0%, rgba(157, 127, 213, 0.3) 100%);
}

/* Main temp section */
.weather-main {
  display: flex;
  align-items: center;
  gap: 5px;
}

.weather-icon-emoji {
  font-size: 4em;
  line-height: 1;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}

.weather-temp {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.temp-current {
  font-size: 2.5em;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1;
  letter-spacing: -1px;
}

.temp-feels {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Weather details section */
.weather-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.weather-desc {
  font-size: 1em;
  color: #fff;
  font-weight: 600;
  text-transform: capitalize;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.weather-extras {
  display: flex;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  flex-direction:column;
}

.weather-extras span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size:.9em;
}

/* Forecast link button */

.weather-forecast-link {
    padding: 3px 7px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-size: .75em;
    margin: 5px 0;
}

.weather-widget-link:hover .weather-forecast-link {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateX(3px);
}

/* Error state */
.weather-error {
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  grid-template-columns: 1fr;
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */

@media (max-width: 768px) {
  .weather-widget {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px 15px;
    gap: 15px;
  }
  
  .weather-main {
    justify-content: center;
    gap: 12px;
  }
  
  .weather-icon-emoji {
    font-size: 3em;
  }
  
  .temp-current {
    font-size: 2em;
  }
  
  .weather-details {
    align-items: center;
  }
  
  .weather-extras {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .weather-forecast-link {
    width: 100%;
    text-align: center;
  }
  
  .weather-widget-link:hover .weather-forecast-link {
    transform: translateX(0);
  }
}

@media (max-width: 480px) {
  .weather-widget {
    padding: 15px 12px;
  }
  
  .weather-icon-emoji {
    font-size: 2.5em;
  }
  
  .temp-current {
    font-size: 1.8em;
  }
  
  .weather-desc {
    font-size: 1.1em;
  }
  
  .weather-extras {
    font-size: 0.9em;
    gap: 15px;
  }
  
  .weather-forecast-link {
    font-size: 0.9em;
    padding: 10px 15px;
    font-size:1em;
  }
  .weather-details { flex-direction:row;}
}
