/**
* Posts list item
*/
.post-list-item {
    position: relative;
    padding: calc(0.7 * var(--islandPadding)) var(--islandPadding);
    font-size: 15px;
    margin-bottom: var(--islandMargin);
}

.post-list-item__header {
    position: relative;
    margin-bottom: 1em;
    color: var(--color-gray);
    font-size: 0.8em;
    white-space: nowrap;
    z-index: calc(var(--article-link-z-index) + 1);
}

.post-list-item__header .island-settings {
    padding: 15px;
    margin-right: -15px;
    margin-top: -15px;

    &:hover {
        color: #000;
    }

    &__menu {
        right: 5px;
        top: 100%;
    }
}

.post-list-item__date {
    margin-right: 1em;
    margin-bottom: 12px;
    vertical-align: middle;
}

.post-list-item__author {
    vertical-align: middle;

    & img {
        display: inline-block;
        width: 1.2em;
        height: 1.2em;
        border-radius: 50%;
        vertical-align: text-top;
        margin-right: 0.8em;
    }
}

.post-list-item__title {
    margin: 0;
    display: inline-block;
    font-size: 21px;
    line-height: 1.3em;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.post-list-item--big .post-list-item__title {
    font-size: 1.8em;
}

.post-list-item__body {
    margin-top: 10px;
    line-height: 1.65em;
}

.post-list-item__body p:first-of-type {
    margin-top: 0;
}

.post-list-item__body p:last-of-type {
    margin-bottom: 0;
}

.post-list-item__footer {
    padding-top: calc(0.7 * var(--islandPadding));
    font-size: 0.9em;
    color: var(--color-gray);
}

.post-list-item__comments:hover,
.post-list-item__date:hover,
.post-list-item__author:hover {
    color: var(--color-hover);
}

.post-list-item__comments svg {
    margin-right: 0.5em;
    height: 15px;
}

.post-list-item__views {
    float: right;
}
.post-list-item__views svg {
    display: inline-block;
    margin-right: 0.2em;
    margin-top: -0.15em;
    height: 15px;
}

/**
* Pinned post list item
*/
.post-list-item_pinned {
    position: relative;
}

.post-list-item_pinned::after {
    position: absolute;
    right: 55px;
    top: 50px;
    display: block;
    content: '\e811';
    font-family: 'codex-edu';
    color: #5e6575;
    font-size: 15px;
}

/**
 * Set cover button
 */
.posts-list-item__cover {
    display: block;
    height: 300px;
    margin: 20px calc(-1 * var(--islandPadding)) 0;
    background-color: var(--lightGrayBackground);
    background-size: cover;
    background-position: center center;
    color: var(--color-gray);
    text-align: center;
    cursor: pointer;
    transition: height 150ms ease-in, filter 400ms ease-in;
    will-change: height, filter;
}

.posts-list-item__cover--empty {
    height: 0;
    background-image: none !important;
}

.posts-list-item__cover--empty-showed {
    height: 300px;
}

.posts-list-item__cover--empty:hover {
    color: color-mod(var(--color-gray) blackness(+50%));
}

.posts-list-item__cover svg {
    margin-top: 110px;
    width: 100px;
    opacity: 0;
    transition: opacity 150ms ease;
}

.posts-list-item__cover--empty svg {
    opacity: 1;
}

.posts-list-item__cover--preview {
    filter: blur(1.7px) grayscale(1);
}

.post-list-item__link {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: var(--article-link-z-index);
}

@media (--mobile) {
    /**
    * Articles list - mobile
    */
    .post-list-item {
        padding: 15px;
    }

    .post-list-item__title {
        font-size: 1.15em;
    }

    .post-list-item_pinned .post-list-item__title {
        margin-right: 22px;
    }

    .post-list-item_pinned::after {
        top: 15px;
        right: 15px;
        font-size: 12px;
    }

    .post-list-item__body {
        font-size: 14px;
    }

    .post-list-item__footer {
        margin-top: 15px;
        padding-top: 15px;
    }

    .post-list-item__views svg {
        margin-top: -0.15em;
    }

    .posts-list-item__cover,
    .posts-list-item__cover--empty-showed {
        height: 170px;
        margin: 20px -15px -16px -15px;
    }

    .posts-list-item__cover--empty {
        height: 0;
    }

}
