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

body{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  font-family:Arial, Helvetica, sans-serif;

  background:
    radial-gradient(circle at top left,#38bdf8 0%,transparent 30%),
    radial-gradient(circle at bottom right,#2563eb 0%,transparent 30%),
    #050816;
}

.container{
  width:100%;
  padding:20px;
  display:flex;
  justify-content:center;
}

.weather-card{
  width:100%;
  max-width:450px;

  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(15px);

  border:1px solid rgba(255,255,255,0.1);

  border-radius:20px;

  padding:30px;
  color:white;

  box-shadow:
    0 15px 40px rgba(0,0,0,.3);
}

h1{
  text-align:center;
  margin-bottom:25px;
}

.search-box{
  display:flex;
  gap:10px;
}

.search-box input{
  flex:1;

  padding:14px;

  border:none;
  border-radius:10px;

  outline:none;

  background:#111827;
  color:white;
}

.search-box button{
  padding:14px 18px;

  border:none;
  border-radius:10px;

  cursor:pointer;

  background:#2563eb;
  color:white;

  transition:.3s;
}

.search-box button:hover{
  transform:translateY(-2px);
}

.weather-result{
  margin-top:30px;
}

.weather-result h2{
  text-align:center;
}

.weather-icon{
  font-size:80px;
  text-align:center;
  margin:15px 0;
}

.temperature{
  text-align:center;
  font-size:48px;
  font-weight:bold;
}

#description{
  text-align:center;
  margin-top:10px;
  color:#cbd5e1;
}

.details{
  margin-top:25px;

  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:15px;
}

.detail-card{
  background:#111827;
  border-radius:12px;

  padding:15px;
  text-align:center;
}

.detail-card span{
  font-size:28px;
}

.detail-card p{
  margin:8px 0;
}

.error{
  color:#ef4444;
  text-align:center;
  margin-top:15px;
}

.hidden{
  display:none;
}