:root {
  --bg: #eef2f7;
  --card: #ffffff;
  --accent: #2563eb;
  --muted: #6b7280;
  --glass: rgba(255, 255, 255, 0.6);
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}
body {
  background: linear-gradient(180deg, var(--bg), #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.app {
  width: 100%;
  max-width: 920px;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.title {
  margin: 0;
  font-size: 1.4rem;
  color: var(--accent);
}
.search-form {
  display: flex;
  gap: 8px;
}
.search-form input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  min-width: 220px;
}
.search-form button {
  padding: 10px 12px;
  border-radius: 8px;
  border: 0;
  background: var(--accent);
  color: white;
  cursor: pointer;
}
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  margin-bottom: 16px;
}
.current-weather {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.current-left {
  flex: 1;
  min-width: 200px;
}
.current-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.city {
  font-size: 1.2rem;
  margin: 0;
}
.temp {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0;
}
.description {
  margin: 0;
  color: var(--muted);
}
.icon {
  width: 96px;
  height: 96px;
}
.details {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}
.forecast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}
.forecast .day {
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.05), transparent);
  text-align: center;
}
.day .day-name {
  font-weight: 600;
  margin: 6px 0;
}
.day .day-temp {
  font-size: 1.1rem;
  margin: 6px 0;
}
.help {
  color: var(--muted);
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.links a {
  margin-right: 12px;
  color: var(--accent);
  text-decoration: none;
}
.note {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
@media (max-width: 520px) {
  .current-right {
    align-items: flex-start;
  }
}
