/* --- RESET E CONFIGURAÇÕES GERAIS --- */
body {
  background-color: #121212;
  color: #e0e0e0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
}

/* Container Principal */
.curriculum {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

/* Links (Roxo Claro para contraste) */
a {
  color: #bb86fc;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #d7b7fd;
  text-decoration: underline;
}

/* --- CABEÇALHO --- */
.cv-header h1 {
  color: #ffffff;
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.contact-info {
  color: #a0a0a0;
  font-size: 0.95rem;
}

/* --- TÍTULOS DE SEÇÃO --- */
.curriculum h2 {
  font-size: 1.6rem;
  color: #bb86fc;
  border-bottom: 2px solid #3700b3;
  padding-bottom: 0.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- BLOCO DE EXPERIÊNCIA --- */
.experience-block {
  margin-bottom: 2.5rem;
}

.company {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.company a {
  color: #ffffff;
  font-weight: bold;
}

/* Linha do Tempo (Timeline) */
.roles-history {
  margin-bottom: 1.5rem;
  padding-left: 1.2rem;
  border-left: 3px solid #333;
}

.role-item {
  font-size: 1.1rem;
  margin: 0 0 0.8rem 0;
  padding-left: 0.5rem;
  color: #d1d1d1;
  position: relative;
}

/* Bolinhas da Linha do Tempo */
.role-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.6rem;
  width: 10px;
  height: 10px;
  background-color: #333;
  border: 2px solid #121212;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #333;
}

.role-item:first-child {
  color: #fff;
  font-weight: 500;
}

.role-item:first-child::before {
  background-color: #bb86fc;
  box-shadow: 0 0 5px #bb86fc;
}

.date {
  font-size: 0.9rem;
  color: #888;
  font-weight: normal;
  margin-left: 10px;
}

/* --- LISTA DE DESTAQUES --- */
.highlights-list {
  list-style: none;
  padding: 0;
}

.highlights-list li {
  margin-bottom: 0.8rem;
  color: #cccccc;
}

.highlights-list li strong {
  color: #bb86fc;
}

/* --- HABILIDADES (CARDS) --- */
.skills-section ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-section li {
  background-color: #1e1e1e;
  border: 1px solid #333;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  color: #e0e0e0;
  font-size: 0.95rem;
  transition: transform 0.2s, border-color 0.2s;
}

.skills-section li:hover {
  border-color: #bb86fc;
  transform: translateY(-2px);
}

.skills-section li strong {
  color: #bb86fc;
  margin-right: 5px;
}

/* --- EDUCAÇÃO --- */
.education-block h3 {
  color: #fff;
  margin-bottom: 0.2rem;
}

.education-block .school {
  color: #a0a0a0;
}

/* --- Header --- */
.site-header .site-title,
.site-header .site-title:visited {
  color: #ffffff !important;
}

.site-header .site-title:hover {
  color: #bb86fc !important;
  text-decoration: none;
}

.site-nav .page-link {
  color: #e0e0e0 !important;
}

/* --- ESTILO PARA IMPRESSÃO/PDF --- */
@media print {
  /* Esconde elementos inúteis na impressão */
  header.site-header,
  footer.site-footer,
  .no-print {
    display: none !important;
  }

  body {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }

  a {
    color: #000000 !important;
    text-decoration: none !important;
  }

  /* Mostra a URL do link ao lado do texto */
  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 0.8rem;
    color: #555;
  }

  /* Ajustes de margem e layout */
  .curriculum {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
  }

  h1, h2, h3, h4 {
    color: #000 !important;
    page-break-after: avoid; /* Evita quebra de página logo após título */
  }

  .role-item::before {
    border-color: #000 !important; /* Bolinha preta no papel */
    background-color: #fff !important;
  }

  .experience-block {
    page-break-inside: auto !important;
    margin-bottom: 1.5rem;
  }

  h1, h2, h3, h4 {
    page-break-after: avoid !important;
  }

  /* Tenta manter cada item da lista/parágrafo inteiro, sem quebrar no meio da frase */
  .highlights-list li,
  p {
    page-break-inside: avoid !important;
  }

  @page {
    margin: 1.5cm;
  }

  .text {
    color: #666 !important;
  }
}

/* --- HEADER --- */
.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.language-selector select {
  background-color: #1e1e1e;
  color: #e0e0e0;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23bb86fc' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  padding-right: 2rem;
}

.language-selector select:hover,
.language-selector select:focus {
  border-color: #bb86fc;
  outline: none;
}

.language-selector select option {
  background-color: #1e1e1e;
  color: #e0e0e0;
}