/* Uzel News Post Actions 1.2.0 */

.uzel-news-post-meta-actions,
.uzel-news-post-actions,
.uzel-news-post-discussion,
.uzel-news-post-meta-actions *,
.uzel-news-post-actions *,
.uzel-news-post-discussion * {
    box-sizing: border-box;
}

.uzel-news-post-meta-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    padding: 10px 0;
}

.uzel-news-post-meta-actions__left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.uzel-news-post-author {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.uzel-news-post-actions__avatar,
.uzel-news-post-author img {
    flex: 0 0 auto;
    width: 40px !important;
    height: 40px !important;
    border-radius: 999px !important;
    object-fit: cover;
}

.uzel-news-post-author__text {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.uzel-news-post-author__text strong {
    display: block;
    max-width: 180px;
    overflow: hidden;
    color: #1f2937;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uzel-news-post-author__text em {
    display: block;
    color: #8a96a8;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.15;
}

.uzel-news-post-stats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.uzel-news-post-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 0 11px;
    border-radius: 999px;
    background: #ffffff;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.uzel-news-post-stat-pill i {
    color: #6b7280;
    font-size: 13px;
    line-height: 1;
}

.uzel-news-post-actions {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex: 0 0 auto;
}

.uzel-news-post-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #0095ff;
    cursor: pointer;
    transition: transform .18s ease, color .18s ease, background-color .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.uzel-news-post-action i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 30px;
    line-height: 1;
}

.uzel-news-post-action.is-share {
    color: #0095ff;
}

.uzel-news-post-action.is-subscribe {
    color: #f04f9a;
}

.uzel-news-post-action.is-active {
    color: #f04f9a;
}

.uzel-news-post-action:hover,
.uzel-news-post-action:focus {
    background: rgba(0, 149, 255, .08);
    transform: translateY(-1px);
}

.uzel-news-post-action.is-subscribe:hover,
.uzel-news-post-action.is-subscribe:focus {
    background: rgba(240, 79, 154, .08);
}

.uzel-news-post-action span {
    color: currentColor;
    font-size: 12px;
    font-weight: 900;
}

.uzel-news-post-actions--page-icons {
    margin-left: auto;
}

.uzel-news-post-actions--hover {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    gap: 8px;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.uzel-news-post-actions--hover .uzel-news-post-action {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
    backdrop-filter: blur(10px);
}

.uzel-news-post-actions--hover .uzel-news-post-action i {
    width: 22px;
    height: 22px;
    font-size: 20px;
}

.uzel-news-post-actions--hover.is-always-visible,
*:hover > .uzel-news-post-actions--hover,
article:hover .uzel-news-post-actions--hover,
.post:hover .uzel-news-post-actions--hover,
.uzel-news-card:hover .uzel-news-post-actions--hover,
.w-grid-item:hover .uzel-news-post-actions--hover,
.t-feed__post:hover .uzel-news-post-actions--hover {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.uzel-news-post-actions__toast {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.uzel-news-post-actions__toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Discussion */

.uzel-news-post-comment-button,
.uzel-news-post-discussion__send,
.uzel-news-post-discussion__cancel,
.uzel-news-post-discussion__login a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #0095ff;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.uzel-news-post-comment-button:hover,
.uzel-news-post-discussion__send:hover,
.uzel-news-post-discussion__login a:hover {
    background: #007ee0;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 149, 255, .18);
}

.uzel-news-post-comment-button i {
    font-size: 15px;
}

.uzel-news-post-discussion {
    position: relative;
    margin: 34px 0;
    padding: 24px;
    border: 1px solid #dbe7f3;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .06);
}

.uzel-news-post-discussion__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.uzel-news-post-discussion__head span {
    display: block;
    margin-bottom: 5px;
    color: #0095ff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.uzel-news-post-discussion__head h2 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.12;
}

.uzel-news-post-discussion__head p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.uzel-news-post-discussion__empty {
    padding: 18px;
    border: 1px dashed #cfe0f1;
    border-radius: 20px;
    background: #f8fbff;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.uzel-news-post-discussion__comments {
    display: grid;
    gap: 12px;
}

.uzel-news-post-discussion-comment {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid #eef3f8;
    border-radius: 20px;
    background: #fbfdff;
}

.uzel-news-post-discussion-comment__avatar img {
    width: 36px !important;
    height: 36px !important;
    border-radius: 999px !important;
    object-fit: cover;
}

.uzel-news-post-discussion-comment__content header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.uzel-news-post-discussion-comment__content strong {
    color: #111827;
    font-size: 14px;
    font-weight: 900;
}

.uzel-news-post-discussion-comment__content time {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.uzel-news-post-discussion-comment__text {
    color: #334155;
    font-size: 14px;
    line-height: 1.6;
}

.uzel-news-post-discussion-comment__text p {
    margin: 0 0 10px;
}

.uzel-news-post-discussion-comment__text p:last-child {
    margin-bottom: 0;
}

.uzel-news-post-discussion__reply {
    margin-top: 16px;
}

.uzel-news-post-discussion__reply textarea {
    display: block;
    width: 100%;
    min-height: 120px;
    padding: 14px 16px;
    border: 1px solid #dbe7f3;
    border-radius: 20px;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
}

.uzel-news-post-discussion__reply textarea:focus {
    border-color: #0095ff;
    box-shadow: 0 0 0 4px rgba(0, 149, 255, .10);
}

.uzel-news-post-discussion__reply-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.uzel-news-post-discussion__cancel {
    background: #f1f5f9;
    color: #334155 !important;
}

.uzel-news-post-discussion__cancel:hover {
    background: #e2e8f0;
    box-shadow: none;
}

.uzel-news-post-discussion__login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
    background: #f8fbff;
}

.uzel-news-post-discussion__login p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.uzel-news-post-discussion__forum-link {
    display: inline-flex;
    margin-top: 16px;
    color: #0095ff !important;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none !important;
}

.uzel-news-post-discussion__toast {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.uzel-news-post-discussion__toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .uzel-news-post-meta-actions {
        align-items: flex-start;
        gap: 12px;
    }

    .uzel-news-post-meta-actions__left {
        display: grid;
        gap: 10px;
    }

    .uzel-news-post-stats {
        gap: 6px;
    }

    .uzel-news-post-stat-pill {
        min-height: 24px;
        padding: 0 9px;
        font-size: 12px;
    }

    .uzel-news-post-action {
        width: 38px;
        height: 38px;
    }

    .uzel-news-post-action i {
        width: 24px;
        height: 24px;
        font-size: 25px;
    }

    .uzel-news-post-discussion {
        padding: 18px;
        border-radius: 22px;
    }

    .uzel-news-post-discussion__head {
        display: grid;
    }

    .uzel-news-post-discussion__head h2 {
        font-size: 23px;
    }

    .uzel-news-post-discussion-comment {
        grid-template-columns: 32px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .uzel-news-post-discussion-comment__avatar img {
        width: 32px !important;
        height: 32px !important;
    }

    .uzel-news-post-discussion-comment__content header {
        display: grid;
        gap: 3px;
    }

    .uzel-news-post-discussion__reply-actions,
    .uzel-news-post-discussion__login {
        display: grid;
    }
}


/* Version 1.1.1: кнопка комментария как основная кнопка ЛК */
.uzel-news-post-comment-button.uzel-account-button.us-btn-style_3 {
    min-height: 46px;
    padding: 0 22px;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--uzel-custom-primary-bg, #0095ff) !important;
    color: var(--uzel-custom-primary-text, #ffffff) !important;
    box-shadow: 0 14px 28px rgba(0, 149, 255, .18);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

.uzel-news-post-comment-button.uzel-account-button.us-btn-style_3 i,
.uzel-news-post-comment-button.uzel-account-button.us-btn-style_3 span {
    color: currentColor !important;
}

.uzel-news-post-comment-button.uzel-account-button.us-btn-style_3:hover,
.uzel-news-post-comment-button.uzel-account-button.us-btn-style_3:focus {
    background: var(--uzel-custom-primary-hover-bg, #007ee0) !important;
    color: var(--uzel-custom-primary-hover-text, #ffffff) !important;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(0, 149, 255, .22);
}

/* Version 1.2.0: автор статьи и авторы комментариев кликабельны */
.uzel-news-post-author,
.uzel-news-post-discussion-comment__author {
    color: inherit;
    text-decoration: none;
}

.uzel-news-post-author[href],
.uzel-news-post-discussion-comment__author[href] {
    cursor: pointer;
}

.uzel-news-post-author[href]:hover strong,
.uzel-news-post-discussion-comment__author[href]:hover strong {
    text-decoration: underline;
}

/* Version 1.2.1: кликабельный автор новости */
.uzel-news-post-author,
.uzel-news-post-author--link {
    cursor: pointer;
    text-decoration: none !important;
}
.uzel-news-post-author:hover strong,
.uzel-news-post-author:focus strong {
    color: #0095ff;
}
