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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  color: #ffffff;
  padding: 20px;
}

header {
  text-align: center;
  padding: 30px 0;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #74ebd5, #acb6e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: #a0a0b0;
  font-size: 1.1rem;
}

.cards-container {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.weather-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 30px;
  width: 380px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 0.6s ease-out;
}

.weather-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.weather-card:nth-child(2) {
  animation-delay: 0.2s;
}

.city-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.city-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
}

.country-badge {
  background: rgba(116, 235, 213, 0.2);
  color: #74ebd5;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.country-badge.south {
  background: rgba(255, 183, 77, 0.2);
  color: #ffb74d;
}

.weather-icon {
  font-size: 5rem;
  text-align: center;
  margin: 20px 0;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.temperature {
  font-size: 3.5rem;
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}

.weather-desc {
  text-align: center;
  font-size: 1.1rem;
  color: #b0b0c0;
  margin-bottom: 25px;
  text-transform: capitalize;
}

.weather-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  padding: 20px;
}

.detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail:last-child {
  border-bottom: none;
}

.detail-label {
  color: #a0a0b0;
}

.detail span:last-child {
  font-weight: 600;
  font-size: 1rem;
}

.comparison {
  max-width: 500px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  color: #acb6e5;
}

.comparison p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #d0d0e0;
}

footer {
  text-align: center;
  padding: 30px;
  color: #707080;
  font-size: 0.9rem;
}

footer a {
  color: #74ebd5;
  text-decoration: none;
}

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

.refresh-btn {
  margin-top: 15px;
  padding: 12px 30px;
  font-size: 1rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.refresh-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

@media (max-width: 800px) {
  .cards-container {
    flex-direction: column;
    align-items: center;
  }
  
  .weather-card {
    width: 100%;
    max-width: 400px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
}
