*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #e0e0e0;
  padding: 1.25rem 1rem 2rem;
}

.container {
  width: 100%;
  max-width: 760px;
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.location {
  font-size: 1rem;
  color: #a0b4cc;
  margin-top: 0.25rem;
}

.updated {
  font-size: 0.75rem;
  color: #667788;
  margin-top: 0.25rem;
}

/* Quick links hub */
.hub-menu {
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.hub-menu h2 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: #d8e6f6;
}

.hub-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.hub-grid a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #e6eff9;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hub-grid a:hover,
.hub-grid a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(133, 193, 255, 0.65);
  background: rgba(106, 170, 237, 0.15);
}

.hub-emoji {
  font-size: 1.3rem;
}

.hub-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hub-text strong {
  font-size: 0.92rem;
}

.hub-text small {
  font-size: 0.75rem;
  color: #9eb0c3;
}

/* States */
.loading,
.error {
  text-align: center;
  padding: 2rem;
  font-size: 1rem;
}

.error {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid rgba(255, 107, 107, 0.3);
  border-radius: 12px;
  padding: 1rem;
}

.hidden {
  display: none !important;
}

/* Weather card */
.weather-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: 480px;
  margin: 0 auto;
}

.main-info {
  text-align: center;
  margin-bottom: 1.75rem;
}

.weather-icon {
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.temperature {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.description {
  font-size: 1.05rem;
  color: #a0b4cc;
  margin-top: 0.5rem;
  text-transform: capitalize;
}

/* Details grid */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.detail-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-size: 0.75rem;
  color: #667788;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-value {
  font-size: 1rem;
  font-weight: 600;
  color: #e0e0e0;
}

@media (max-width: 360px) {
  .temperature {
    font-size: 2.8rem;
  }
  .weather-icon {
    font-size: 3.5rem;
  }
  .hub-grid {
    grid-template-columns: 1fr;
  }
  .details-grid {
    grid-template-columns: 1fr;
  }
}
