@import url('https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Mono&display=swap');

:root {
  --color-primary: #7C3AED;         /* Roxo vibrante */
  --color-primary-light: #EDE9FE;   /* Fundo suave lilás */
  --color-accent: #4F46E5;          /* Azul neon (destaque) */
  --color-bg: #F5F3FF;              /* Lilás bem claro */
  --color-text: #1E1B4B;            /* Azul escuro profundo */
  --color-terciary: #C084FC;        /* Mais escuro */
  --color-keyword: #9333EA;
  --keyword-purple: #B998E9;        /* Roxo Octostudio */
  --keyword-blue: #9ED4FA;          /* Azul Octostudio */
  --keyword-cyan: #A9F0DE;          /* Ciano Octostudio */
  --keyword-pink: #F1A6C5;          /* Rosa Octostudio */
  --keyword-orange: #F2A459;        /* Laranja Octostudio */
  --keyword-yellow: #F7E06E;        /* Amarelo Octostudio */
  --keyword-green: #CBF5A3;         /* Verde Octostudio */
}

body {
  margin: 0;
  font-family: 'Noto Sans', sans-serif;
    background: 
    radial-gradient(circle, rgba(124,58,237,0.03) 1px, transparent 1px),
    linear-gradient(180deg, #F5F3FF 0%, #EDE9FE 100%);
  background-size: 20px 20px, cover;
  color: var(--color-text);

}

.main-title {
  color: var(--color-primary); 
  text-align: center;
  margin-top: 2rem;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.navbar {
  background-color: var(--color-terciary);
  text-align: center;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center; 
  gap: 2rem;
  padding: 1rem;
  margin: 0;
}

.navbar a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: bold;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: var(--color-accent);
}

html {
  scroll-behavior: smooth;
}
.chapter-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 2rem;
}

.chapter-card {
  background-color: var(--color-primary-light);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column; 
  align-items: center; 
}


.chapter-card .chapter-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  border: 4px solid var(--color-primary); 
}

.keywords {
  font-family: 'Noto Sans Mono', monospace;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--color-keyword);
}

.keywords span {
  display: inline-block;
  background-color: var(--color-keyword);
  color: black;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  margin: 0.2rem;
}

.keywords span:hover {
  cursor: pointer;
  transform: scale(1.1);
  transition: all 0.2s ease;
}

.keywords .purple { background-color: var(--keyword-purple); }
.keywords .blue   { background-color: var(--keyword-blue); }
.keywords .cyan  { background-color: var(--keyword-cyan); }
.keywords .pink    { background-color: var(--keyword-pink); }
.keywords .orange { background-color: var(--keyword-orange); }
.keywords .yellow { background-color: var(--keyword-yellow); }
.keywords .green { background-color: var(--keyword-green); }

.keywords a {
  color: inherit; 
  text-decoration: none; 
}

.keywords a:hover, 
.keywords a:focus, 
.keywords a:active {
  color: inherit; 
  text-decoration: none;
}


.btn {
  display: inline-block;
  background: linear-gradient(90deg, #7C3AED, #9333EA);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover {
  background: linear-gradient(90deg, #9333EA, #7C3AED);
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


.navbar a.active {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  text-shadow: 0 0 5px rgba(79, 70, 229, 0.5);
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: var(--color-terciary);
  margin-top: 2rem;
  font-size: 0.9rem;
}

footer .social-links a {
  color: var(--color-primary);
  text-decoration: none;
  margin: 0 0.5rem;
}

footer .social-links a:hover {
  color: var(--color-accent);
}


.about-section {
  max-width: 800px;
  margin: 2rem auto;
  background-color: var(--color-primary-light);
  padding: 1rem 2rem 2rem 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  line-height: 1.6;
  color: var(--color-text);
}

.about-section h2 {
  color: var(--color-primary)
}

.chapter-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
  line-height: 1.6;
  color: var(--color-text);
}

@media (max-width: 600px) {
  .chapter-intro {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.intro-image-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.intro-image {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 4px solid var(--color-primary);
  margin: 0 auto 1rem;
}

.intro-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.download-button {
  text-align: center;
  width: 100%;
  display: block;
  margin: 0;
}

.project-section {
  max-width: 800px; 
  margin: 2rem auto;
  background-color: var(--color-primary-light);
  padding: 1rem 2rem 2rem 2rem;  
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  line-height: 1.6;
  color: var(--color-text);
  display: flex;
  align-items: center;
  text-align: justify;
  flex-wrap: wrap; 
}

.project-section img {
  width: 300px;
  height: auto;
  border: 4px solid var(--color-primary);
  border-radius: 10px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-section h2 {
  margin: 0;
  color: var(--color-primary);
}

.project-section div {
  flex: 1;
  min-width: 200px;
}

.project-section a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: bold;
}

.project-section a:hover {
  color: var(--color-accent);
}

.project-section a.fundo-chave {
  color: black;
}

.fundo-chave {
  font-family: 'Noto Sans Mono', monospace;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: bold;
  color: black;
  display: inline-block;
  padding: 0rem 0rem;
  border-radius: 5px;
  margin: 0rem;
  text-decoration: none;
}

.fundo-chave.purple { background-color: var(--keyword-purple); }
.fundo-chave.blue   { background-color: var(--keyword-blue); }
.fundo-chave.cyan  { background-color: var(--keyword-cyan); }
.fundo-chave.pink    { background-color: var(--keyword-pink); }
.fundo-chave.orange { background-color: var(--keyword-orange); }
.fundo-chave.yellow { background-color: var(--keyword-yellow); }
.fundo-chave.green { background-color: var(--keyword-green); }


.fundo-chave:hover {
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: underline;
}

/* Lightbox overlay */
.lightbox-overlay {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Imagem dentro do lightbox */
.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border: 4px solid white;
  border-radius: 10px;
}

/* Botão de fechar */
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 2rem;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

.show-image-btn {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 1rem;
}

.show-image-btn:hover {
  background: linear-gradient(90deg, #9333EA, #7C3AED);
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.complexity-stars {
  font-size: 1rem;
  color: black;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: bold;
}

.complexity-stars::before {
  content: "Complexidade: ";
  color: var(--color-text);
}

.complexity-stars.level-1::after {
  content: "★";
  color: gold;
}

.complexity-stars.level-2::after {
  content: "★★";
  color: gold;
}

.complexity-stars.level-3::after {
  content: "★★★";
  color: gold;
}

.futuro {
  max-width: 800px; 
  margin: 2rem auto;
  background-color: var(--color-primary-light);
  padding: 1rem 2rem 2rem 2rem;  
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  line-height: 1.6;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: wrap; 
}

.futuro h2 {
  color: var(--color-primary);
  margin-top: 0;     
  margin-bottom: 0;
}

/* Remove o marcador padrão */
.futuro ul {
  list-style: none;
  padding-left: 0;
}

.futuro li {
  position: relative;
  padding-left: 3rem;  
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.futuro li::before {
  position: absolute;
  left: 0;
  bottom: 0.1rem; 
  font-size: 1rem;
  color: gold;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", sans-serif;
}

/* Quantidade de estrelas por nível */
.futuro li.estrela-1::before {
  content: "★";
}

.futuro li.estrela-2::before {
  content: "★★";
}

.futuro li.estrela-3::before {
  content: "★★★";
}



.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

@media (max-width: 768px) {
  .mobile-only {
    display: inline-block;
  }

  .desktop-only {
    display: none;
  }

  .project-section {
    flex-direction: column;
    text-align: justify; 
  }

  .project-section h2,
  .project-section .show-image-btn {
    text-align: center;    
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .project-section div {
    width: 100%;
  }
}


.contact-section {
  max-width: 800px;
  margin: 2rem auto;
  background-color: var(--color-primary-light);
  padding: 1rem 2rem 2rem 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  line-height: 1.6;
  color: var(--color-text);
}

.contact-section ul {
  list-style: none;
  padding: 0;
}

.contact-section li {
  margin: 0.5rem 0;
}

.contact-section a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: bold;
}

.contact-section a:hover {
  color: var(--color-accent);
}

.manual-section {
  max-width: 800px;
  margin: 3rem auto;
  background-color: var(--color-primary-light);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.blocos-utilizados {
  max-width: 800px; 
  margin: 2rem auto;
  background-color: var(--color-primary-light);
  padding: 1rem 2rem 2rem 2rem;  
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  line-height: 1.6;
  color: var(--color-text);
  display: flex;
  align-items: center;
  text-align: justify;
  flex-wrap: wrap; 
}

.blocos-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style-type: none;
  padding-left: 0;
  margin-top: 1rem;
}

.blocos-lista li {
  flex: 1 1 200px; 
  max-width: 220px;
}

.manual-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .manual-content.horizontal {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
  }
}

.manual-text {
  max-width: 500px;
}

.manual-content img {
  width: 200px;
  height: auto;
  display: block;
}


.manual-section h2 {
  margin: 0 0 1rem;
  color: black;
  font-family: 'Noto Sans Mono', sans-serif;
}

.manual-subtitle {
  max-width: 800px;
  margin: 3rem auto;
  background-color: var(--color-primary-light);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
}


.manual-subtitle h2 {
  margin: 0 0 1rem;
  font-family: 'Noto Sans Mono', sans-serif;
  color: black;
}

.manual-subtitle .purple { background-color: var(--keyword-purple); }
.manual-subtitle .blue   { background-color: var(--keyword-blue); }
.manual-subtitle .cyan  { background-color: var(--keyword-cyan); }
.manual-subtitle .pink    { background-color: var(--keyword-pink); }
.manual-subtitle .orange { background-color: var(--keyword-orange); }
.manual-subtitle .yellow { background-color: var(--keyword-yellow); }
.manual-subtitle .green { background-color: var(--keyword-green); }


.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--color-primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background: var(--color-accent);
  transform: scale(1.1);
}

@media (min-width: 768px) {
  .manual-content {
    flex-direction: row;
    text-align: left;
    justify-content: center;
  }

  .manual-content p {
    max-width: 500px;
  }
}

@media (min-width: 768px) {
  .chapter-container {
    grid-template-columns: repeat(4, 1fr);
  }

@media (max-width: 480px) {
  .chapter-card .chapter-image {
    max-height: 120px; 
  }

  .navbar ul {
    flex-direction: column; 
    gap: 0.5rem;
  }
}











