/* ============================================
   Стили для виджетов раздела статей
   ============================================ */

/* ========== PopularArticles Widget ========== */
.popular-articles-widget {
    margin: 60px 0;
}

.popular-articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.popular-articles-view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4caf50;
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.popular-articles-view-all:hover {
    gap: 12px;
}

.popular-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.popular-article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popular-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.popular-article-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

.popular-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.popular-article-card:hover .popular-article-image {
    transform: scale(1.05);
}

.popular-article-content {
    padding: 20px;
}

.popular-article-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.4;
}

.popular-article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-article-title a:hover {
    color: #4caf50;
}

.popular-article-intro {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}

.popular-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 13px;
    color: #999;
}

.popular-article-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.popular-article-views {
    display: flex;
    align-items: center;
    gap: 6px;
}

.popular-article-read-more {
    display: inline-block;
    padding: 10px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
}

.popular-article-read-more:hover {
    background: #4caf50;
    color: #fff;
}

/* ========== Responsive ========== */
@media (max-width: 1200px) {
    .popular-articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .popular-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .popular-articles-grid {
        grid-template-columns: 1fr;
    }

    .popular-articles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .popular-article-content {
        padding: 16px;
    }

    .popular-article-title {
        font-size: 16px;
    }
}

/* ========== ФАЗА 2: Дополнительные стили ========== */

/* ========== Article Navigation Widget ========== */
.article-navigation-widget {
    margin: 60px 0;
    padding: 30px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
}

.article-nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}

.article-nav-prev,
.article-nav-next {
    min-width: 0;
}

.article-nav-link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.article-nav-link:hover {
    background: #f9f9f9;
    border-color: #34826e;
}

.article-nav-direction {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.article-nav-prev .article-nav-direction {
    justify-content: flex-start;
}

.article-nav-next .article-nav-direction {
    justify-content: flex-end;
}

.article-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.article-nav-prev .article-nav-title {
    text-align: left;
}

.article-nav-next .article-nav-title {
    text-align: right;
}

.article-nav-center {
    display: flex;
    justify-content: center;
}

.article-nav-up {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.article-nav-up:hover {
    background: #34826e;
    border-color: #34826e;
}

.article-nav-placeholder {
    min-height: 80px;
}

/* ========== Phase 2 Responsive ========== */
@media (max-width: 992px) {
    .article-nav-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .article-nav-prev,
    .article-nav-next {
        order: 2;
    }

    .article-nav-center {
        order: 1;
    }

    .article-nav-prev .article-nav-title,
    .article-nav-next .article-nav-title {
        text-align: left;
    }

    .article-nav-prev .article-nav-direction,
    .article-nav-next .article-nav-direction {
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .article-navigation-widget {
        margin: 40px 0;
        padding: 20px 0;
    }

    .article-nav-link {
        padding: 12px;
    }

    .article-nav-title {
        font-size: 14px;
    }

    .article-nav-up {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* ========== Forum Style Categories ========== */
.categories-forum-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 40px 0;
}

.forum-category-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.forum-category-row:hover {
    border-color: #34826e;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.1);
}

.forum-category-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 12px;
}

.forum-category-icon img {
    max-width: 48px;
    max-height: 48px;
}

.forum-icon-default {
    color: #4caf50;
}

.forum-category-content {
    flex: 1;
    min-width: 0;
}

.forum-category-header {
    margin-bottom: 6px;
}

.forum-category-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.forum-category-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forum-category-title a:hover {
    color: #34826e;
}

.forum-category-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.forum-subcategories {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.forum-subcategory-link {
    color: #105b82;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.forum-subcategory-link:hover {
    color: #0b0a0a;
    text-decoration: underline;
}

.forum-separator {
    color: #ccc;
}

.forum-view-all-link {
    color: #999;
    text-decoration: none;
    font-style: italic;
    transition: color 0.2s ease;
}

.forum-view-all-link:hover {
    color: #4caf50;
}

.forum-category-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.forum-stat-item {
    text-align: center;
    min-width: 60px;
}

.forum-stat-subcategories .forum-stat-value {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5c6bc0;
}

.forum-stat-subcategories svg {
    flex-shrink: 0;
}

.forum-stat-value {
    font-size: 20px;
    color: #333;
    line-height: 1.2;
    margin-bottom: 4px;
}

.forum-stat-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #ffa726;
}

.forum-stat-rating svg {
    flex-shrink: 0;
}

.forum-stat-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.forum-stat-divider {
    width: 1px;
    height: 40px;
    background: #e0e0e0;
}

.forum-category-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    transition: all 0.3s ease;
}

.forum-category-arrow a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #666;
    transition: color 0.3s ease;
}

.forum-category-row:hover .forum-category-arrow {
    background: #34826e;
}

.forum-category-row:hover .forum-category-arrow a {
    color: #fff;
}

/* ========== Forum Style Responsive ========== */
@media (max-width: 1200px) {
    .forum-category-stats {
        gap: 16px;
    }

    .forum-stat-item {
        min-width: 50px;
    }

    .forum-stat-value {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .forum-category-row {
        flex-wrap: wrap;
    }

    .forum-category-icon {
        width: 56px;
        height: 56px;
    }

    .forum-category-icon img {
        max-width: 40px;
        max-height: 40px;
    }

    .forum-category-stats {
        order: 3;
        width: 100%;
        justify-content: space-around;
        padding-top: 16px;
        border-top: 1px solid #f0f0f0;
        gap: 12px;
    }

    .forum-stat-divider {
        display: none;
    }

    .forum-category-arrow {
        order: 2;
    }
}

@media (max-width: 768px) {
    .forum-category-row {
        padding: 16px;
        gap: 16px;
    }

    .forum-category-icon {
        width: 48px;
        height: 48px;
    }

    .forum-category-icon img {
        max-width: 32px;
        max-height: 32px;
    }

    .forum-category-title {
        font-size: 18px;
    }

    .forum-subcategories {
        font-size: 12px;
    }

    .forum-category-stats {
        gap: 8px;
    }

    .forum-stat-item {
        min-width: auto;
    }

    .forum-stat-value {
        font-size: 16px;
    }

    .forum-stat-label {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .forum-category-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        position: relative;
        padding-right: 50px;
    }

    .forum-category-icon {
        align-self: center;
    }

    .forum-category-content {
        width: 100%;
    }

    .forum-category-arrow {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .forum-category-stats {
        border-top: none;
        padding-top: 0;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .forum-stat-item {
        padding: 12px;
        background: #f9f9f9;
        border-radius: 8px;
    }
}

/* ========== Child Forum Style (Category Page Children) ========== */
.child-forum-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.child-forum-row:hover {
    border-color: #34826e;
    box-shadow: 0 2px 12px rgba(76, 175, 80, 0.1);
}

/* Icon/Image Section */
.child-forum-icon {
    flex-shrink: 0;
    position: relative;
}

.child-forum-category .child-forum-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 12px;
}

.child-forum-icon-img {
    max-width: 60px;
    max-height: 60px;
}

.child-forum-icon-default {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #757575;
}

.child-forum-icon-folder svg {
    color: #ffa726;
}

.child-forum-category-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #34826e;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

/* Article Image */
.child-forum-article .child-forum-icon {
    width: 120px;
    height: 80px;
}

.child-forum-image-link {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.child-forum-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.child-forum-row:hover .child-forum-image {
    transform: scale(1.05);
}

/* Content Section */
.child-forum-content {
    flex: 1;
    min-width: 0;
}

.child-forum-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.child-forum-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.child-forum-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.child-forum-title a:hover {
    color: #34826e;
}

.child-forum-date {
    color: #757575;
    font-size: 13px;
    white-space: nowrap;
}

.child-forum-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.child-forum-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Subcategories */
.child-forum-subcategories {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
}

.child-forum-subcategory-link {
    color: #105b82;
    text-decoration: none;
    transition: color 0.3s ease;
}

.child-forum-subcategory-link:hover {
    color: #0b0a0a;
    text-decoration: underline;
}

.child-forum-separator {
    color: #ccc;
}

.child-forum-more-link {
    color: #757575;
    text-decoration: none;
    font-style: italic;
    transition: color 0.3s ease;
}

.child-forum-more-link:hover {
    color: #34826e;
}

/* Statistics Section */
.child-forum-stats {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.child-forum-stat-item {
    text-align: center;
    min-width: 60px;
}

.child-forum-stat-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.child-forum-stat-value svg {
    color: #757575;
}

.child-forum-stat-subcats {
    color: #5c6bc0;
}

.child-forum-stat-subcats svg {
    color: #5c6bc0;
}

.child-forum-stat-rating {
    color: #ffa726;
}

.child-forum-stat-rating svg {
    color: #ffa726;
}

.child-forum-stat-label {
    font-size: 11px;
    color: #757575;
    text-transform: lowercase;
}

/* Arrow Section */
.child-forum-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.child-forum-arrow a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #757575;
    text-decoration: none;
}

.child-forum-arrow svg {
    transition: transform 0.3s ease;
}

.child-forum-row:hover .child-forum-arrow {
    background: #34826e;
}

.child-forum-row:hover .child-forum-arrow a {
    color: #fff;
}

.child-forum-row:hover .child-forum-arrow svg {
    transform: translateX(4px);
}

/* ========== Child Forum Responsive ========== */
@media (max-width: 1200px) {
    .child-forum-stats {
        gap: 16px;
    }

    .child-forum-stat-item {
        min-width: 50px;
    }

    .child-forum-stat-value {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .child-forum-row {
        flex-wrap: wrap;
    }

    .child-forum-category .child-forum-icon {
        width: 64px;
        height: 64px;
    }

    .child-forum-icon-img {
        max-width: 48px;
        max-height: 48px;
    }

    .child-forum-article .child-forum-icon {
        width: 100px;
        height: 70px;
    }

    .child-forum-stats {
        order: 3;
        width: 100%;
        justify-content: space-around;
        padding-top: 16px;
        border-top: 1px solid #f0f0f0;
        gap: 12px;
    }

    .child-forum-arrow {
        order: 4;
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .child-forum-row {
        padding: 16px;
        gap: 16px;
    }

    .child-forum-category .child-forum-icon {
        width: 56px;
        height: 56px;
    }

    .child-forum-article .child-forum-icon {
        width: 90px;
        height: 60px;
    }

    .child-forum-title {
        font-size: 16px;
    }

    .child-forum-description {
        font-size: 13px;
    }

    .child-forum-subcategories {
        font-size: 12px;
    }

    .child-forum-stat-value {
        font-size: 16px;
    }

    .child-forum-stat-label {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .child-forum-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        position: relative;
        padding-right: 50px;
    }

    .child-forum-category .child-forum-icon {
        align-self: center;
    }

    .child-forum-article .child-forum-icon {
        width: 100%;
        height: 200px;
    }

    .child-forum-image-link {
        border-radius: 12px;
    }

    .child-forum-content {
        width: 100%;
    }

    .child-forum-arrow {
        position: absolute;
        top: 16px;
        right: 16px;
        order: unset;
        margin-left: 0;
    }

    .child-forum-stats {
        border-top: none;
        padding-top: 0;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .child-forum-stat-item {
        padding: 12px;
        background: #f9f9f9;
        border-radius: 8px;
    }
}

/* ========== Category Navigation Pages ========== */
.category-children-list {
    margin-top: 30px;
    margin-bottom: 40px;
}

.category-children-list .items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Убираем дефолтные стили пагинации для категорий */
.category-children-list .pager {
    margin-top: 30px;
}

/* ========== Recent Articles Feed ========== */
.recent-articles-feed {
    margin: 40px 0;
}

.recent-articles-feed__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 30px;
    color: #333;
}

.recent-articles-feed__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feed-article-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feed-article-item:hover {
    border-color: #34826e;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.1);
}

.feed-article-item__image {
    flex-shrink: 0;
    width: 100px;
    height: 65px;
}

.feed-article-item__image-link {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.feed-article-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feed-article-item:hover .feed-article-item__img {
    transform: scale(1.05);
}

.feed-article-item__content {
    flex: 1;
    min-width: 0;
}

.feed-article-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.feed-article-item__title {
    flex: 1;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.feed-article-item__title a {
    color: #34826e;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.feed-article-item__title a:hover {
    color: #2d6f5e;
    border-bottom-color: #34826e;
}

.feed-article-item__date {
    flex-shrink: 0;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.feed-article-item__intro {
    margin: 0 0 16px;
    color: #666;
    font-size: 15px;
    line-height: 1.6;
}

.feed-article-item__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 16px;
}

.feed-article-item__author {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.feed-article-item__author svg {
    flex-shrink: 0;
    color: #34826e;
}

.feed-article-item__author-name {
    color: #666;
    font-weight: 500;
}

.feed-article-item__author-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #fff3e0;
    border-radius: 12px;
    color: #f57c00;
    font-size: 13px;
    font-weight: 600;
}

.feed-article-item__author-rating svg {
    color: #f57c00;
}

.feed-article-item__stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.feed-article-item__stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #999;
    font-size: 14px;
}

.feed-article-item__stat svg {
    flex-shrink: 0;
    color: #999;
}

.feed-article-item__stat--views svg {
    color: #5c6bc0;
}

.feed-article-item__stat--rating {
    color: #ffa726;
}

.feed-article-item__stat--rating svg {
    color: #ffa726;
}

.feed-article-item__stat-value {
    font-weight: 600;
    color: #333;
}

.feed-article-item__stat-label {
    color: #999;
}

/* ========== Recent Articles Feed Responsive ========== */
@media (max-width: 992px) {
    .feed-article-item {
        padding: 20px;
    }

    .feed-article-item__title {
        font-size: 18px;
    }

    .feed-article-item__intro {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .recent-articles-feed {
        margin: 30px 0;
    }

    .recent-articles-feed__title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .feed-article-item {
        padding: 16px;
        gap: 16px;
    }

    .feed-article-item__image {
        width: 100px;
        height: 65px;
    }

    .feed-article-item__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .feed-article-item__title {
        font-size: 17px;
    }

    .feed-article-item__date {
        font-size: 13px;
    }

    .feed-article-item__meta {
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .feed-article-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .feed-article-item__image {
        width: 100%;
        height: 200px;
    }

    .feed-article-item__content {
        width: 100%;
    }

    .feed-article-item__title {
        font-size: 16px;
    }

    .feed-article-item__intro {
        font-size: 13px;
    }

    .feed-article-item__author {
        font-size: 13px;
    }

    .feed-article-item__stats {
        gap: 16px;
    }

    .feed-article-item__stat {
        font-size: 13px;
    }
}

/* ========== My Articles Page Styles ========== */
.my-article-item.feed-article-item {
    border-color: #e5e7eb;
}

.my-article-item.feed-article-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.my-article-item .feed-article-item__image {
    width: 200px;
    height: 130px;
}

.feed-article-item__title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

/* Старые стили для совместимости */
.article-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.article-status-badge--warning {
    background-color: #fef3c7;
    color: #92400e;
}

.article-status-badge--success {
    background-color: #d1fae5;
    color: #065f46;
}

.article-status-badge--secondary {
    background-color: #e5e7eb;
    color: #4b5563;
}

/* Новые стили бейджа статуса (единообразные с остальными) */
.feed-article-badge-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.feed-article-badge-status--warning {
    background-color: #f59e0b;
}

.feed-article-badge-status--success {
    background-color: #10b981;
}

.feed-article-badge-status--secondary {
    background-color: #6b7280;
}

.feed-article-badge-status--danger {
    background-color: #dc3545;
}

.my-article-item__rejection {
    display: flex;
    gap: 10px;
    padding: 12px;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.5;
}

.my-article-item__rejection svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.my-article-item__rejection strong {
    display: block;
    margin-bottom: 4px;
}

.my-article-item__moderated {
    color: #059669;
}

.my-article-item__moderated svg {
    color: #059669;
}

/* Убрано - теперь используется my-article-item__meta-row */

/* ========== My Articles Responsive ========== */
@media (max-width: 768px) {
    .my-article-item .feed-article-item__image {
        width: 100%;
        height: 200px;
    }
}

/* ========== Article Type Badges ========== */
.feed-article-item__badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 8px;
}

.feed-article-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background: #33836E;
}

.feed-article-type-badge.feed-article-type-case {
    background: #1976d2;
}

.feed-article-type-badge.feed-article-type-poll {
    background: #7b1fa2;
}

.feed-article-type-badge.feed-article-type-discussion {
    background: #2a6d5d;
}

.feed-article-type-badge.feed-article-type-fraud_alert {
    background: #c0392b;
}

.feed-article-type-badge.feed-article-type-legislative_changes {
    background: #2a6d5d;
}

.feed-article-type-badge.feed-article-type-checklist {
    background: #2a6d5d;
}

.feed-article-type-badge.feed-article-type-article {
    background: #455a64;
}

.feed-article-badge-lawyers {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background-color: #33836E;
}

.feed-article-badge-pinned {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    background-color: #e74c3c;
}

.feed-article-badge-pinned svg {
    flex-shrink: 0;
}

/* ========== Recent Articles Sidebar Widget ========== */
.recent-articles-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.recent-articles-sidebar__title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #337ab7;
}

.recent-articles-sidebar__create-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #33836E 0%, #2a6d5d 100%);
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 16px;
    box-shadow: 0 2px 8px rgba(51, 131, 110, 0.3);
}

.recent-articles-sidebar__create-btn:hover {
    background: linear-gradient(135deg, #2a6d5d 0%, #225847 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 131, 110, 0.4);
    color: #fff;
    text-decoration: none;
}

.recent-articles-sidebar__create-btn svg {
    flex-shrink: 0;
}

.recent-articles-sidebar__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-article-item {
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.sidebar-article-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-article-item__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-article-item__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.sidebar-article-item__link {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-article-item__link:hover {
    color: #337ab7;
    text-decoration: none;
}

.sidebar-article-item__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-article-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: fit-content;
}

.sidebar-article-badge--case {
    background-color: #e3f2fd;
    color: #1976d2;
}

.sidebar-article-badge--poll {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.sidebar-article-badge--discussion {
    background-color: #e8f5f1;
    color: #2a6d5d;
}

.sidebar-article-badge--fraud_alert {
    background-color: #fef5f5;
    color: #c0392b;
}

.sidebar-article-badge--legislative_changes {
    background-color: #e8f5f1;
    color: #2a6d5d;
}

.sidebar-article-badge--checklist {
    background-color: #e8f5f1;
    color: #2a6d5d;
}

.sidebar-article-item__info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #666;
}

.sidebar-article-item__date {
    color: #666;
}

.sidebar-article-item__comments {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
}

.sidebar-article-item__comments svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

@media (max-width: 991px) {
    .recent-articles-sidebar {
        margin-top: 30px;
    }
}

/* ========== Recent Article Comments Widget (Compact) ========== */
.recent-article-comments-widget--compact {
    margin: 0 0 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.recent-comments-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #34826e;
}

.recent-comments-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.recent-comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-comment-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.recent-comment-item:hover {
    background: #f0f8f6;
    transform: translateX(4px);
}

.recent-comment-author-avatar {
    flex-shrink: 0;
}

.recent-comment-author-avatar img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.recent-comment-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.recent-comment-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.recent-comment-text {
    font-size: 13px;
    line-height: 1.4;
    color: #555;
    margin-bottom: 4px;
}

.recent-comment-text a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-comment-text a:hover {
    color: #34826e;
}

.recent-comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: #999;
    flex-wrap: wrap;
}

.recent-comment-article,
.recent-comment-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.recent-comment-article svg,
.recent-comment-time svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.recent-comment-article a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.recent-comment-article a:hover {
    color: #34826e;
}

@media (max-width: 576px) {
    .recent-article-comments-widget--compact {
        padding: 16px;
    }

    .recent-comment-item {
        gap: 10px;
        padding: 10px;
    }

    .recent-comment-author-avatar img {
        width: 36px;
        height: 36px;
    }

    .recent-comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ========== Article Badges (from article.php inline styles) ========== */
.article-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.article-type-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #33836E;
}

.article-type-badge.article-type-case {
    background: #33836E;
}

.article-type-badge.article-type-poll {
    background: #33836E;
}

.article-badge-lawyers-only {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background-color: #33836E;
}

.article-updated-date {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* ========== Article Index Page (from index.php inline styles) ========== */
/* Header страницы статей */
.page-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
}

.page-header-flex .categories__title {
    text-align: left;
    margin: 0;
}

.article-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.btn-article-action {
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-article-action i {
    font-size: 14px;
}

.btn-success {
    background-color: #5cb85c;
    color: #fff;
    border: 1px solid #5cb85c;
}

.btn-success:hover {
    background-color: #449d44;
    border-color: #449d44;
    color: #fff;
}

.btn-primary {
    background-color: #337ab7;
    color: #fff;
    border: 1px solid #337ab7;
}

.btn-primary:hover {
    background-color: #286090;
    border-color: #286090;
    color: #fff;
}

/* Layout для страницы статей */
.articles-index-page .row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.articles-index-page .col-8 {
    flex: 0 0 calc(66.666% - 20px);
    max-width: calc(66.666% - 20px);
}

.articles-index-page .col-4 {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
}

/* Планшеты (992px и меньше) */
@media (max-width: 992px) {
    .page-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header-flex .categories__title {
        margin-bottom: 10px;
    }

    .articles-index-page .row {
        gap: 20px;
    }

    .articles-index-page .col-8,
    .articles-index-page .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Мобильные (768px и меньше) */
@media (max-width: 768px) {
    .page-header-flex {
        margin-bottom: 15px;
    }

    .article-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        width: 100%;
    }

    .btn-article-action {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .articles-index-page .row {
        flex-direction: column;
    }
}

/* Маленькие мобильные (480px и меньше) */
@media (max-width: 480px) {
    .page-header-flex .categories__title {
        font-size: 24px;
    }

    .btn-article-action {
        font-size: 13px;
        padding: 10px 16px;
    }
}

/* ========== My Articles Tabs ========== */
.my-articles-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
}

.my-articles-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.my-articles-tab:hover {
    border-color: #34826e;
    color: #34826e;
    text-decoration: none;
}

.my-articles-tab.active {
    background: #34826e;
    border-color: #34826e;
    color: #fff;
}

.my-articles-tab.active .my-articles-tab-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.my-articles-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: #e9ecef;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

/* My Articles Tabs Responsive */
@media (max-width: 768px) {
    .my-articles-tabs {
        padding: 12px;
        gap: 6px;
    }

    .my-articles-tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    .my-articles-tab-count {
        min-width: 20px;
        height: 20px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .my-articles-tabs {
        flex-direction: column;
    }

    .my-articles-tab {
        width: 100%;
        justify-content: space-between;
    }
}

/* ========== My Article Item Layout ========== */
.my-article-item .my-article-item__meta-row,
.my-article-item .feed-article-item__meta.my-article-item__meta-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

.my-article-item .my-article-item__badges {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    order: 1 !important;
}

.my-article-item .my-article-item__meta-row .feed-article-item__stats {
    display: flex !important;
    justify-content: flex-end !important;
    order: 2 !important;
    margin-left: auto !important;
}

.my-article-item__header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.my-article-item__header-row .feed-article-item__title-wrapper {
    flex: 1;
    min-width: 0;
}

.my-article-item__actions {
    flex-shrink: 0;
}

.my-article-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.my-article-edit-btn:hover {
    background: #e6e6e6;
    border-color: #adadad;
    color: #333;
    text-decoration: none;
}

.my-article-edit-btn svg {
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .my-article-item__header-row {
        flex-direction: column;
        gap: 10px;
    }

    .my-article-item__actions {
        align-self: flex-start;
    }
}

/* ========== Article Rating Block ========== */
.change-rating-link {
    display: block;
    margin-top: 15px;
    color: #1A77A3;
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

.change-rating-link:hover {
    color: #145b7d;
    text-decoration: none;
}

.rate__result .thank-text {
    display: block;
    margin-bottom: 5px;
}

/* ========== Article Intro Text Block ========== */
.article-intro-text {
    margin-bottom: 30px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8faf9 0%, #e8f5f1 100%);
    border-left: 4px solid #34826e;
    border-radius: 0 8px 8px 0;
}

.article-intro-text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.article-intro-text a {
    color: #34826e;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(52, 130, 110, 0.3);
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.article-intro-text a:hover {
    color: #2a6d5d;
    text-decoration-color: #2a6d5d;
}

@media (max-width: 768px) {
    .article-intro-text {
        padding: 16px 20px;
        margin-bottom: 24px;
    }

    .article-intro-text p {
        font-size: 14px;
    }
}

