/* Simple, responsive weather card styling */

:root{
  --bg: #0f1724;
  --card: #0b1220;
  --muted: #a6b0c3;
  --accent: #7dd3fc;
  --glass: rgba(255,255,255,0.03);
  --radius: 12px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* { box-sizing: border-box; }
html,body { height:100%; margin:0; background: linear-gradient(180deg,#071021 0%, #0f1724 100%); color:#e6eef6; }

.app {
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding:28px 16px;
  gap:18px;
}

.app-title {
  margin:0;
  font-size:1.4rem;
  letter-spacing:0.2px;
  color:var(--accent);
}

.controls {
  width:100%;
  max-width:760px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.search {
  display:flex;
  gap:8px;
  flex:1 1 320px;
}

.search input {
  flex:1;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.06);
  background:var(--glass);
  color:inherit;
  outline:none;
  font-size:1rem;
}

.search input::placeholder { color:var(--muted); }

.search button {
  padding:10px 14px;
  border-radius:10px;
  border: none;
  background:var(--accent);
  color:#042027;
  cursor:pointer;
  font-weight:600;
}

.options {
  display:flex;
  gap:8px;
  align-items:center;
  flex:0 0 auto;
}

.unit-toggle {
  font-size:0.95rem;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:6px;
  user-select:none;
}

.unit-toggle input { transform:scale(1.1); accent-color:var(--accent); }

#current-btn {
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.04);
  background:transparent;
  color:var(--muted);
  cursor:pointer;
}

.status { max-width:760px; text-align:center; padding:8px 12px; border-radius:8px; background: rgba(255,255,255,0.02); color:var(--muted); }

.card {
  width:100%;
  max-width:760px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: var(--radius);
  box-shadow: 0 6px 30px rgba(2,6,23,0.6);
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
  border: 1px solid rgba(255,255,255,0.03);
}

.card-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.city { margin:0; font-size:1.25rem; color:var(--accent); }
.muted { color:var(--muted); font-size:0.85rem; }
.small { font-size:0.8rem; }

.weather-main { display:flex; align-items:center; gap:12px; }
.weather-icon { width:86px; height:86px; }
.temp-block { display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.temp { font-weight:700; font-size:2.4rem; line-height:1; }
.description { color:var(--muted); text-transform:capitalize; }

.card-body { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; align-items:flex-start; }

.info-grid { display:grid; grid-template-columns:repeat(2, minmax(120px, 1fr)); gap:12px; flex:1; }
.info { background: rgba(255,255,255,0.018); padding:12px; border-radius:10px; border:1px solid rgba(255,255,255,0.02); }
.label { color:var(--muted); font-size:0.85rem; margin-bottom:6px; }
.value { font-weight:600; font-size:1rem; }

.sun { display:flex; flex-direction:column; gap:6px; min-width:160px; }

.error { max-width:760px; background:rgba(255,60,60,0.08); color:#ffb0b0; padding:10px 14px; border-radius:10px; border:1px solid rgba(255,60,60,0.12); }

.hidden { display:none; }

.footer { color:var(--muted); font-size:0.85rem; margin-top:8px; }

/* Responsive */
@media (max-width:520px){
  .weather-icon { width:64px; height:64px; }
  .temp { font-size:1.9rem; }
  .controls { flex-direction:column; align-items:stretch; }
  .options { justify-content:flex-end; }
}
