/* Versão 1.1.0
   Página de artigo/matéria do blog
*/

/* Hero / Cabeçalho do artigo */
.materia-hero {
  /* background: linear-gradient(180deg, #1a1a2e 0%, #1d1d1d 100%); */
  padding: 24px 0 40px;
}

.materia-breadcrumb {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.materia-breadcrumb a {
  color: #f15a25;
  text-decoration: none;
}

.materia-breadcrumb a:hover {
  color: #ff7a45;
}

.materia-breadcrumb-sep {
  margin: 0 8px;
  opacity: 0.5;
}

.materia-breadcrumb-current {
  color: rgba(255, 255, 255, 0.9);
}

.materia-hero-imagem {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.materia-hero-imagem img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.materia-hero-titulo {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 20px;
}

.materia-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.materia-hero-autor {
  display: flex;
  align-items: center;
  gap: 12px;
}

.materia-hero-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(241, 90, 37, 0.5);
}

.materia-hero-autor-info {
  display: flex;
  flex-direction: column;
}

.materia-hero-autor-nome {
  font-weight: 600;
  color: #fff;
  font-size: 15px;
}

.materia-hero-data {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.materia-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.materia-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(241, 90, 37, 0.2);
  color: #f15a25;
  font-size: 12px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.materia-tag:hover {
  background: #f15a25;
  color: #fff;
}

/* Conteúdo do artigo */
.materia-conteudo {
  background-color: #1d1d1d;
}
.materia-marks {
  color: #e8e8e8;
}

.materia-marks h1,
.materia-marks .h1-blog {
  color: #fff;
  margin-top: 0px;
  padding-top: 0px;
  font-size: 30px;
}

.materia-marks h2,
.materia-marks .h2-blog {
  font-size: 28px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 30px;
  margin-top: 30px;
  font-size: 25px;
}

.materia-marks h2::after,
.materia-marks .h2-blog::after {
  content: '';
  display: block;
  width: 100%;
  height: 12px;
  margin-bottom: 24px;
  background:
    linear-gradient(#f15a25, #f15a25) 0 2px / 8px 8px no-repeat,
    linear-gradient(#f15a25, #f15a25) 14px 50% / calc(100% - 14px) 1px no-repeat;
  background-color: transparent;
}

.materia-marks h3,
.materia-marks .h3-blog {
  font-size: 26px;
  font-weight: 300;
  color: #fff;
  margin-bottom: 9px;
  font-size: 20px;
}

.materia-marks p,
.materia-marks strong,
.materia-marks a {
  color: #e8e8e8;
}

.materia-marks strong,
.materia-marks a {
  color: #f15a25;
}

.materia-marks a:hover {
  color: #ff7a45;
}

.materia-marks blockquote {
  border-left: 5px solid #f15a25;
  padding-left: 16px;
  margin: 20px 0;
  color: #ccc;
}

.materia-marks img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  margin: 20px 0;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Índice lateral */
#box-indice {
  position: sticky;
  top: 90px;
}

#indice {
  list-style: none;
  padding: 0;
  margin: 0;
}

#indice li {
  padding: 0 10px 10px;
}

#indice li a {
  color: #fff;
  font-size: 14px;
  font-family: 'Roboto Condensed', sans-serif;
  text-decoration: none;
}

#indice li a:hover {
  color: #f15a25;
}

.materia-indice-titulo {
  font-size: 1.25rem;
  margin: 0 0 8px;
  color: #fff;
}

.materia-indice-hr {
  border: 0;
  border-bottom: 3px solid #f15a25;
}

.ancora {
  position: absolute;
  margin-top: -90px;
}

/* Seção Veja também */
.materia-relacionados {
  background-color: #1d1d1d;
}

.materia-relacionados h2 {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .materia-hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
