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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #1a1f35 0%, #0f1422 100%);
  min-height: 100vh;
  color: #e8eaf8;
  line-height: 1.5;
}

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

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.location-icon {
  width: 28px;
  height: 28px;
  color: #64b5f6;
}

.location h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.region {
  font-size: 0.9rem;
  color: #8b9dc3;
  margin: 0;
}

.last-update {
  text-align: right;
  font-size: 0.85rem;
  color: #8b9dc3;
}

.update-label {
  display: block;
}

/* Language Switcher */
.language-switch {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px;
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: #8b9dc3;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e8eaf8;
}

.lang-btn.active {
  background: #64b5f6;
  color: #0f1422;
}

/* Main Content */
.main-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Current Weather */
.current-weather {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.temperature-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.temp-icon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.temp-icon svg {
  width: 100%;
  height: 100%;
}

.temp-main {
  text-align: center;
}

.temperature {
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #64b5f6, #90caf9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.weather-desc {
  font-size: 1.4rem;
  color: #8b9dc3;
  margin-top: 8px;
  text-transform: capitalize;
}

.weather-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.detail-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, background 0.2s;
}

.detail-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.detail-card svg {
  width: 28px;
  height: 28px;
  color: #64b5f6;
  margin-bottom: 10px;
}

.detail-label {
  display: block;
  font-size: 0.8rem;
  color: #8b9dc3;
  margin-bottom: 6px;
}

.detail-value {
  font-size: 1.2rem;
  font-weight: 600;
}

/* Forecast */
.forecast h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.forecast-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.2s, background 0.2s;
}

.forecast-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.forecast-card.today {
  background: rgba(100, 181, 246, 0.15);
  border-color: rgba(100, 181, 246, 0.3);
}

.forecast-day {
  font-size: 0.85rem;
  color: #8b9dc3;
  margin-bottom: 10px;
  font-weight: 500;
}

.forecast-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
}

.forecast-icon svg {
  width: 100%;
  height: 100%;
}

.forecast-temp {
  font-size: 1.1rem;
  font-weight: 600;
}

.forecast-temp span {
  color: #8b9dc3;
  font-weight: 400;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #8b9dc3;
}

.footer a {
  color: #64b5f6;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Error State */
.error-message {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #ef5350;
}

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

  .header {
    flex-direction: column;
    gap: 16px;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .last-update {
    text-align: left;
  }

  .temperature-section {
    flex-direction: column;
    gap: 20px;
  }

  .temperature {
    font-size: 4rem;
  }

  .temp-icon {
    width: 100px;
    height: 100px;
  }

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

  .forecast-grid {
    grid-template-columns: repeat(4, 1fr);
    overflow-x: auto;
    gap: 8px;
  }

  .forecast-card {
    min-width: 80px;
  }
}

@media (max-width: 480px) {
  .temperature {
    font-size: 3.2rem;
  }

  .current-weather {
    padding: 24px;
  }

  .weather-details {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .detail-card {
    padding: 16px;
  }

  .header-right {
    flex-direction: column;
    gap: 12px;
  }

  .language-switch {
    order: -1;
  }
}