:root {
  --bg1: #071026;
  --bg2: #0b2540;
  --card: rgba(255,255,255,0.08);
  --card-hover: rgba(255,255,255,0.12);
  --accent: #6d28d9;
  --accent-hover: #5b21b6;
  --text: #ffffff;
  --text-secondary: rgba(255,255,255,0.7);
  --border: rgba(255,255,255,0.1);
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --radius: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 50%, #0f172a 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.app {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
}

.card {
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.card:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.brand {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.search-wrap {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

input {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-size: 16px;
  min-width: 250px;
  transition: all 0.3s ease;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

button {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

button:hover {
  background: linear-gradient(135deg, var(--accent-hover), #4c1d95);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.3);
}

.grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  margin-top: 24px;
}

aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#map {
  height: 400px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.location {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 8px;
  font-weight: 500;
}

.temp {
  font-size: 64px;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, var(--text), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.meta {
  font-size: 16px;
  opacity: 0.7;
  margin-top: 8px;
}

h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--text);
}

.hourly {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.hourly::-webkit-scrollbar {
  height: 6px;
}

.hourly::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}

.hourly::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.hour {
  min-width: 120px;
  padding: 16px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.hour:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.footer {
  text-align: center;
  opacity: 0.6;
  margin-top: 40px;
  padding: 20px;
  font-size: 14px;
}

/* Updates section specific styles */
#updates div {
  margin-bottom: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent);
  font-weight: 500;
}

#updates div:last-child {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: 350px 1fr;
    gap: 20px;
  }

  #map {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .app {
    padding: 16px;
  }

  .top {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .brand {
    text-align: center;
    font-size: 24px;
  }

  .search-wrap {
    justify-content: center;
  }

  input {
    min-width: 200px;
    flex: 1;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  aside {
    order: 2;
  }

  .temp {
    font-size: 48px;
  }

  #map {
    height: 280px;
  }

  .hourly {
    gap: 8px;
  }

  .hour {
    min-width: 100px;
    padding: 12px 8px;
  }

  .daily-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .app {
    padding: 12px;
  }

  .card {
    padding: 16px;
  }

  .brand {
    font-size: 20px;
  }

  .search-wrap {
    flex-direction: column;
    gap: 8px;
  }

  input {
    min-width: auto;
    width: 100%;
  }

  button {
    width: 100%;
    padding: 12px;
  }

  .temp {
    font-size: 40px;
  }

  #map {
    height: 220px;
  }

  .hourly {
    gap: 6px;
  }

  .hour {
    min-width: 80px;
    padding: 8px 6px;
    font-size: 14px;
  }

  .daily-grid {
    grid-template-columns: 1fr;
  }

  h4 {
    font-size: 16px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.5s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
