:root {
  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
  color: #213547;
  background-color: #ffffff;
}

body {
  margin: 0;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  position: relative; /* Para a faixa da demo */
  overflow-x: hidden;
}

/* Estilo da Badge de Demo e Subtítulo */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  justify-content: center;
}

.demo-badge {
  color: #e38744;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  user-select: none;
}

.subtitle {
  color: #696969;
  font-size: 1rem;
  margin: 0.5rem 0 0 0;
  font-weight: 500;
}

#app {
  width: 100%;
  max-width: 800px;
  padding: 2rem;
  margin-top: 2rem;
}

.menu {
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 2px solid #f1f1f1;
  padding-bottom: 1rem;
}

.logoText {
  color: #e38744;
  font-size: 3rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hidden {
  display: none !important;
}

.gerarHistoria {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 40vh;
}

.novaHistoria {
  font-size: 2.5rem;
  color: #3e3e3e;
  margin-bottom: 2rem;
}

button {
  cursor: pointer;
  border-radius: 8px;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.botaoCriar {
  background-color: #000000;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.botaoCriar:hover {
  background-color: #e38744;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(227, 135, 68, 0.4);
}

.centralizado {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 40vh;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #e38744;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.historiaGerada {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.5s ease-in;
}

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

.genBack {
  display: flex;
  justify-content: space-between;
}

.back {
  background-color: #696969;
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

.back:hover {
  background-color: #303030;
}

.tituloHistoriaGen {
  text-align: center;
  font-size: 2.2rem;
  color: #1b1b1b;
  margin: 0.5rem 0 1.5rem 0;
}

/* Estilos da Imagem Fake */
.imagemHistoriaContainer {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  margin-bottom: 1rem;
  background-color: #f1f1f1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.storyImage {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.storyImage:hover {
  transform: scale(1.02);
}

.historiaInfo {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.historiaInfo > div {
  background: #f8f8f8;
  padding: 1.5rem;
  border-radius: 0.8rem;
  border-left: 5px solid #e38744;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.historiaInfo h4 {
  margin: 0 0 0.8rem 0;
  color: #2b2b2b;
  font-size: 1.1rem;
}

.historiaInfo p {
  margin: 0;
  color: #555555;
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .logo-container {
    flex-direction: column;
    gap: 0.5rem;
  }
}
