/* ESTILO BASE */
:root {
  --bg-light: #f9f3e9;
  --bg-dark: #1a1a1a;
  --text-light: #333;
  --text-dark: #e0e0e0;
  --container-light: #fff;
  --container-dark: #2a2a2a;
  --accent: #f6a034;
}

body {
  font-family: 'Quicksand', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-light);
  transition: all 0.3s ease;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body.dark-mode {
  background-color: var(--bg-dark);
  color: var(--text-dark);
}

/* CONTAINER DE LEITURA */
.novel-container {
  max-width: 800px;
  margin: 30px auto;
  padding: 30px;
  background-color: var(--container-light);
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  line-height: 1.8;
}

body.dark-mode .novel-container {
  background-color: var(--container-dark);
  box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

/* CABEÇALHO DO CAPÍTULO */
.novel-header {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 20px;
}

.novel-header h1 {
  color: var(--accent);
  font-size: 2.2em;
  margin-bottom: 10px;
}

.novel-chapter {
  font-style: italic;
  color: #888;
}

body.dark-mode .novel-chapter {
  color: #aaa;
}

/* CONTEÚDO DO TEXTO */
.novel-content {
  font-size: 1.1em;
  text-align: justify;
}

.novel-content p {
  margin-bottom: 1.5em;
  text-indent: 30px;
}

/* RODAPÉ */
.novel-footer {
  text-align: center;
  padding: 20px;
  color: #888;
  font-size: 0.9em;
  margin-top: 50px;
}

/* CONTROLES DE LEITURA */
#reading-controls {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--container-light);
  border: 1px solid var(--accent);
  padding: 10px;
  border-radius: 50px;
  z-index: 999;
  display: flex;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

body.dark-mode #reading-controls {
  background-color: var(--container-dark);
  border-color: #e28d1f;
}

#reading-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent);
  border: none;
  color: #000;
  font-weight: bold;
  cursor: pointer;
}

/* RESPONSIVIDADE */
@media (max-width: 600px) {
  .novel-container {
    padding: 20px;
    margin: 20px 15px;
  }
  
  #reading-controls {
    bottom: 10px;
    right: 10px;
  }
}