* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.weather-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 40px;
  min-width: 400px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

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

.weather-container::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    #ff6b6b,
    #4ecdc4,
    #45b7d1,
    #96ceb4,
    #feca57
  );
  border-radius: 32px;
  z-index: -1;
  animation: gradientShift 3s ease infinite;
  opacity: 0.3;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.header {
  text-align: center;
  margin-bottom: 30px;
}

.app-title {
  color: white;
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.search-container {
  position: relative;
  margin-bottom: 30px;
  animation: fadeIn 1s ease-out 0.3s both;
}

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

.search-input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

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

.search-input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.toggle-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
  animation: fadeIn 1s ease-out 0.6s both;
}

.temperature-toggle {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  padding: 5px;
  display: flex;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.toggle-option {
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.toggle-option.active {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.weather-display {
  animation: fadeIn 1s ease-out 0.9s both;
}

.current-weather {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.location {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2em;
  margin-bottom: 15px;
  font-weight: 500;
}

.weather-icon-container {
  margin: 20px 0;
  position: relative;
}

.weather-gif-placeholder {
  width: 90%;
  height: 200px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-align: center;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  background-size: cover;
}

.temperature {
  font-size: 4em;
  font-weight: 700;
  color: white;
  margin: 15px 0;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
  animation: temperaturePulse 3s ease-in-out infinite;
}

@keyframes temperaturePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

.weather-condition {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3em;
  margin-bottom: 10px;
  text-transform: capitalize;
  font-weight: 500;
}

.weather-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.weather-detail-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  animation: slideInLeft 0.8s ease-out;
}

.weather-detail-card:nth-child(even) {
  animation: slideInRight 0.8s ease-out;
}

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.weather-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.15);
}

.detail-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9em;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.detail-value {
  color: white;
  font-size: 1.4em;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
  .weather-container {
    margin: 10px;
    padding: 25px;
    min-width: unset;
  }

  .app-title {
    font-size: 2em;
  }

  .temperature {
    font-size: 3em;
  }

  .weather-details {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .weather-gif-placeholder {
    width: 100%;
    height: 215px;
    margin: 0;
  }
}
