@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
:root {
  --bg-start: #0f172a;
  --bg-end: #1e293b;
  --surface: rgba(11, 18, 32, 0.67);
  --surface-strong: rgba(11, 18, 32, 0.93);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #60a5fa;
  --accent: #22d3ee;
  --danger: #f87171;
  --outline: rgba(255, 255, 255, 0.08);
}

[data-theme=light] {
  --bg-start: #e6f0ff;
  --bg-end: #ffffff;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --accent: #0891b2;
  --danger: #dc2626;
  --outline: rgba(2, 6, 23, 0.08);
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: linear-gradient(160deg, var(--bg-start), var(--bg-end));
  color: var(--text);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 16px;
}

header .header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
header .header-top .app-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
header .header-top .controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
header .header-top .controls .theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--outline);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease;
}
header .header-top .controls .theme-btn:hover {
  transform: translateY(-1px);
}
header .header-top .controls .unit-toggle {
  display: flex;
  border: 1px solid var(--outline);
  border-radius: 10px;
  background-color: var(--surface)/30;
  overflow: hidden;
}
header .header-top .controls .unit-toggle button {
  all: unset;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--muted);
}
header .header-top .controls .unit-toggle button.active {
  background: var(--surface-strong);
  color: var(--text);
}
header #search-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--outline);
  padding: 10px;
  border-radius: 12px;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
header #search-form #city-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--outline);
  background: var(--surface-strong);
  color: var(--text);
}
header #search-form .primary-btn,
header #search-form .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--outline);
  cursor: pointer;
  transition: filter 0.15s ease;
}
header #search-form .primary-btn:hover,
header #search-form .ghost-btn:hover {
  filter: brightness(1.05);
}
header #search-form .primary-btn {
  background: linear-gradient(180deg, var(--primary), #1d4ed8);
  color: white;
}
header #search-form .ghost-btn {
  background: var(--surface);
  color: var(--text);
}
header .recent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
header .recent-chips .chip {
  background: var(--surface);
  border: 1px solid var(--outline);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: filter 0.15s ease;
}
header .recent-chips .chip:hover {
  filter: brightness(90%);
}

#error-message {
  display: none;
  margin: 18px auto;
  max-width: 560px;
  color: white;
  background: linear-gradient(120deg, #ed3c3c, #d42424);
  padding: 12px 14px;
  border-radius: 10px;
  text-align: center;
}
#error-message.show {
  display: block;
}

.loader-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(2px);
          backdrop-filter: blur(2px);
  z-index: 10;
}
.loader-overlay.show {
  display: flex;
}
.loader-overlay .loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(99, 102, 241, 0.25);
  border-top-color: var(--accent);
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.weather-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 22px;
  max-width: 850px;
  margin: 26px auto 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.weather-card .weather-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.weather-card .weather-header .location-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.weather-card .weather-header .location-info h2 {
  font-size: 22px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.weather-card .weather-header .location-info div {
  width: 32px;
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--outline);
}
.weather-card .weather-header .location-info div img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.weather-card .weather-header #date {
  color: var(--muted);
  font-size: 14px;
}
.weather-card .weather-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.weather-card .weather-info .temperature h3 {
  font-size: 42px;
  line-height: 1;
}
.weather-card .weather-info .temperature p {
  color: var(--muted);
}
.weather-card .weather-info .weather-icon {
  text-align: center;
}
.weather-card .weather-info .weather-icon img {
  width: 80px;
  height: 80px;
}
.weather-card .weather-info .weather-icon p {
  color: var(--muted);
  font-weight: 600;
}
.weather-card .weather-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}
@media (min-width: 768px) {
  .weather-card .weather-details {
    grid-template-columns: repeat(3, 1fr);
  }
}
.weather-card .weather-details .details {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-strong);
  border: 1px solid var(--outline);
  border-radius: 12px;
  padding: 10px;
}
.weather-card .weather-details .details i {
  color: var(--accent);
  font-size: 18px;
}
.weather-card .weather-details .details p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}
.weather-card .weather-details .details b {
  color: var(--text);
  font-weight: 700;
}/*# sourceMappingURL=styles.css.map */