@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap");
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #080c14;
  --surface: #0e1420;
  --card: #131a28;
  --card2: #192033;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --accent: #38bdf8;
  --accent-dim: rgba(56,189,248,0.1);
  --accent-glow: rgba(56,189,248,0.2);
  --text: #e8eef8;
  --muted: #5a6a85;
  --muted2: #3a4a60;
  --danger: #f87171;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1rem 4rem;
}
body::before {
  content: "";
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(56, 189, 248, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.app {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}
.header h1 {
  font-family: "Syne", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.header h1 span {
  color: var(--accent);
}
.header p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

.search-wrap {
  position: relative;
  margin-bottom: 0.75rem;
}
.search-wrap input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 3.5rem 0.9rem 1.25rem;
  font-size: 0.95rem;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-wrap input::placeholder {
  color: var(--muted);
}
.search-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.search-wrap button.search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  border: none;
  border-radius: 9px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.search-wrap button.search-btn:hover {
  opacity: 0.85;
}
.search-wrap button.search-btn:active {
  transform: translateY(-50%) scale(0.95);
}
.search-wrap button.search-btn svg {
  width: 16px;
  height: 16px;
  stroke: #080c14;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.location-btn {
  width: 100%;
  background: var(--accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  color: var(--accent);
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.75rem;
  transition: background 0.2s;
}
.location-btn:hover {
  background: rgba(56, 189, 248, 0.16);
}
.location-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.unit-toggle {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 0.75rem;
}
.unit-toggle button {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-family: "DM Sans", sans-serif;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}
.unit-toggle button.active {
  background: var(--accent-dim);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--accent);
}

.error-msg {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--danger);
  margin-bottom: 1rem;
  text-align: center;
  display: none;
  animation: fadeUp 0.3s ease;
}
.error-msg.show {
  display: block;
}

.skeleton {
  display: none;
}
.skeleton.show {
  display: block;
}
.skeleton .sk-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 1rem;
}
.skeleton .sk-line {
  background: var(--card2);
  border-radius: 6px;
  margin-bottom: 14px;
  animation: shimmer 1.4s infinite;
}
.skeleton .sk-line.w70 {
  height: 14px;
  width: 70%;
}
.skeleton .sk-line.w40 {
  height: 12px;
  width: 40%;
}
.skeleton .sk-line.big {
  height: 56px;
  width: 55%;
  margin: 1rem 0;
}
.skeleton .sk-line.w90 {
  height: 12px;
  width: 90%;
}

@keyframes shimmer {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.main-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  margin-bottom: 1rem;
  display: none;
  animation: fadeUp 0.4s ease forwards;
}
.main-card.show {
  display: block;
}

.city-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.city-row .city-name {
  font-family: "Syne", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.city-row .city-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 3px;
}
.city-row .local-time {
  text-align: right;
}
.city-row .local-time .time {
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
}
.city-row .local-time .date {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.temp-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.temp-row .weather-icon {
  font-size: 4.5rem;
  line-height: 1;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.25));
}
.temp-row .temp {
  font-family: "Syne", sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.temp-row .feels {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}

.condition-text {
  font-size: 1rem;
  font-weight: 500;
  text-transform: capitalize;
  margin-bottom: 1.5rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 1.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.stats-grid .stat {
  background: var(--card2);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.stats-grid .stat .stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
}
.stats-grid .stat .stat-value {
  font-family: "Syne", sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.forecast-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.25rem 1.75rem;
  display: none;
  animation: fadeUp 0.4s 0.08s ease both;
}
.forecast-card.show {
  display: block;
}
.forecast-card .forecast-title {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 1rem;
}
.forecast-card .forecast-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  transition: background 0.15s;
}
.forecast-card .forecast-item:hover {
  background: var(--card2);
}
.forecast-card .forecast-item .f-day {
  font-size: 0.83rem;
  color: var(--muted);
  width: 65px;
}
.forecast-card .forecast-item .f-icon {
  font-size: 1.35rem;
}
.forecast-card .forecast-item .f-desc {
  font-size: 0.78rem;
  color: var(--muted);
  flex: 1;
  text-align: center;
  text-transform: capitalize;
}
.forecast-card .forecast-item .f-temps {
  display: flex;
  gap: 10px;
  font-family: "Syne", sans-serif;
  font-size: 0.88rem;
}
.forecast-card .forecast-item .f-temps .hi {
  font-weight: 600;
}
.forecast-card .forecast-item .f-temps .lo {
  color: var(--muted);
}

.footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.73rem;
  color: var(--muted2);
}
.footer a {
  color: var(--muted);
  text-decoration: none;
}
.footer a:hover {
  color: var(--accent);
}

/*# sourceMappingURL=style.css.map */
