/* TO DO - Refactor exchanging .blockfeed to wdk-feed */
.feed-post-description {
    padding: 0.5rem 1rem;
}

.feed-comment-description {
    overflow-wrap: anywhere;
    padding: 0.5rem 0;
    margin-top: -0.5rem;
}

.feed-comment-description > * {
    max-width: 100%;
}

.layout-feed [data-area] .feed-post-description {
    word-wrap: break-word;
}

/* Feed refresh button */
.btn.btn-refresh {
    position: absolute;
    top: 30px;
    left: 50%;
    margin: 0 auto 8px auto;
    color: var(--feed-refresh-btn-text-color);
    background-color: var(--feed-refresh-btn-background-color);
    border-color: transparent;
    border-radius: var(--radius-large);
    transform: translateX(-50%);
    transition: .3s;
    z-index: 2;
}

.btn.btn-refresh:hover {
    color: var(--feed-refresh-btn-text-color-hover);
    background-color: var(--feed-refresh-btn-background-color-hover) !important;
    transition: .3s;
}

.btn.btn-refresh:focus,
.btn.btn-refresh:focus-visible {
    box-shadow: none !important;
}

.btn.btn-refresh:active,
.btn.btn-refresh:not(:disabled):not(.disabled):active {
    color: var(--feed-refresh-btn-text-color-focus) !important;
    background-color: var(--feed-refresh-btn-background-color-focus) !important;
    box-shadow: none !important;
}

.btn.btn-refresh.position-sticky {
    top: 0;
    left: initial;
    transform: initial;
    transition: .3s;
}

#btnFeedRefresherSticky.btn.btn-refresh {
    display: none;
}

/* Post shortcut button */
.btn.btn-post-shortcut {
    font-size: 14px !important;
    height: 40px !important;
    min-width: 40px;
    color: var(--feed-post-shortcut-btn-text-color);
    background-color: var(--feed-post-shortcut-btn-background-color);
    padding: 8px 20px 8px 20px;
    border: 1px solid transparent;
    box-shadow: none;
}

.btn.btn-post-shortcut i {
    font-size: 26px !important;
    color: var(--feed-post-shortcut-btn-icon-color);
}

.btn.btn-post-shortcut:hover {
    color: var(--feed-post-shortcut-btn-text-color-hover);
    background-color: var(--feed-post-shortcut-btn-background-color-hover);
    transition: .4s;
}

.btn.btn-post-shortcut:hover i {
    color: var(--feed-post-shortcut-btn-icon-color-hover);
}

.btn.btn-post-shortcut:focus,
.btn.btn-post-shortcut:focus-visible {
    box-shadow: 0px 3px 6px rgba(0,0,0,.10) !important;
}

.btn.btn-post-shortcut:active,
.btn.btn-post-shortcut:not(:disabled):not(.disabled):active {
    color: var(--feed-post-shortcut-btn-text-color-focus) !important;
    background-color: var(--feed-post-shortcut-btn-background-color-focus) !important;
    box-shadow: none !important;
}

.btn.btn-post-shortcut:active i,
.btn.btn-post-shortcut:not(:disabled):not(.disabled):active i {
    color: var(--feed-post-shortcut-btn-icon-color-focus);
}

/* Custom Post Input */
.form-control.control-feed {
    background-color: var(--feed-input-btn-new-post-background-color);
    border: none;
    cursor: pointer;
    height: 40px;
    border-radius: 16px;
    padding-left: 24px;
}

.form-control.control-feed::placeholder {
    color: var(--feed-input-btn-new-post-placeholder-color);
}

/* Post */
.blockfeed .post [data-area="react"] .btn.btn-inline i {
    color: var(--feed-post-counters-icon-color) !important;
}

.blockfeed .post [data-area="react"] .btn.btn-inline span {
    color: var(--feed-post-counters-text-color);
}

.blockfeed .post [data-area="react"] .btn.btn-inline:hover i,
.blockfeed .post [data-area="react"] .btn.btn-inline:hover span {
    color: var(--feed-post-counters-text-color-hover);
}

/* Achievement */
.feed-post-achievement-item:hover {
    color: var(--primary) !important;
}

.feed-post-achievement-item {
    position: relative;
    display: block;
    cursor: default;
}

.feed-post-achievement-item img {
    width: 100%;
    max-height: 300px;
}

.feed-post-achievement-label {
    position: absolute;
    left: 50%;
    bottom: -12px;
    padding: 12px;
    font-weight: 600;
    text-align: center;
    transform: translateX(-50%);
    color: var(--feed-post-achievement-msg-text-color);
    background-color: var(--feed-post-achievement-msg-background-color);
    border-radius: 8px;
}

.feed-post-achievement-label span {
    display: -webkit-box !important;
    -webkit-line-clamp: 12;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 740px) {
    .feed-post-achievement-label {
        width: 80% !important;
    }
}

@media (max-width: 576px) {
    .feed-post-achievement-label {
        width: 90% !important;
    }
}

/* Youtube */
.feed-post-youtube {
    width: 100%;
    height: 500px;
}

/* Document & Training & Survey */
.feed-post-document,
.feed-post-training,
.feed-post-survey {
    display: flex;
    flex-direction: column;
    align-items: start;
    height: 165px;
    margin-right: 1rem;
    margin-left: 1rem;
    padding: 10px;
    box-shadow: var(--box-shadow);
    border-radius: var(--radius-base);
}

@media (max-width: 576px) {
    .feed-post-document,
    .feed-post-training,
    .feed-post-survey {
        height: initial;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
    }
}

.feed-post-document .media,
.feed-post-training .media,
.feed-post-survey .media {
    align-items: center;
    flex: 1;
    width: 100%;
    border: none;
    padding: 0;
    column-gap: 16px;
    overflow: hidden;
}

@media (max-width: 576px) {
    .feed-post-document .media,
    .feed-post-training .media,
    .feed-post-survey .media {
        flex-direction: column;
        align-items: center !important;
        padding: 0 !important;
        column-gap: 0;
        row-gap: 12px;
    }
}

.feed-post-document .badge,
.feed-post-training .badge,
.feed-post-survey .badge {
    align-self: start;
}

.feed-post-document .media .media-body,
.feed-post-training .media .media-body,
.feed-post-survey .media .media-body {
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    height: 100%;
    width: 100%;
}

.feed-post-document .feed-post-title,
.feed-post-training .feed-post-title,
.feed-post-survey .feed-post-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Document */
.feed-post-document .media img {
    width: 121px;
    height: 121px;
    border-radius: var(--radius-base);
    object-fit: cover;
}

.feed-post-document .feed-post-title {
    -webkit-line-clamp: 1;
}

/* Training */
.feed-post-training .media img:not(.cover-image) {
    width: 242px;
    height: auto;
    border-radius: var(--radius-base);
}

.feed-post-training .feed-post-title {
    -webkit-line-clamp: 2;
}

/* Survey */
.feed-post-survey {
    height: 128px;
}

.feed-post-survey .feed-post-title {
    align-self: flex-start;
    -webkit-line-clamp: 2;
}

/* Certificate & News */
.feed-post-certificate,
.feed-post-news {
    position: relative;
    margin: 0 1rem;
}

.feed-post-certificate .wdk-tag,
.feed-post-news .wdk-tag {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 12px;
    border-radius: 12px;
    padding: 0px 9px 0px 9px;
    z-index: 2;
}

.feed-post-certificate .wdk-tag i,
.feed-post-news .wdk-tag i {
    font-size: 14px;
    margin-right: 4px;
}

/* Certificate */
.feed-post-certificate img {
    width: 100%;
    height: auto;
}

.feed-post-certificate .wdk-tag {
    color: var(--tertiary);
    background-color: var(--grey-01);
    box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 10%);
}

/* News */
.feed-post-news .wdk-tag {
    color: var(--white-01);
    background-color: var(--primary);
    box-shadow: 1px 1px 2px 1px rgba(255, 255, 255, 0.1);
}

.feed-post-news img {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 500px;
    max-width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    z-index: 1;
}

.feed-post-news .caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 12px;
    z-index: 2;
    background-color: rgba(26, 61, 77, 0.6);
    border-radius: 0px 0px var(--radius) var(--radius);
}

/* Pool */
.feed-post-pool {
    margin-right: 1rem;
    margin-left: 1rem;
}

@media (max-width: 576px) {
    .feed-post-pool .card {
        box-shadow: none;
        border: none;
    }
    .feed-post-pool .card .card-body {
        padding: 0 !important;
    }
}

/* Comment */
.feed-post-comment {
    display: flex;
    width: 100%;
    margin-bottom: 1rem;
}

.feed-comment-bloked {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .feed-comment-bloked label {
        font-size: 12px;
        margin-left: 10px;
        color: var(--tertiary);
    }

    @media (max-width: 576px) {
        .feed-post-comment {
            flex-direction: column;
            row-gap: 12px;
        }
    }
