/* Estilos personalizados para o mdbook do NotionAiAssistant */

:root {
  --primary-color: #2e7eed;
  --secondary-color: #34d399;
  --accent-color: #8b5cf6;
  --text-color: #1f2937;
  --background-color: #ffffff;
  --code-background: #f3f4f6;
  --quote-background: #f9fafb;
  --quote-border: #e5e7eb;
}

.light {
  --primary-color: #2e7eed;
  --secondary-color: #34d399;
  --accent-color: #8b5cf6;
  --text-color: #1f2937;
  --background-color: #ffffff;
  --code-background: #f3f4f6;
  --quote-background: #f9fafb;
  --quote-border: #e5e7eb;
}

.navy, .ayu, .coal {
  --primary-color: #60a5fa;
  --secondary-color: #34d399;
  --accent-color: #a78bfa;
  --text-color: #e5e7eb;
  --background-color: #111827;
  --code-background: #1f2937;
  --quote-background: #1f2937;
  --quote-border: #374151;
}

/* Estilo específico para o tema Rust */
.rust {
  --primary-color: #7c6f64;
  --secondary-color: #b38f6b;
  --accent-color: #e69f67;
  --text-color: #262625;
  --background-color: hsl(60, 9%, 87%);
  --code-background: hsl(60, 9%, 80%);
  --quote-background: hsl(60, 5%, 75%);
  --quote-border: hsl(60, 5%, 70%);
}

/* Ajustes de ícones para o tema Rust */
.rust .menu-bar,
.rust .menu-bar:visited,
.rust .nav-chapters,
.rust .nav-chapters:visited,
.rust .mobile-nav-chapters,
.rust .mobile-nav-chapters:visited,
.rust .menu-bar .icon-button,
.rust .menu-bar a i {
  color: #737480; /* Cor dos ícones no tema Rust */
}

.rust .menu-bar i:hover,
.rust .menu-bar .icon-button:hover,
.rust .nav-chapters:hover,
.rust .mobile-nav-chapters i:hover {
  color: #262625; /* Cor dos ícones ao passar o mouse no tema Rust */
}

/* Ajustes adicionais para os ícones do menu no tema Rust */
.rust #menu-bar i, 
.rust #menu-bar .icon-button {
  color: #737480;
}

.rust #menu-bar i:hover, 
.rust #menu-bar .icon-button:hover {
  color: #262625;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 2em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

h1 {
  font-size: 2.25em;
  border-bottom: 1px solid var(--quote-border);
  padding-bottom: 0.3em;
}

h2 {
  font-size: 1.75em;
  border-bottom: 1px solid var(--quote-border);
  padding-bottom: 0.3em;
}

h3 {
  font-size: 1.5em;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  background-color: var(--code-background);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

pre {
  background-color: var(--code-background);
  padding: 1em;
  border-radius: 5px;
  overflow-x: auto;
}

blockquote {
  margin: 1em 0;
  padding: 0.5em 1em;
  background-color: var(--quote-background);
  border-left: 4px solid var(--quote-border);
}

img {
  max-width: 100%;
  border-radius: 5px;
  margin: 1em 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}

table th, table td {
  padding: 0.5em;
  border: 1px solid var(--quote-border);
}

table th {
  background-color: var(--code-background);
  font-weight: 600;
}

/* Estilos para elementos centralizados */
div[align="center"] {
  text-align: center;
  margin: 2em 0;
}

/* Estilos para citações em itálico */
em {
  font-style: italic;
  color: var(--accent-color);
}

/* Botão de edição no GitHub */
.icon-button {
  color: var(--primary-color) !important;
}

/* Barra de navegação */
.nav-chapters {
  color: var(--primary-color) !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.nav-chapters:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
}

.nav-chapters .arrow {
  font-size: 2em;
  color: var(--primary-color);
}

/* Melhoria para listas */
ul, ol {
  padding-left: 2em;
  margin: 1em 0;
}

li {
  margin: 0.5em 0;
}

/* Linha horizontal */
hr {
  border: none;
  height: 1px;
  background-color: var(--quote-border);
  margin: 2em 0;
}

/* Seletor de idiomas */
.language-selector {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
}

.language-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-radius: 8px;
  transition: background-color 0.3s;
  text-decoration: none;
}

.language-option:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.language-option img {
  margin-bottom: 0.5rem;
  box-shadow: none;
  width: 32px;
  height: auto;
}

.language-option span {
  font-weight: bold;
}

/* Seletor de idioma na barra de navegação */
.header-language-selector {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}

.header-language-selector a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s;
}

.header-language-selector a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.header-language-selector img {
  width: 24px;
  height: auto;
  box-shadow: none;
  margin: 0;
}

