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

body {
  background: #1a1a1a;
  color: #f0f0f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

/* Center content vertically when it fits, scroll naturally when it doesn't */
main {
  margin-top: auto;
  margin-bottom: auto;
  max-width: 900px;
  width: 100%;
}

.question {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 2rem;
  color: #fff;
}

/* Answer section */
.answer {
  margin-bottom: 2rem;
}

.confidence {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #999;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.fire-name {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 900;
  color: #ff6b35;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.details {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: #888;
  line-height: 1.6;
}

.details span {
  display: inline-block;
  margin: 0 0.75rem;
}

/* AQI line under the details */
.aqi {
  margin-top: 0.75rem;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.aqi-fine { color: #888; }
.aqi-bad { color: #ff6b35; }
.aqi-awful { color: #ff4444; }

/* Fire list toggle link */
.fire-list-toggle {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
}

.fire-list-toggle:hover {
  color: #999;
}

/* Prompt section */
.prompt {
  margin-bottom: 2rem;
}

.prompt-text {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #999;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.btn {
  background: #ff6b35;
  color: #1a1a1a;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
}

.btn:hover {
  background: #ff8c5a;
}

.btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
}

.or {
  color: #666;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.zip-form {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

#zip-input {
  background: #2a2a2a;
  border: 2px solid #444;
  color: #f0f0f0;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border-radius: 4px;
  width: 160px;
  text-align: center;
}

#zip-input:focus {
  outline: none;
  border-color: #ff6b35;
}

#zip-input::placeholder {
  color: #666;
}

/* Loading */
.loading p {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #999;
  font-weight: 300;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Error */
.error {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: #ff6b35;
  margin-top: 1rem;
}

/* Fire list */
.fire-list {
  margin-top: 3rem;
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.fire-list-heading {
  font-size: 1.1rem;
  font-weight: 400;
  color: #666;
  text-transform: lowercase;
  margin-bottom: 1rem;
  text-align: center;
}

.fire-list ul {
  list-style: none;
  padding: 0;
}

.fire-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fire-list li:last-child {
  border-bottom: none;
}

.fire-list-name {
  font-weight: 700;
  color: #f0f0f0;
  font-size: 1rem;
}

.fire-list-name .country-tag {
  font-weight: 400;
  font-size: 0.75rem;
  color: #666;
  margin-left: 0.4rem;
}

.fire-list-meta {
  font-size: 0.85rem;
  color: #777;
  display: flex;
  gap: 0.75rem;
}

.fire-list-smoke {
  font-size: 0.8rem;
  font-weight: 600;
  width: 100%;
}

.fire-list-smoke.definitely { color: #ff4444; }
.fire-list-smoke.probably { color: #ff6b35; }
.fire-list-smoke.maybe { color: #888; }

/* Footer */
footer {
  margin-top: auto;
  padding-top: 3rem;
}

footer p {
  font-size: 0.85rem;
  color: #555;
}

footer a {
  color: #777;
  text-decoration: underline;
}

footer a:hover {
  color: #ff6b35;
}

/* Utility */
.hidden {
  display: none !important;
}
