/* =================================
   RESET E CONFIGURAÇÕES GERAIS
   ================================= */

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Corpo geral */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #111;
  line-height: 1.6;
}

/* =================================
   CABEÇALHO E NAVEGAÇÃO
   ================================= */

header {
  background-color: #0d1117;
  padding: 1rem 2rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #58a6ff;
}

/* =================================
   SEÇÃO HERO (PRINCIPAL)
   ================================= */

.hero {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1100px;
}

.text {
  text-align: center;
}

.text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #0d1117;
}

.text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* =================================
   FORMULÁRIO
   ================================= */

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

form input[type="email"] {
  padding: 0.7rem 1rem;
  font-size: 1rem;
  width: 100%;
  max-width: 350px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

form button {
  background-color: #2563eb;
  color: #fff;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

form button:hover {
  background-color: #1e40af;
}

/* =================================
   CAPA DO LIVRO
   ================================= */

.animated-book {
  animation: float 3s ease-in-out infinite;
  max-width: 280px;
  display: block;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* =================================
   SEÇÃO DEPOIMENTOS - VERSÃO LIMPA
   ================================= */

.testimonials {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 4rem 2rem;
  text-align: center;
}

.testimonials h2 {
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: #1e293b;
  font-weight: 700;
  position: relative;
}

.testimonials h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border-radius: 2px;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(226, 232, 240, 0.8);
  position: relative;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.2);
}

.card p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #475569;
  font-style: italic;
  margin-bottom: 1.5rem;
  text-align: left;
  position: relative;
}

.card p::before {
  content: '"';
  font-size: 2.5rem;
  color: #e2e8f0;
  position: absolute;
  top: -10px;
  left: -10px;
  font-family: Georgia, serif;
}

.card p::after {
  content: '"';
  font-size: 2.5rem;
  color: #e2e8f0;
  position: absolute;
  bottom: -25px;
  right: 0;
  font-family: Georgia, serif;
}

.card span {
  display: block;
  font-weight: 600;
  color: #2563eb;
  font-size: 0.95rem;
  text-align: right;
  position: relative;
  padding-top: 1rem;
}

.card span::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  border-radius: 1px;
}

/* Responsivo */
@media (max-width: 768px) {
  .testimonials {
    padding: 3rem 1rem;
  }
  
  .testimonials h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .testimonial-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .card {
    padding: 2rem 1.5rem;
  }
}

/* =================================
   ÁREA DO CHAT
   ================================= */

#chat-area {
  background-color: #f4f9fd;
  padding: 2rem;
  max-width: 600px;
  margin: 2rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

#chat-area h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #333;
}

#chat-window {
  background-color: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

#chat-messages {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
  background-color: #f9fafb;
  border-radius: 8px;
  text-align: left;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  max-width: 75%;
  word-wrap: break-word;
  font-size: 14px;
  line-height: 1.4;
}

.chat-bubble.user {
  background-color: #2563eb;
  color: #fff;
  align-self: flex-end;
  text-align: left;
}

.chat-bubble.bot {
  background-color: #e5e7eb;
  color: #000;
  align-self: flex-start;
  text-align: left;
}

#typing {
  font-style: italic;
  color: #666;
  margin: 5px 0;
  align-self: flex-start;
  background-color: #e5e7eb;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 14px;
  max-width: 75%;
}

#chat-input {
  display: flex;
  gap: 0.5rem;
}

#chat-input input[type="text"] {
  flex-grow: 1;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

#send-btn {
  padding: 0.6rem 1.2rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#send-btn:hover {
  background-color: #0056b3;
}

/* =================================
   RODAPÉ
   ================================= */

footer {
  background-color: #0d1117;
  color: #ccc;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

/* =================================
   MEDIA QUERIES - RESPONSIVIDADE
   ================================= */

@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .text {
    text-align: left;
    flex: 1;
  }

  .cover {
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  form {
    flex-direction: row;
  }

  #user-input {
    width: auto;
  }
}