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

body {
  /* Using the same font stack as your portfolio */
  font-family: 'Space Grotesk', "Hiragino Sans", "Meiryo", sans-serif;
  background: #060a10;
  color: #f0f6ff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  /* Added the subtle grid pattern from your portfolio */
  background-image:
    linear-gradient(rgba(0, 200, 240, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 200, 240, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.container {
  text-align: center;
  width: 100%;
  max-width: 420px;
  padding: 2rem;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #00c8f0;
}

.search {
  display: flex;
  gap: 10px;
  margin-bottom: 2rem;
}

input {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 200, 240, 0.3);
  background: #0d1825;
  color: #f0f6ff;
  font-size: 15px;
  outline: none;
}

input:focus {
  border-color: #00c8f0;
}

button {
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  background: #00c8f0;
  color: #060a10;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: #38d9f5;
  transform: translateY(-2px);
}

.weather-card {
    background: rgba(255, 255, 255, 0.05); /* Very slight tint */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px); /* Keeps it looking modern */
}
#weather-icon {
  height: 100px; /* Space for the icon */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

#weather-icon img {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 0 8px rgba(0, 200, 240, 0.5)); /* Makes the icon glow like your theme */
}


#city-name {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #00c8f0;
}

#temperature {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#description {
  font-size: 1.1rem;
  color: #7a9bb5;
  margin-bottom: 1.5rem;
  text-transform: capitalize;
}

.details {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

#humidity, #wind-speed {
  font-size: 0.85rem;
  color: #7a9bb5;
  line-height: 1.5;
}

.error {
  color: #ff6b6b;
  font-size: 14px;
  margin-bottom: 1rem;
  min-height: 20px;
}

.back-link {
  display: inline-block;
  margin-top: 1rem;
  color: #6a95b0;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.back-link:hover {
  color: #00c8f0;
}
