/* ===========================================================
   ESTILO GERAL – SITE JENNIFER LUZ LOPES
   Estrutura: Projetos + Café com R
   -----------------------------------------------------------
   Cores: Azul #224573 (marca) + Marrom #6B4F4F (Café)
   Fonte: Poppins (títulos) + Open Sans (texto)
=========================================================== */

/*-- scss:defaults --*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500&family=Poppins:wght@600;700&display=swap');

$font-family-sans-serif: 'Open Sans', Tahoma, sans-serif !default;
$presentation-heading-font: 'Poppins', Tahoma, sans-serif !default;

$marrom-cafe: #6B4F4F;
$azul-base: #224573;
$bege-fundo: #f7f2ee;
$cinza-suave: #f2f2f2;
$link-color: $azul-base;
$body-bg: #ffffff;
$body-color: #000000;

$h1-font-size: 1.7em;
$h2-font-size: 1.4em;
$h3-font-size: 1.2em;

/*-- scss:rules --*/

/* -----------------------------------------------------------
   GERAL
----------------------------------------------------------- */
body {
  background-color: $body-bg;
  color: $body-color;
  font-family: $font-family-sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}

a {
  color: $azul-base;
  text-decoration: none;
  font-weight: 500;
  &:hover {
    color: darken($azul-base, 10%);
    text-decoration: underline;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: $presentation-heading-font;
  color: $azul-base;
  font-weight: 600;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}

h1 { font-size: $h1-font-size; }
h2 { font-size: $h2-font-size; }

/* -----------------------------------------------------------
   NAVBAR – cor forçada sobre o tema base
----------------------------------------------------------- */
.navbar,
.navbar.bg-light,
.navbar.navbar-light,
.navbar.navbar-expand-lg,
.navbar.navbar-expand-lg.bg-light {
  background: linear-gradient(90deg, $marrom-cafe 0%, darken($marrom-cafe, 10%) 100%) !important;
  border-bottom: 5px solid darken($marrom-cafe, 12%) !important;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25) !important;
  padding: 1em 2em !important;
  transition: background-color 0.3s ease, padding 0.3s ease !important;
}

.navbar.scrolled {
  background-color: darken($marrom-cafe, 15%) !important;
  padding: 0.6em 1.5em !important;
}

/* Links da navbar */
.navbar .navbar-brand,
.navbar .nav-link {
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 1.05em;
  letter-spacing: 0.4px;
  position: relative;
  transition: all 0.3s ease;
}

/* Hover e ativo */
.navbar .nav-link:hover {
  color: #f7f2ee !important;
  transform: translateY(-2px);
}
.navbar .active > .nav-link {
  border-bottom: 3px solid #f7f2ee !important;
}

.navbar .navbar-brand:hover {
  color: #f7f2ee !important;
}

.navbar-toggler {
  background-color: $bege-fundo !important;
  border: none;
  border-radius: 6px;
}

/* -----------------------------------------------------------
   RODAPÉ
----------------------------------------------------------- */
.page-footer {
  background-color: $bege-fundo;
  color: $marrom-cafe;
  text-align: center;
  font-size: 0.9em;
  padding: 1.2em 0;
  border-top: 2px solid lighten($azul-base, 40%);
}

/* -----------------------------------------------------------
   PROJETOS / LISTAGENS
----------------------------------------------------------- */
.quarto-listing-container { margin-top: 2em; }

.quarto-listing-item {
  background: $bege-fundo;
  border-left: 5px solid $marrom-cafe;
  border-radius: 10px;
  padding: 1.2em 1.5em;
  margin-bottom: 1.2em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}
.quarto-listing-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.quarto-listing-item-title {
  color: $azul-base;
  font-family: $presentation-heading-font;
  font-weight: 600;
}

/* -----------------------------------------------------------
   CÓDIGO E OUTPUT
----------------------------------------------------------- */
pre code {
  background-color: $cinza-suave;
  border-radius: 6px;
  padding: 0.8em 1em;
  font-family: 'Inconsolata', monospace;
  color: $azul-base;
  font-size: 0.95em;
}

.cell-output {
  border-left: 3px solid $azul-base;
  background-color: #fafafa;
  padding: 0.6em 1em;
  border-radius: 4px;
  margin-bottom: 1.2em;
}

/* -----------------------------------------------------------
   BOTÕES
----------------------------------------------------------- */
.btn-primary, .btn {
  background-color: $marrom-cafe;
  color: #fff;
  border-radius: 8px;
  padding: 0.6em 1.2em;
  font-weight: 600;
  letter-spacing: 0.4px;
  border: none;
  transition: all 0.25s ease;
}
.btn-primary:hover, .btn:hover {
  background-color: darken($marrom-cafe, 10%);
  transform: translateY(-2px);
}

/* -----------------------------------------------------------
   VOLTAR AO TOPO
----------------------------------------------------------- */
.back-to-top {
  background-color: $marrom-cafe !important;
  color: #fff !important;
  border-radius: 50%;
  padding: 0.6em;
  font-size: 1.2em;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
.back-to-top:hover {
  background-color: darken($marrom-cafe, 10%) !important;
  transform: scale(1.1);
}

/* -----------------------------------------------------------
   ANIMAÇÃO DE ENTRADA SUAVE
----------------------------------------------------------- */
section {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.8s ease forwards;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* -----------------------------------------------------------
   SCROLLBAR PERSONALIZADA (marrom-café)
----------------------------------------------------------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  transition: all 0.3s ease;
}
::-webkit-scrollbar-track {
  background: $bege-fundo;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background-color: $marrom-cafe;
  border-radius: 10px;
  border: 2px solid $bege-fundo;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background-color: darken($marrom-cafe, 10%);
  transform: scaleX(1.2);
}
* {
  scrollbar-width: thin;
  scrollbar-color: $marrom-cafe $bege-fundo;
}
html { scroll-behavior: smooth; }

/* -----------------------------------------------------------
   RESPONSIVIDADE
----------------------------------------------------------- */
@media (max-width: 768px) {
  .navbar { font-size: 0.9em; }
  .quarto-listing-item { padding: 1em; }
  h1 { font-size: 1.4em; }
  h2 { font-size: 1.2em; }
}

/* ===========================================================
   CORREÇÃO FINAL DE CORES – TÍTULOS E TEXTOS
=========================================================== */
body, p, li, span {
  color: #000000 !important;
  font-family: 'Open Sans', sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
  color: #224573 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
}

a {
  color: #224573 !important;
  text-decoration: none;
  font-weight: 500;
}
a:hover {
  color: #5A3F3F !important;
  text-decoration: underline;
}


/* ===========================================================
   AJUSTE FINAL – TEXTO BRANCO NA NAVBAR
=========================================================== */

/* Força texto branco para qualquer variação do tema */
.navbar,
.navbar .navbar-brand,
.navbar .nav-link,
.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-brand,
.navbar-light .navbar-toggler-icon,
.navbar-light .navbar-text {
  color: #ffffff !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Hover e ativo */
.navbar .nav-link:hover,
.navbar-light .navbar-nav .nav-link:hover {
  color: #f7f2ee !important;
  transform: translateY(-1px);
}

.navbar .active > .nav-link,
.navbar-light .navbar-nav .active > .nav-link {
  border-bottom: 3px solid #f7f2ee !important;
  color: #f7f2ee !important;
}

/* Corrige botão do menu mobile */
.navbar-toggler {
  background-color: #f7f2ee !important;
  border: none;
  border-radius: 6px;
}

/* ===========================================================
   BOTÕES DE AÇÃO – ALINHAMENTO HORIZONTAL (FORÇADO)
=========================================================== */
.listing-btn-group {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1em !important;
  flex-wrap: wrap !important;
  margin: 1.5em 0 !important;
  text-align: center !important;
}

/* Estilo base */
.btn-cafe {
  background-color: #6B4F4F;
  color: #fff !important;
  border-radius: 8px;
  padding: 0.6em 1.2em;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: all 0.3s ease;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  text-transform: uppercase;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-cafe:hover {
  background-color: #5A3F3F;
  transform: translateY(-2px);
  text-decoration: none;
  color: #f7f2ee !important;
}

.btn-cafe i {
  font-size: 1.1em;
  margin-right: 0.4em;
  line-height: 0;
}
/* -----------------------------------------------------------
   BOTÕES DE LINKS (Website | Repositório | Vídeo)
----------------------------------------------------------- */
.quarto-title-meta-contents .link-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #6B4F4F;
  color: #fff !important;
  border-radius: 6px;
  padding: 0.5em 1em;
  margin-right: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
  text-transform: uppercase;
}

.quarto-title-meta-contents .link-item:hover {
  background-color: #5A3F3F;
  transform: translateY(-2px);
}

.quarto-title-meta-contents .link-item i {
  color: #fff;
}

/* ======================================== */
/* SEÇÃO NEWSLETTER – CAFÉ COM R            */
/* ======================================== */

.newsletter-bar {
  background-color: #6B4F4F;          /* Marrom café */
  color: #ffffff;
  text-align: center;
  padding: 2.5em 1em;
  width: 100%;
  margin: 3em 0;
  border-top: 3px solid #5A3F3F;
  border-bottom: 3px solid #5A3F3F;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.newsletter-bar h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6em;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.2em;
  letter-spacing: 0.6px;
}
/* ========================================= */
/* BLOCO DE TEXTO JUSTIFICADO                */
/* ========================================= */

/* Aplica em qualquer parágrafo ou bloco */
.texto-justificado {
  text-align: justify;
  text-justify: inter-word;   /* melhora a distribuição entre palavras */
  hyphens: auto;              /* ativa hifenização automática */
  line-height: 1.7;           /* deixa mais legível */
  color: #222222;             /* cor suave para leitura */
  font-size: 1.05em;
  margin: 1em 0;
}
