@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #dbeafe, #f0f9ff);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #0f172a;
}

/* Card principal */
.container {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

/* Título */
.container h1 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.container p {
  text-align: center;
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 22px;
}

/* Área de busca */
.search {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.search input {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
  outline: none;
}

.search input:focus {
  border-color: #38bdf8;
}

/* Botão buscar */
#searchBtn {
  padding: 14px;
  border-radius: 16px;
  border: none;
  background: #38bdf8;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

#searchBtn:hover {
  background: #0ea5e9;
}

/* Botão localização */
#locationBtn {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#locationBtn::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("https://cdn-icons-png.flaticon.com/512/684/684908.png") no-repeat center;
  background-size: contain;
}

#locationBtn:hover {
  background: #e0f2fe;
}

/* Resultado atual */
#result {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Previsão */
.forecast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.forecast-day {
  background: linear-gradient(180deg, #ffffff, #e0f2fe);
  border-radius: 22px;
  padding: 18px 12px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  animation: fadeUp 0.5s ease forwards;
}

.forecast-day .day {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: capitalize;
}

.forecast-day .icon {
  font-size: 1.8rem;
  margin: 6px 0;
}

.forecast-day .temp {
  font-size: 1.7rem;
  font-weight: 700;
  color: #0284c7;
}

.forecast-day .min {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 2px;
}

.forecast h3 {
  grid-column: span 3;
  text-align: center;
  margin-bottom: 12px;
}

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


/* Mobile */
@media (max-width: 480px) {
  .forecast {
    grid-template-columns: 1fr;
  }
}
