@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: "Poppins", Arial, sans-serif;

  background-image: url("assets/bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;

  color: #ffffff;
  position: relative;
  overflow: hidden;
  transition: background-image 0.5s ease-in-out;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}

.app {
  position: relative;
  z-index: 1;

  width: 460px;
  max-width: 92%;
  padding: 38px 32px;

  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.25);

  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.header h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.header p {
  font-size: 15px;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 28px;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 22px;
}

.search-box input {
  width: 100%;
  padding: 14px 15px;

  border: none;
  outline: none;
  border-radius: 14px;

  font-size: 14px;
  font-family: inherit;
}

.search-box button {
  padding: 14px 18px;

  border: none;
  border-radius: 14px;

  background: linear-gradient(135deg, #ffb703, #fb8500);
  color: white;

  font-size: 15px;
  font-weight: 600;
  font-family: inherit;

  cursor: pointer;
  transition: 0.25s ease;
}

.search-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(251, 133, 0, 0.45);
}

.weather-card {
  min-height: 145px;
  padding: 22px;

  background: rgba(255, 255, 255, 0.18);
  border-radius: 20px;
}

.empty-text {
  margin-top: 38px;
  font-size: 15px;
  opacity: 0.95;
}

.weather-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
}

.weather-card img {
  width: 92px;
  margin: 4px 0;
}

.weather-card p {
  font-size: 17px;
  margin: 6px 0;
}

.temperature {
  font-size: 34px !important;
  font-weight: 700;
}

@media (max-width: 600px) {
  .app {
    padding: 30px 22px;
  }

  .header h1 {
    font-size: 34px;
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .search-box button {
    width: 100%;
  }
}
