* {
  margin: 0;
  box-sizing: border-box;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background-color: #222;
}

/* Main Card */
.card-container {
  width: 90%;
  max-width: 470px;
  background: linear-gradient(
    90deg,
    hsla(312, 66%, 76%, 1) 0%,
    hsla(234, 93%, 67%, 1) 100%
  );
  color: white;
  margin: 90px auto 0;
  border-radius: 20px;
  padding: 40px 35px;
  text-align: center;
}

/*Search Section */
.search {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search input {
  border: 0;
  outline: 0;
  background: #ebfffc;
  color: #555;
  padding: 10px 25px;
  height: 60px;
  border-radius: 30px;
  flex: 1;
  font-size: 18px;
}

.search button {
  border: 0;
  outline: 0;
  background: #ebfffc;
  color: #555;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  flex-shrink: 0;
}

.search button img {
  width: 16px;
}

/* Weather Info */
.weather-icon {
  width: 180px;
  margin-top: 30px;
}

.weather h1 {
  font-size: 80px;
  font-weight: 400;
}

.weather h2 {
  font-size: 45px;
  font-weight: 500;
  margin-top: -10px;
}

.details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-top: 50px;
  gap: 20px;
}

.col {
  display: flex;
  align-items: center;
  text-align: left;
  flex: 1;
}

.col img {
  width: 50px;
  margin-right: 10px;
}

.humidity,
.wind {
  font-size: 28px;
  margin-top: -6px;
}

.weather {
  display: none;
}

/* Mood Section */
.mood {
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.15);
  padding: 15px;
  border-radius: 12px;
  text-align: center;
}

.mood-title {
  font-size: 22px;
  margin-bottom: 8px;
  font-weight: bold;
}

.mood-text {
  font-size: 16px;
  margin-bottom: 10px;
}

/* Spotify Button */
.spotify-link {
  display: inline-block;
  background: #1db954;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.spotify-link:hover {
  background: #14833b;
}

/* 📱 Responsive Design */
@media (max-width: 768px) {
  .card-container {
    padding: 30px 20px;
    margin: 40px auto;
  }

  .weather h1 {
    font-size: 60px;
  }

  .weather h2 {
    font-size: 32px;
  }

  .details {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-top: 30px;
  }

  .col {
    justify-content: center;
  }

  .col img {
    width: 40px;
  }

  .humidity,
  .wind {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .search input {
    font-size: 16px;
    padding: 10px 15px;
    height: 50px;
  }

  .search button {
    width: 50px;
    height: 50px;
  }

  .weather h1 {
    font-size: 50px;
  }

  .weather h2 {
    font-size: 28px;
  }

  .weather-icon {
    width: 140px;
  }

  .mood-title {
    font-size: 18px;
  }

  .mood-text {
    font-size: 14px;
  }
}
