/* Estilo automático para o tipo de post: post */

header {
  background-color: var(--preto);
}

#cabecalho-blog {
  padding: 180px 0 0px;
  background-color: var(--branco);

  .migalhas {
    display: flex;
    padding: 0;
    margin: 0;
    justify-content: flex-start;

    li {
      color: var(--preto);
      font-size: 14px;
      font-weight: 400;
      list-style-type: none;

      img {
        margin: 0 10px 0 8px;
      }
    }

    .destaque {
      color: var(--amarelo);
      font-weight: 500;
    }
  }
}

#post {
  background-color: var(--branco);
  padding: 20px 0 80px;

  h1 {
    color: var(--preto);
    font-size: 56px;
    font-weight: 700;
    line-height: 110%;
    margin: 18px 0 24px;
  }

  .subtitulo-noticia {
    color: var(--cinza);
    font-size: 18px;
    font-weight: 500;
    line-height: 160%;
    margin: 0px 0 24px;
  }

  .img-destaque {
    width: 100%;
    min-height: 540px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    margin-bottom: 10px;
  }

  .info-compartilhe {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;

    .infos-noticia {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 16px;

      p {
        margin: 0;
        font-size: 14px;
        font-weight: 500;

        &:not(:first-child)::before {
          content: "•";
          margin-right: 16px;
          color: var(--cinza);
        }
      }

      .categoria-blog {
        color: var(--amarelo);
        border-radius: 30px;
        text-transform: uppercase;
        font-size: 14px;
        font-weight: 500;
      }

      .data-blog,
      .tempo-blog,
      .auto-blog {
        color: var(--cinza);
        font-weight: 400;
        font-size: 14px;
      }
    }

    a.compartilhe {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      background-color: var(--amarelo);
      color: var(--preto);
      font-size: 14px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      padding: 14px 28px;
      border-radius: 50px;
      white-space: nowrap;
      transition: 300ms all ease-in-out;

      &:hover {
        color: var(--preto);
        opacity: 0.85;
      }
    }
  }

  .the-content {
    font-size: 18px;
    font-weight: 400;
    color: #4a4a4a;
    line-height: 160%; /* 28.8px */

    p {
      margin-bottom: 24px;
    }

    h2,
    h3,
    h4 {
      color: var(--preto);
      margin: 40px 0 16px;
    }

    img {
      max-width: 100%;
      height: auto;
      border-radius: 16px;
      margin: 24px 0;
    }

    strong {
      color: #cb821f;
      font-size: 24px;
      font-weight: 500;
      line-height: 160%;
    }

    a {
      color: var(--amarelo);
      text-decoration: underline;
    }
  }

  .citacao {
    font-style: italic;
    border-left: 4px solid var(--amarelo);
    padding-left: 24px;
    margin: 40px 0;
    color: #4a4a4a;
    font-size: 18px;
    font-style: italic;
    font-weight: 500;
    line-height: 160%; /* 28.8px */
  }

  .link-voltar {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cinza);
    font-size: 16px;
    font-weight: 500;
    transition: 300ms all ease-in-out;

    &:hover {
      color: var(--amarelo);
    }
  }
}

.modal-compartilhar {
  .modal-content {
    border: none;
    border-radius: 24px;
    padding: 8px;
    box-shadow: var(--sombra);
  }

  .modal-header {
    border-bottom: none;
    padding: 24px 24px 8px;

    .modal-title {
      color: var(--preto);
      font-size: 20px;
      font-weight: 600;
    }

    .btn-close {
      box-shadow: none !important;
      opacity: 0.6;

      &:hover {
        opacity: 1;
      }
    }
  }

  .modal-body {
    padding: 16px 24px 32px;
  }

  .redes-compartilhar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .rede-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--cinza);
    font-size: 13px;
    font-weight: 500;
    width: 76px;
    text-align: center;

    .icone-rede {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      border: 1px solid var(--amarelo);
      color: var(--amarelo);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: 300ms all ease-in-out;

      svg {
        width: 22px;
        height: 22px;
      }
    }

    &:hover {
      color: var(--amarelo);

      .icone-rede {
        background-color: var(--amarelo);
        color: var(--branco);
      }
    }
  }
}

/* TABLET */
@media (min-width: 768px) and (max-width: 1024px) {
}

/* MOBILE */
@media all and (max-width: 767px) {
  #post {
    h1 {
      font-size: 32px;
    }
    .img-destaque {
      min-height: 410px;
    }
  }

  #post {
    .info-compartilhe {
      .infos-noticia {
        align-items: flex-start;
        gap: 6px;
        flex-direction: column;
        align-content: flex-start;
      }
    }
  }
}
