/* Post */

.post-preview {
    background-color: var(--color-body);
    /* padding: 5px 0px 5px 10px; */
    margin-top: 4px;
    margin-bottom: 5px;
    overflow: hidden;
    position: relative;

    border: solid 1px color-mix(in srgb, var(--color-dialog-bg) 96%, black);
    border-left: solid 2px color-mix(in srgb, var(--color-dialog-bg) 96%, black);
    border-radius: 4px;

    display: flex;
    align-items: stretch;
    gap: 15px;
    padding-left: 0;
    transition:
        background-color 0.2s,
        border-color 0.2s;
}

.post-preview a::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
}

.post-preview:hover {
    /* width: 101%; */
    background-color: color-mix(
        in srgb,
        var(--color-accent) 20%,
        var(--color-body)
    );
    border-left: solid 2px var(--color-accent);
    border-top-color: var(--color-accent);
    border-right-color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.post-preview:hover h2 {
    color: var(--color-accent);
}

.post-preview h2 {
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text);
}

.post-preview > a > .post-title {
    font-size: 21px;
    line-height: 1.3;
}

.post-preview > a > .post-subtitle {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.post-content-preview {
    /* font-size: 16px; */
    font-style: italic;
    /* color: var(--color-text-secondary); */
}

.post-preview > .post-meta {
    color: var(--color-text-secondary);
    font-size: 0.8em;
    margin-top: 0;
    margin-bottom: 0;
    text-align: left;
    /* padding-left: 8px; */
}

.post-thumbnail {
    flex-shrink: 0;
    width: 20%;
    max-width: 65px;
    padding: 0;
    margin: 0;
}

.post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    margin: 0;
    display: block;
    border-radius: 0;
    filter: brightness(1);
    /* transition: filter 0.3s ease; */
}

.post-preview:hover .post-thumbnail img {
    filter: brightness(1.15);
}

.post-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px 0;
}

.post-info a {
    text-decoration: none;
}

.post-info .post-title {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text);
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.post-preview:hover .post-info .post-title {
    color: var(--color-accent);
}

.post-info .post-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.post-info .post-meta {
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* PAGER */

.pager {
    margin: auto 0 !important;
    padding: 0 !important;
    list-style: none;
    display: flex;
    justify-content: end;
}

.pager li > a,
.pager li > span {
    line-height: 1.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    border-radius: 4px !important;
}

.pager .disabled > a,
.pager .disabled > a:hover,
.pager .disabled > a:focus,
.pager .disabled > span {
    color: var(--color-button-bg-disabled);
    background-color: var(--color-gray);
    cursor: not-allowed;
}

.pager li.next,
.pager li.previous {
    text-align: center;
    display: flex !important;
    border-radius: 4px !important;
}

.post-container {
    border-width: 0px !important;
    margin-top: 0 !important;
}

.post-container .anchorjs-link {
    position: absolute;
    text-decoration: none !important;
}

.mini-post-list {
    margin: 20px 0 15px 0;
}

.mini-post-list .tag-text {
    font-weight: 200;
    /* Hux learn from
     *     TypeIsBeautiful,
     *     [This Post](http://zhuanlan.zhihu.com/ibuick/20186806) etc.
     */
    font-family:
        -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Arial",
        "PingFang SC", "Hiragino Sans GB", "STHeiti", "Microsoft YaHei",
        "Microsoft JhengHei", "Source Han Sans SC", "Noto Sans CJK SC",
        "Source Han Sans CN", "Noto Sans SC", "Source Han Sans TC",
        "Noto Sans CJK TC", "WenQuanYi Micro Hei", SimSun, sans-serif;
    line-height: 1.7;
}

/* .mini-post-list .post-preview {
    position: relative;
}
*/

/* Tags support End*/
/* Hux make all img responsible in post-container */
.post-container img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.3em auto;
    max-height: 400px;
}

.page-fullscreen #tag-heading {
    position: fixed;
    left: 0;
    top: 0;
    padding-bottom: 150px;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-box-pack: center;
    -webkit-box-align: center;
    display: -webkit-flex;
    -webkit-align-items: center;
    -webkit-justify-content: center;
    -webkit-flex-direction: column;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
