* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: #020617;
  color: #fff;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  min-height: 100vh;
  padding: 20px;

  overflow-y: auto;
}

#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(25px);
  border-radius: 25px;
  padding: 35px 25px;
  text-align: center;
  width: 100%;
  max-width: 500px;

  border: 1px solid rgba(96,165,250,0.2);

  box-shadow:
    0 0 30px rgba(59,130,246,0.25),
    0 0 80px rgba(59,130,246,0.15),
    inset 0 0 20px rgba(255,255,255,0.05);
}

.hero h1 {
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.hero p {
  margin: 20px 0;
  font-size: 0.95rem;
  color: #94a3b8;
}

.input-area {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.input-area input {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #0f172a;
  color: white;
  border: 1px solid rgba(96,165,250,0.3);
  font-size: 0.9rem;
}

.input-area input::placeholder {
  color: #94a3b8;
}

#buscarIA {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  border: none;
  padding: 12px 15px;
  border-radius: 10px;
  color: #020617;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

#buscarIA:hover {
  box-shadow: 0 0 20px rgba(96,165,250,0.8);
}

.sentimentos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.sentimentos button {
  flex: 1 1 45%;

  border: none;
  padding: 14px;
  border-radius: 25px;
  cursor: pointer;

  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #020617;
  font-weight: bold;

  transition: all 0.3s ease;
}

.sentimentos button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 20px rgba(96,165,250,0.7);
}

#resultado {
  display: none;
  margin-top: 30px;
  font-size: 1.1rem;
  color: #93c5fd;
  line-height: 1.5;
}

.acoes {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.acoes button {
  flex: 1 1 30%;

  background: #0f172a;
  border: 1px solid rgba(96,165,250,0.2);
  color: white;

  padding: 10px;
  border-radius: 20px;
  cursor: pointer;

  transition: 0.3s;
}

.acoes button:hover {
  background: #3b82f6;
}

h3 {
  margin-top: 25px;
  color: #60a5fa;
}

#favoritos {
  margin-top: 10px;
  max-height: 150px;
  overflow-y: auto;
  padding-right: 5px;
}

#favoritos li {
  background: rgba(15,23,42,0.7);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.loading {
  margin: 20px auto;
  width: 30px;
  height: 30px;
  border: 3px solid #1e293b;
  border-top: 3px solid #60a5fa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.hidden {
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fade {
  opacity: 0;
}

.show {
  opacity: 1;
  transition: 0.5s;
}

@media (max-width: 480px) {
  .hero {
    padding: 25px 15px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .input-area {
    flex-direction: column;
  }

  #buscarIA {
    width: 100%;
  }

  .sentimentos button {
    flex: 1 1 45%;
  }

  .acoes button {
    flex: 1 1 100%;
  }
}
