* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #09121d;
  color: #f3f7fb;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.app-shell {
  width: min(700px, 100%);
}

.weather-card {
  background: linear-gradient(180deg, rgba(17, 27, 43, 0.95), rgba(8, 13, 20, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.25);
}

.weather-card h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.subtitle {
  margin: 0 0 24px;
  color: #a7b7cd;
  line-height: 1.6;
}

.search-box {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.search-box label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8899b1;
}

.search-box input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: #f3f7fb;
  font-size: 1rem;
}

.search-box input::placeholder {
  color: rgba(243, 247, 251, 0.5);
}

.search-box button {
  cursor: pointer;
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  background: #4f8cff;
  color: white;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.search-box button:hover {
  transform: translateY(-1px);
  background: #3d78eb;
}

.status {
  min-height: 1.5rem;
  color: #c5d5f4;
}

.weather-container.hidden {
  display: none;
}

.weather-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  margin-bottom: 20px;
}

.weather-location {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.weather-description {
  margin: 8px 0 0;
  color: #9db1d4;
}

.weather-temp {
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 800;
}

.weather-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 16px;
}

.weather-details div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.weather-details span {
  display: block;
  color: #9db1d4;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.weather-details strong {
  display: block;
  font-size: 1.05rem;
}

@media (max-width: 500px) {
  .weather-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .weather-temp {
    font-size: 3rem;
  }
}
