:root {
  --bg1: #0f172a;
  --bg2: #1e293b;
  --accent: #38bdf8;
  --accent2: #818cf8;
  --danger: #ef4444;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --radius: 14px;
  --blur: 14px;
}

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

body {
  height: 100vh;
  background: linear-gradient(160deg, var(--bg1), var(--bg2));
  font-family: "Inter", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text);
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(var(--blur));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: fadeIn 0.6s ease;
}

h1 {
  font-size: 1.4rem;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.input-wrap {
  flex: 1;
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 1rem;
  padding: 0 10px;
  outline: none;
  transition: 0.3s;
}

input:focus {
  box-shadow: 0 0 0 2px var(--accent);
}

button {
  height: 44px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 8px;
  padding: 0 14px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(99, 102, 241, 0.4);
}

button:active {
  transform: translateY(1px);
  box-shadow: none;
}

.info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.city {
  font-size: 1.4rem;
  font-weight: 600;
}

.countyCode {
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.temperature {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 6px;
  color: #ffffff;
}

.description {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 4px;
  text-transform: capitalize;
}

.location {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
}

.error {
  margin-top: 12px;
  color: var(--danger);
  font-weight: 600;
  background: rgba(239, 68, 68, 0.1);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

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

@media (max-width: 480px) {
  .container {
    padding: 18px;
  }
  .img {
    width: 60px;
    height: 60px;
  }
  input,
  button {
    height: 40px;
  }
}
