/* Variables */
:root {
  --primary: #1e90ff;
  --background: #f5f7fa;
  --card-bg: #ffffff;
  --text: #333333;
  --alert: #e74c3c;
}

/* Global */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background-color: var(--background);
  color: var(--text);
}
.app-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 1rem;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 2rem;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.hero p {
  font-size: 1.1rem;
  color: #555;
}

/* Search Box */
.search-box {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.search-box input {
  flex: 1;
  padding: 0.75rem;
  font-size: 1rem;
  border: 2px solid var(--primary);
  border-radius: 5px;
}
.search-box button {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.search-box button:hover {
  background-color: #187bcd;
}

/* Alerts */
.info, .alert {
  text-align: center;
  padding: 0.75rem;
  margin-bottom: 1rem;
}
.alert {
  background: var(--alert);
  color: white;
  border-radius: 5px;
}
.hidden { display: none; }

/* Weather Card */
.weather-card {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 1.5rem;
}
.weather-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.weather-header h2 {
  font-size: 1.75rem;
}
.weather-header img {
  width: 60px;
  height: 60px;
}
.weather-main {
  text-align: center;
  margin: 1rem 0;
}
.temp {
  font-size: 3rem;
  color: var(--primary);
}
.weather-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  gap: 0.75rem;
}
.weather-stats div {
  background: #f0f3f5;
  padding: 0.8rem;
  border-radius: 5px;
}
