/* BUNDLE: articles-extra-bundle | Generated: 2026-07-09 20:12:42 | Sources: 12 */

/* --- File: tag-overflow.css --- */
.article-tags {
    position: relative;
    line-height: 1.5;
    margin: 0 0 8px;
    transition: max-height 0.3s ease;
    visibility: visible;
    /* ВРЕМЕННО: показываем теги сразу */
    display: flex;
    align-items: baseline;
}



.article-tags.tags-ready {

    visibility: visible;
    /* Показываем теги после обработки JavaScript */

    /* display: inline-table; */
    display: flex;
    align-items: baseline;

}



.article-tags.expanded {

    height: auto;

}



.article-tags .tags-container {

    /* display: inline-flex; */

    flex-wrap: wrap;

    gap: 5px;

    align-items: center;

    display: inline;

}



.article-tags .tag {

    display: inline-flex;

    align-items: center;

    background-color: #f0f2f5;

    color: #4a5568;

    padding: 3px 10px;

    border-radius: 15px;

    font-size: 0.75rem;

    text-decoration: none;

    transition: background-color 0.2s;

    white-space: nowrap;
    margin-right: 0 !important;

}



.article-tags .tag:hover {

    background-color: #e2e8f0;

    color: #2d3748;

}



.more-tags-container {

    display: block;

    margin-top: 5px;

}



.show-more-tags {

    display: none;
    /* Скрыт по умолчанию, покажем через JavaScript */

    margin-left: 5px;

    color: #4299e1;

    font-size: 0.85rem;

    cursor: pointer;

    white-space: nowrap;

    background: none;

    border: none;

    padding: 3px 8px;

    border-radius: 15px;

    background-color: #ebf4ff;

    transition: background-color 0.2s;

}



.show-more-tags:hover {

    background-color: #bee3f8;

    color: #2b6cb0;

}



.tags-label {

    font-weight: 500;

    margin-right: 8px;

    white-space: nowrap;

}



/* Стили для скрытых тегов */

.article-tags .hidden-tag {

    display: none !important;

}



/* В развернутом состоянии показываем все теги */

.article-tags.expanded .hidden-tag {

    display: inline-flex !important;

}

/* --- File: likes-popup.css --- */
/* Popup для отображения списка пользователей, оценивших статью */
.likes-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.likes-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.likes-popup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.likes-popup-overlay.show .likes-popup {
    transform: scale(1);
}

.likes-popup-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.likes-popup-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.likes-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s ease;
}

.likes-popup-close:hover {
    color: #333;
}

.likes-popup-content {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.likes-user-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.likes-user-item {
        background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
            border-radius: 12px;
            padding: 12px 16px;
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 12px;
            transition: all 0.3s ease;
            border: 1px solid #e5e7eb;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            margin-bottom: 8px;
}

.likes-user-item:last-child {
    /* border-bottom: none; */
}

.likes-user-item:hover {
    /* background-color: #f3f4f6;
    border-radius: 8px; */
    background: linear-gradient(145deg, #fef3e2 0%, #fef9e7 100%);
    border-color: #f59e0b;
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.2);
    transform: translateY(-1px);

}

.likes-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    border: 2px solid #e9ecef;
}

.likes-user-info {
    flex: 1;
}

.likes-user-name {
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    font-size: 14px;
}

.likes-user-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.likes-user-name a:hover {
    color: #747bf5;
}

.likes-user-date {
    font-size: 12px;
    color: #666;
    margin: 0;
}

.likes-popup-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.likes-popup-empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

/* Анимация загрузки */
.likes-popup-loading {
    text-align: center;
    padding: 40px 20px;
}

.likes-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #747bf5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .likes-popup {
        width: 95%;
        max-height: 90vh;
    }
    
    .likes-popup-header {
        padding: 16px;
    }
    
    .likes-popup-title {
        font-size: 16px;
    }
    
    .likes-popup-content {
        padding: 8px;
    }
    
    .likes-user-avatar {
        width: 36px;
        height: 36px;
    }
}

/* Стили для кликабельных счетчиков лайков */
.likes-count-clickable,
.dislikes-count-clickable {
    cursor: pointer;
}

.likes-count-clickable:hover,
.dislikes-count-clickable:hover {
    text-decoration: underline;
}

/* Для кнопок с лайками */
.action-btn .likes-count-clickable,
.action-btn .dislikes-count-clickable {
    pointer-events: auto;
}

.action-btn .likes-count-clickable:hover,
.action-btn .dislikes-count-clickable:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* MY CSS */
.likes-popup-close:hover{
	color: inherit;
  background-color: #eeeeee;
}

/*END MY CSS*/


/* --- File: right-sidebar.css --- */
/* Стили для правого сайдбара и его блоков */

.right-sidebar {
    border-radius: 8px;
    padding: 20px 0;
    min-width: 260px;
    max-width: 340px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* JS handles positioning (Smart Sticky) */
    position: relative;
    z-index: 100;
}

@media (max-width: 768px) {
    .right-sidebar {
        display: none;
    }
}

.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.tags-section,
.tags-section-right-sidebar,
.popular-users-section,
.latest-comments-section,
.latest-users-section {
    background: #ffffff;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.tags-section h3,
.tags-section-right-sidebar h3,
.popular-users-section h3,
.latest-comments-section h3,
.latest-users-section h3 {
    font-size: 17px;
    color: #666666;
    font-weight: 600;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.homepage-tag-link {
    background: #e3f2fd;
    border-radius: 50px;
    padding: 4px 10px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.homepage-tag-link:hover {
    background: #bbdefb;
    color: #0d47a1;
}

.popular-users-list, .latest-users-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popular-user-item, .latest-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.user-nickname-link {
    color: #1976d2;
    text-decoration: none;
    font-weight: 500;
}
.user-nickname-link:hover {
    text-decoration: underline;
    color: #0d47a1;
}

.article-count, .registration-date {
    color: #888;
    font-size: 13px;
}

.latest-comments-list {
    display: flex;
    flex-direction: column;
}

.latest-comment-item {
    background: #fff;
    border-radius: 4px;
    padding: 8px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    font-size: 14px;
}

.comment-text {
    color: #333;
		border-left: 0 solid #6366f1;
		border-radius: 0;
		padding: 0;
		background: inherit;
		border-radius: 0;
}

.comment-article a {
    color: #1976d2;
    text-decoration: none;
    font-size: 14px;
}
.comment-article a:hover {
    text-decoration: underline;
}

.comment-content-preview {
    color: #888;
    font-size: 14px;
    margin-top: 2px;
}

.view-all-users {
    margin-top: 10px;
    text-align: right;
}


/* --- File: right-sidebar-animations.css --- */
/* Анимация появления блоков сайдбара */
.sidebar-block-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1);
}
.sidebar-block-visible {
    opacity: 1;
    transform: none;
}

/* Отключение анимаций при начальной загрузке */
.no-transition {
    transition: none !important;
}

/* Аккордеон: свернутый блок */
/* Свернутый блок и обычный блок теперь с position: relative для позиционирования pin */
.sidebar-section > div.collapsed {
    max-height: 54px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(.4,0,.2,1);
    position: relative;
		border-radius: 6px!important;
		background-color: #ffffff;
}
.sidebar-section > div {
    transition: max-height 0.4s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden; /* Гарантируем, что контент не вылезает при анимации */
}

/* Кнопка закрепления */
.sidebar-pin-btn {
    position: absolute;
    top: 5px;
    right: 2px;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #222;
    opacity: 0.55;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.2s, color 0.2s;
}
.sidebar-pin-btn:hover {
    opacity: 1;
    color: #111;
		background: none;
}

/* Визуальный эффект закрепления */

.pinned,
.sidebar-section > div[data-block-id]:first-child,
.sidebar-section > div[data-block-id]:nth-child(2) {
    background: #ffffff;
    border: 1px solid #1976d2;
    /* Важно сохранить max-height в списке переходов */
    transition: max-height 0.4s cubic-bezier(.4,0,.2,1), box-shadow 0.3s, background 0.3s, border 0.3s;
    border-radius: 8px;
}

/* Синий цвет для иконки закрепления в закрепленных блоках */
.pinned .sb-pin-icon,
.sidebar-section > div[data-block-id]:first-child .sb-pin-icon,
.sidebar-section > div[data-block-id]:nth-child(2) .sb-pin-icon {
    color: #1976d2 !important;
    opacity: 1 !important;
}
@keyframes pin-pop {
    0% { box-shadow: 0 0 0 0 #1976d2; }
    60% { box-shadow: 0 0 0 6px #1976d2; }
    100% { box-shadow: 0 0 0 2px #1976d2; }
}

/* Визуальный эффект открепления */
.unpinned {
    animation: unpin-shake 0.4s ease-out;
}

@keyframes unpin-shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-3px); }
    100% { transform: translateX(0); }
}


/* --- File: bookmark-counter.css --- */
/* Стили для счетчика избранного */

.bookmark-counter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: #6b7280;
    transition: all 0.3s ease;
}

.bookmark-counter-clickable {
    cursor: pointer;
    border-radius: 10px;
    padding: 6px 8px;
    transition: all 0.3s ease;
    background-color: #f3f4f6;
    font-size: 14px;
    position: relative; /* Для позиционирования tooltip */
}

.bookmark-counter-clickable:hover {
    background-color: #f59e0b;
    color: white;
}

.bookmark-counter i {
    font-size: 0.9rem;
    color: #f59e0b;
}

.bookmark-counter-clickable:hover i {
    color: white;
}

.bookmark-counter-text {
    font-weight: 500;
    min-width: 16px;
    text-align: center;
}

/* Интеграция со стилями кнопки избранного */
.bookmark-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    font-size: 16px;
    transition: all 0.2s ease;
    overflow: visible; /* Разрешаем tooltip выходить за границы кнопки */
}

.bookmark-btn i {
    font-size: 18px;
    transition: color 0.2s ease, transform 0.2s ease;
    color: #999;
}

.bookmark-btn:hover{
		background-color: hsla(0, 0%, 100%, 0);
		color: #ffffff;
} 

.bookmark-btn .bookmark-counter {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
    text-align: center;
}

.bookmark-btn .bookmark-counter-clickable {
    padding: 0;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bookmark-btn .bookmark-counter-clickable:hover {
    color: #f59e0b;
}

/* При наведении на кнопку */
.bookmark-btn:hover i {
    color: #f59e0b;
}

.bookmark-btn:hover .bookmark-counter {
    color: #f59e0b;
}

/* Активное состояние - полностью оранжевая иконка (добавлено в избранное) */
.bookmark-btn.active i {
    color: #f59e0b;
    fill: #f59e0b;
}

.bookmark-btn.active .bookmark-counter {
    color: #f59e0b;
    font-weight: 700;
		font-size: 0.95rem;
}

/* Текст кнопки скрывается */
.bookmark-btn .bookmark-text {
    display: none;
}

/* КРАСИВОЕ МОДАЛЬНОЕ ОКНО ИЗБРАННОГО */
.bookmarks-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.bookmarks-popup.active {
    display: flex;
    animation: fadeInOverlay 0.3s ease;
}

.action-group.bookmark-group > button.action-btn.bookmark-btn.with-padding {
    gap: 6px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    /* padding: 4px 6px; */
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
}

.bookmark-btn.guest-btn {
    cursor: default;
}

.bookmark-btn.guest-btn .bookmark-counter-clickable {
    cursor: pointer;
}
.action-btn:hover {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bookmarks-popup-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 650px;
    width: 95%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 10px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(40px) rotateY(10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0) rotateY(0deg);
    }
}

/* ЗАГОЛОВОК МОДАЛЬНОГО ОКНА */
.bookmarks-popup-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    position: relative;
}

.bookmarks-popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.bookmarks-popup-title {
    margin: 0;
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.bookmarks-popup-title::before {
    content: '⭐';
    font-size: 1.2em;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(5deg); }
}

.bookmarks-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.bookmarks-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.1);
}

/* СПИСОК ПОЛЬЗОВАТЕЛЕЙ */
.bookmarks-users-list {
    padding: 10px;
    display: flex;
    flex-direction: column;
    max-height: 60vh;
    overflow-y: auto;
}

.bookmarks-users-list::-webkit-scrollbar {
    width: 12px;
}

.bookmarks-users-list::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 10px;
    margin: 8px;
}

.bookmarks-users-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
    border-radius: 10px;
    border: 2px solid #f1f5f9;
    transition: all 0.3s ease;
}

.bookmarks-users-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
    transform: scale(1.1);
}

/* КАРТОЧКИ ПОЛЬЗОВАТЕЛЕЙ - КОМПАКТНЫЙ ВИД */
.bookmark-user-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 8px;
}

/* Анимации удалены для более быстрого и компактного отображения */

/* АВАТАРЫ - КОМПАКТНЫЙ ВИД */
.bookmark-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f59e0b;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.bookmark-user-item:hover {
    background: linear-gradient(145deg, #fef3e2 0%, #fef9e7 100%);
    border-color: #f59e0b;
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.2);
    transform: translateY(-1px);
}

.bookmark-user-item:hover .bookmark-user-avatar {
    border-color: #d97706;
    transform: scale(1.05);
}

/* ИНФОРМАЦИЯ О ПОЛЬЗОВАТЕЛE - КОМПАКТНЫЙ ВИД */
.bookmark-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.bookmark-user-name {
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
    font-size: 1rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bookmark-user-nickname {
    color: #374151;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

.bookmark-user-nickname:hover {
    color: #f59e0b;
    text-decoration: underline;
}

.bookmark-user-date {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 400;
}

.bookmark-user-date i {
    color: #f59e0b;
    font-size: 0.7rem;
}

/* СОСТОЯНИЕ БЕЗ ДАННЫХ */
.no-bookmarks {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    margin: 20px;
}

.no-bookmarks i {
    font-size: 4rem;
    background: linear-gradient(45deg, #f59e0b, #d97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.no-bookmarks h4 {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 1.25rem;
    font-weight: 700;
}

.no-bookmarks p {
    margin: 0;
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {

    .bookmark-user-item {
            margin-bottom: 4px;
        }

    .bookmarks-popup-content {
        margin: 15px;
        border-radius: 16px;
        max-width: calc(100vw - 30px);
    }
    
    .bookmarks-popup-header {
        padding: 16px 20px;
    }
    
    .bookmarks-popup-title {
        font-size: 1.2rem;
    }
    
    .bookmarks-users-list {
        padding: 10px;
        gap: 5px;
        justify-content: center;
    }
    
    .bookmark-user-item {
        padding: 8px;
    }
    
    .bookmark-user-avatar {
        width: 50px;
        height: 50px;
    }
    
    .bookmark-user-name {
        font-size: 0.9rem;
    }
    
    .bookmark-user-nickname {
        font-size: 0.8rem;
    }
    
    .bookmark-user-date {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .bookmarks-popup-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .bookmarks-users-list {
        padding: 5px;
        gap: 0;
    }
    
    .bookmark-user-item {
        padding: 8px;
    }
    
    .bookmark-user-avatar {
        width: 45px;
        height: 45px;
    }
}

/* Анимации загрузки */
.bookmark-counter.loading {
    opacity: 0.6;
    pointer-events: none;
}

.bookmark-counter.loading::after {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid #f59e0b;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: bookmarkSpin 0.8s linear infinite;
    margin-left: 4px;
}

@keyframes bookmarkSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Интеграция в карточки статей */
.article-card .bookmark-counter,
.article-item .bookmark-counter,
.ds-card-stats-item .bookmark-counter {
    font-size: 0.875rem;
}

.ds-article-card-stats .bookmark-counter {
    color: #f59e0b;
    font-weight: 500;
}

/* Стили для мини-счетчика */
.bookmark-counter-mini {
    font-size: 0.75rem;
    padding: 1px 4px;
}

.bookmark-counter-mini i {
    font-size: 0.75rem;
}

/* Успешное обновление */
.bookmark-counter-updated {
    animation: bookmarkPulse 0.5s ease;
}

@keyframes bookmarkPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Стили для списка в админ-панели */
.admin-bookmarks-stats .bookmark-counter {
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}




/* --- File: articles-filter-modal.css --- */
/* Стили для модального окна фильтров статей */

.filter-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 60px 20px 0; /* 60px сверху под шапку, 20px снизу для воздуха */
    box-sizing: border-box;
}

.filter-modal.open {
    display: flex;
}

.filter-modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: filter-modal-fade-in 0.3s ease-out;
    position: relative;
    margin: 0 auto; /* Убрано margin: auto чтобы не конфликтовать с flex-центрированием */
    z-index: 900;
    max-height: 100%; /* Занимает всё доступное место в контейнере с учетом его padding */
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Важно: обрезает контент по радиусу углов */
}
div#filter-modal {
	padding: 20px
}

@keyframes filter-modal-fade-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1a1a1a;
    font-weight: 600;
}

.filter-modal-close {
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    background: none;
    border: none;
    padding: 5px;
		line-height: 20px;
}

.filter-modal-close:hover {
    color: #333;
		background-color: #eeeeee;
		line-height: 20px;
}

.filter-modal-body {
    padding: 24px;
    overflow-y: auto; /* Прокрутка только внутри тела */
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Стилизация скроллбара для Webkit (Chrome, Safari, Edge) */
.filter-modal-body::-webkit-scrollbar {
    width: 6px;
}

.filter-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.filter-modal-body::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
    border: 1px solid transparent;
}

.filter-modal-body::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

.filter-modal .form-group {
    margin-bottom: 20px;
}

.filter-modal label {
    display: flex;
    /* margin-bottom: 8px; */
    font-weight: 500;
    color: #4a4a4a;
    font-size: 0.95rem;
		align-items: center;
}

.filter-modal input[type="text"],
.filter-modal select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background-color: #f9f9f9;
}

.filter-modal input[type="text"]:focus,
.filter-modal select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 0px rgba(59, 130, 246, 0.1);
    background-color: #fff;
}

.filter-modal .filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.filter-modal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.filter-modal .button-secondary {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    color: #4a4a4a !important;
}

.filter-modal .button-secondary:hover {
    background-color: #e5e5e5;
    border-color: #ccc;
}

@media (max-width: 480px) {
    .filter-modal {
        padding: 65px 10px 62px; /* Сверху шапка (60), снизу мобильное меню (60) */
    }
    
    .filter-modal-content {
        max-width: 100%;
    }
    
    .filter-modal-header {
        padding: 8px 12px;
    }
    
    .filter-modal-body {
        padding: 8px;
        flex: 1;
        overflow-y: auto;
    }

    .filter-modal .form-group {
        margin-bottom: 12px;
    }

    .filter-modal .filter-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ui-radio, .ui-checkbox {
        padding: 6px 4px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Кнопки открытия фильтров */
#open-filter-btn-desktop {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    background-color: #8c9aa6;
    color: #ffffff !important;
    border: none;
    cursor: pointer;
}

#open-filter-btn-desktop:hover {
    background: #647c90;
    transform: translateY(0);
}

/* Группы переключателей */
.filter-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.ui-radio, .ui-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #4b5563;
    transition: color 0.2s;
		user-select: none;
}

.ui-radio:hover, .ui-checkbox:hover {
    color: #1a1a1a;
}

.ui-radio input, .ui-checkbox input {
    display: none;
}

.ui-radio-mark, .ui-checkbox-mark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.ui-radio-mark {
    border-radius: 50%;
}

.ui-checkbox-mark {
    border-radius: 6px;
}

.ui-radio input:checked + .ui-radio-mark {
    border-color: #3b82f6;
    background-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.ui-checkbox input:checked + .ui-checkbox-mark {
    border-color: #10b981;
    background-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.ui-radio-mark::after, .ui-checkbox-mark::after {
    content: '';
    display: block;
    background-color: #fff;
    transition: transform 0.2s ease-out, opacity 0.2s;
    opacity: 0;
    transform: scale(0);
}

.ui-radio-mark::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.ui-checkbox-mark::after {
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px) scale(0);
		margin-bottom: 2px;
}

.ui-radio input:checked + .ui-radio-mark::after {
    opacity: 0;
    transform: scale(1);
}

.ui-checkbox input:checked + .ui-checkbox-mark::after {
    opacity: 0;
    transform: rotate(-45deg) translate(1px, -1px) scale(1);
}

.ui-label {
    font-weight: 500;
}

@media (max-width: 768px) {
	div#filter-modal {
		padding: 20px 10px;
	}
}



/* --- File: article-tooltips.css --- */


/* --- File: reading-stats.css --- */
/* ================================
   СТИЛИ ДЛЯ СТАТИСТИКИ ЧТЕНИЯ
   ================================ */

.article-meta-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 10px 0 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-left: 0 solid #747bf5;
    border-radius: 8px;
    align-items: center;
}

.article-meta-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #555;
    position: relative;
    cursor: help;
    transition: all 0.2s ease;
}

/* Глобальный тултип (универсальный) */
.global-site-tooltip {
    position: fixed;
    z-index: 1100;
    background-color: #2c3e50;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.global-site-tooltip.active {
    opacity: 0.95;
    visibility: visible;
}

/* Стрелка тултипа */
.global-site-tooltip::after {
    content: '';
    position: absolute;
    left: var(--arrow-x, 50%);
    border: 6px solid transparent;
    transform: translateX(-50%);
}

/* Стрелка снизу (тултип сверху) */
.global-site-tooltip[data-position="top"]::after {
    top: 100%;
    border-top-color: #2c3e50;
}

/* Стрелка сверху (тултип снизу) */
.global-site-tooltip[data-position="bottom"]::after {
    bottom: 100%;
    border-bottom-color: #2c3e50;
}

.article-meta-stats i {
    color: #747bf5;
    min-width: 16px;
    text-align: center;
}

.views-count, .word-count, .character-count, .digit-count, .number-count, .punctuation-count {
    font-weight: 500;
}

.views-count strong, .word-count strong, .character-count strong, .digit-count strong, .number-count strong, .punctuation-count strong {
    color: #2c3e50;
    font-weight: 600;
}

.reading-time {
    background-color: white;
    padding: 8px 12px;
    border-radius: 3px;
    border-left: 3px solid #2ecc71;
}

.reading-time strong {
    color: #2ecc71;
    font-weight: 600;
    font-size: 16px;
}

.reading-sessions {
    background-color: white;
    padding: 8px 12px;
    border-radius: 3px;
    border-left: 3px solid #9b59b6;
}

.reading-sessions strong {
    color: #9b59b6;
    font-weight: 600;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .article-meta-stats {
        display: none;
    }
}

@media (max-width: 480px) {
    .mobile-meta-buttons-container {
        display: flex !important;
        gap: 8px;
        margin: 10px 0 12px 0;
        flex-wrap: wrap;
    }
    
    .meta-toggle-btn, .stats-modal-trigger-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        flex: 1;
        min-width: 120px;
        padding: 8px 12px;
        background: #f3f4f6;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .meta-toggle-btn:active, .stats-modal-trigger-btn:active {
        transform: scale(0.96);
        background: #e5e7eb;
    }

    .stats-modal-trigger-btn {
        background: #eff6ff;
        border-color: #dbeafe;
        color: #2563eb;
    }

    .stats-modal-trigger-btn i {
        color: #2563eb !important;
    }

    .stats-modal-trigger-btn:active {
        background: #dbeafe;
    }
}

/* МОДАЛЬНОЕ ОКНО */
.stats-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
}

.stats-modal-overlay.active {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.stats-modal {
    background-color: white;
    width: 100%;
    border-radius: 12px 12px 0 0;
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.stats-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.stats-modal-title {
    margin: 0;
    font-size: 1.25rem;
    color: #2c3e50;
    font-weight: 700;
}

.stats-modal-close {
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4b5563;
    transition: all 0.2s ease;
}

.stats-modal-close:hover {
    background: #e5e7eb;
    color: #111827;
}

.stats-modal-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f9fafb;
}

.stats-modal-item:last-child {
    border-bottom: none;
}

.stats-modal-item-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.stats-modal-item-label i {
    font-size: 1.1rem;
    color: #747bf5;
    margin-top: 3px;
    min-width: 24px;
    text-align: center;
}

.stats-modal-item-label span {
    display: block;
    color: #374151;
    font-weight: 600;
}

.stats-modal-item-description {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: normal !important;
    margin-top: 2px;
}

.stats-modal-item-value {
    font-weight: 700;
    color: #111827;
    font-size: 1rem;
    text-align: right;
    padding-left: 15px;
}

/* Специальные стили для времени чтения и сессий в модале */
.stats-modal-item.reading-time {
    border-left: 4px solid #2ecc71;
    padding-left: 10px;
    background: #f0fff4;
    margin: 5px -10px;
    padding-right: 10px;
}

.stats-modal-item.reading-time .stats-modal-item-label i {
    color: #2ecc71;
}

.stats-modal-item.reading-time .stats-modal-item-value {
    color: #2ecc71;
}

.stats-modal-item.reading-sessions {
    border-left: 4px solid #9b59b6;
    padding-left: 10px;
    background: #faf5ff;
    margin: 5px -10px;
    padding-right: 10px;
}

.stats-modal-item.reading-sessions .stats-modal-item-label i {
    color: #9b59b6;
}

.stats-modal-item.reading-sessions .stats-modal-item-value {
    color: #9b59b6;
}


/* --- File: article-share.css --- */
/* Стили для функционала "Поделиться статьей" */

.pbl-sec {
    margin: 20px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.pbl-lbl {
    font-weight: 600;
    color: #495057;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.pbl-lbl:hover {
    color: #747bf5;
}

.pbl-lbl i {
    color: #6c757d;
    font-size: 18px;
    transition: color 0.3s ease;
}

.pbl-lbl:hover i {
    color: #747bf5;
}

.pbl-act {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Скрываем социальные кнопки по умолчанию */
.pbl-act .pbl-itm:not(.copy-link-btn) {
    display: none;
}

/* Popup для социальных сетей */
.pbl-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.pbl-modal.active {
    display: flex;
}

.pbl-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.pbl-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.pbl-hd {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.pbl-cls {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.pbl-cls:hover {
    background: #f8f9fa;
    color: #495057;
}

.pbl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.pbl-itm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pbl-itm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.pbl-itm:active {
    transform: translateY(0);
}

/* Кнопка копирования ссылки */
.copy-link-btn {
    background: #747bf5;
    color: white;
    border: 2px solid #747bf5;
}

.copy-link-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
    color: white;
}

.copy-link-btn.copied {
    background: #28a745;
    border-color: #28a745;
    animation: copySuccess 0.5s ease;
}

@keyframes copySuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Социальные кнопки */
.btn-tg {
    background: #0088cc;
    color: white;
    border: 2px solid #0088cc;
}

.btn-tg:hover {
    background: #006699;
    border-color: #006699;
    color: white;
}

.btn-vk {
    background: #4c75a3;
    color: white;
    border: 2px solid #4c75a3;
}

.btn-vk:hover {
    background: #3b5a7d;
    border-color: #3b5a7d;
    color: white;
}

.btn-ok {
    background: #ed812b;
    color: white;
    border: 2px solid #ed812b;
}

.btn-ok:hover {
    background: #d46e1c;
    border-color: #d46e1c;
    color: white;
}

.btn-wa {
    background: #25d366;
    color: white;
    border: 2px solid #25d366;
}

.btn-wa:hover {
    background: #1da851;
    border-color: #1da851;
    color: white;
}

.btn-fb {
    background: #3b5998;
    color: white;
    border: 2px solid #3b5998;
}

.btn-fb:hover {
    background: #2d4373;
    border-color: #2d4373;
    color: white;
}

.btn-ml {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
}

.btn-ml:hover {
    background: #545b62;
    border-color: #545b62;
    color: white;
}

.btn-ig {
    background: #e4405f;
    color: white;
    border: 2px solid #e4405f;
}

.btn-ig:hover {
    background: #c13584;
    border-color: #c13584;
    color: white;
}

.btn-tw {
    background: #222222;
    color: white;
    border: 2px solid #222222;
}

.btn-tw:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: white;
}

/* URL поле для копирования */
.url-copy-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px;
    min-width: 300px;
    max-width: 100%;
}

.url-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #495057;
    background: transparent;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
}

.url-copy-btn {
    background: #f8f9fa;
    border: 1px solid #ced4da;
    color: #6c757d;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
}

.url-copy-btn:hover {
    background: #6366f1;
    color: #ffffff;
}

.url-copy-btn.copied {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Уведомление об успешном копировании */
.copy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.copy-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.copy-notification i {
    font-size: 16px;
}

/* Мобильная версия: скрыть копирование в основном блоке, показать в popup */
@media (max-width: 779px) {
  .pbl-sec .copy-link-btn,
  .pbl-sec .url-copy-container {
    display: none !important;
  }
  .pbl-cp-wp {
    display: block !important;
  }
}

/* Всегда показываем копирование в popup */
.pbl-cp-wp {
  display: flex !important;
	flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  background: #f8f9fa;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.pbl-cp-wp .url-input {
  flex: 1;
  width: auto !important;
  margin-bottom: 0 !important;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 8px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
	
.pbl-sec {
    margin: 0;
    padding: 0;
    background: inherit;
    border-radius: 8px;
    border: 0 solid #e9ecef;
    display: flex;
		flex-direction: row;
		align-items: stretch;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
    
    .pbl-lbl {
        text-align: center;
        justify-content: center;
    }
    
    .pbl-act {
        justify-content: center;
				flex-wrap: wrap;
				width: 100%;
    }
    
    .url-copy-container {
        min-width: auto;
        max-width: 100%;
    }
    
    .url-input {
        font-size: 12px;
    }
    
    .pbl-itm {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .pbl-act {
        flex-direction: column;
        width: 100%;
    }
    
    .pbl-itm {
        width: 100%;
        justify-content: center;
    }
    
    .url-copy-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .url-copy-btn {
        width: 100%;
        text-align: center;
    }
}

/* Анимация для иконок */
.pbl-itm i {
    transition: transform 0.3s ease;
}

.pbl-itm:hover i {
    transform: scale(1.1);
}

/* Состояние загрузки */
.pbl-itm.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.pbl-itm.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Стили для выпадающего меню "Поделиться" в списке статей */
.pbl-dd-cnt {
    position: relative;
    display: inline-block;
}

.pbl-dd-menu {
    position: absolute;
    bottom: 100%;
    left: var(--menu-left, 0);
    right: auto;
    background: #ffffff !important;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 12px;
    z-index: 100001 !important;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
    animation: shareDropdownFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shareDropdownFadeIn {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shareDropdownFadeDown {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.pbl-dd-menu.active {
    display: block;
    opacity: 1 !important;
}

.pbl-dd-menu.dropdown-bottom {
    bottom: auto;
    top: 100%;
    margin-bottom: 0;
    margin-top: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.1);
    animation: shareDropdownFadeDown 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pbl-dd-cnt.menu-open,
.article-card.menu-open {
    z-index: 100 !important;
}

/* Треугольник-указатель */
.pbl-dd-menu::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: var(--arrow-x, 15px);
    width: 12px;
    height: 12px;
    background: #fff;
    transform: translateX(-50%) rotate(45deg);
    border-right: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.pbl-dd-menu.dropdown-bottom::after {
    bottom: auto;
    top: -6px;
    border-right: none;
    border-bottom: none;
    border-left: 1px solid #f0f0f0;
    border-top: 1px solid #f0f0f0;
}

.pbl-dd-soc {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-bottom: 12px;
}

.pbl-dd-itm {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Иконки соцсетей в дропдауне */
.pbl-dd-soc .pbl-dd-itm {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 18px;
    color: #6c757d;
    background: #f8f9fa;
}

.pbl-dd-soc .pbl-dd-itm:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pbl-dd-itm.btn-tg:hover { background: #0088cc; color: #fff; }
.pbl-dd-itm.btn-wa:hover { background: #2de100; color: #fff; }
.pbl-dd-itm.btn-fb:hover { background: #1b00c9; color: #fff; }
.pbl-dd-itm.btn-ig:hover { background: #fb098e; color: #fff; }
.pbl-dd-itm.btn-tw:hover { background: #000000; color: #ffffff; }
.pbl-dd-itm.btn-vk:hover { background: #4c75a3; color: #fff; }
.pbl-dd-itm.mail-btn:hover { background: #4c75a3; color: #fff; }
.pbl-dd-itm.viber-btn:hover { background: #4c75a3; color: #fff; }

/* Текстовый fallback для X (Twitter), если иконка не загрузилась */
.twitter-x-text {
    font-size: 18px;
    font-weight: 800;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    line-height: 1;
}

/* Если иконка отображается (есть ширина), можно скрыть текст или наоборот.
   Но так как мы не знаем наверняка, просто сделаем так, чтобы они не мешали друг другу. */
.pbl-dd-itm.btn-tw i:empty + .twitter-x-text {
    display: block;
}



.pbl-dd-sep {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 0;
}

.copy-link-btn-dropdown {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    gap: 10px;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    justify-content: flex-start !important;
}

.copy-link-btn-dropdown:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.copy-link-btn-dropdown i {
    font-size: 16px;
    color: #6c757d;
}

.copy-link-btn-dropdown.copied {
    background: #e8f5e9;
    color: #2e7d32;
}

.copy-link-btn-dropdown.copied i {
    color: #2e7d32;
}


/* --- File: replies.css --- */
/* Стили для модуля Пост-Ответ */

/* UI Fixes for article cards on this page */
.article-more-dropdown { z-index: 10002 !important; }
.bookmark-popup { z-index: 10003 !important; }

/* Global Replies Feed Header */
.replies-all-header { 
    padding: 0; 
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); 
    border-bottom: 1px solid #e2e8f0; 
    margin-bottom: 30px; 
    border-radius: 12px; 
    text-align: center; 
} 
.replies-all-header h1 { 
    font-size: 2.2rem; 
    color: #1e293b; 
    margin-bottom: 10px; 
    font-weight: 800; 
} 
.replies-all-header p { 
    color: #64748b; 
    font-size: 1.1rem; 
}

/* Tabs for switching views */
.reply-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}
.reply-tab-item {
    text-decoration: none;
    color: #64748b;
    font-weight: 700;
    padding: 8px 18px;
    background: #f1f5f9;
    border-radius: 12px;
    transition: all 0.2s;
    font-size: 14px;
}
.reply-tab-item:hover {
    background: #e2e8f0;
    color: #1e293b;
}
.reply-tab-item.active {
    background: #60c100;
    color: #fff;
    box-shadow: 0 4px 12px rgba(96, 193, 0, 0.3);
}

/* Page specific utilities */
.replies-breadcrumb-center {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}
.replies-breadcrumb-center i {
    font-size: 0.7rem;
    margin: 0 10px;
    opacity: 0.5;
}

.replies-pagination-bottom {
    margin-top: 40px;
    text-align: center;
}

.replies-count-label {
    margin-bottom: 20px;
    color: #64748b;
}

/* Sidebar Specific Styles */
.sb-reply-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sb-reply-item {
    padding-bottom: 12px;
    border-bottom: 1px dashed #f1f5f9;
}
.sb-reply-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sb-reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.sb-reply-avatar {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    object-fit: cover;
}
.sb-reply-author {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
}
.sb-reply-badge {
    font-size: 0.65rem;
    background: #f1f5f9;
    color: #64748b;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.05em;
}
.sb-reply-link {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.3;
    margin-bottom: 2px;
    transition: color 0.2s;
}
.sb-reply-link:hover {
    color: #747bf5;
}
.sb-reply-context {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
}

/* Блок-бейдж под статьей */
.reply-badge-container {
    margin: 20px 0;
    padding: 15px 20px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.reply-badge-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reply-badge-count {
    font-size: 16px;
    font-weight: 700;
    color: #60c100;
    text-decoration: none;
}

.reply-badge-count:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.reply-badge-author {
    font-size: 13px;
    color: #6c757d;
}

.reply-badge-author strong {
    color: #2c3e50;
    font-weight: 600;
}

.reply-badge-author strong a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.reply-badge-author strong a:hover {
    color: #747bf5;
    text-decoration: underline;
}

.reply-badge-btn {
    background: #60c100;
    color: white !important;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.reply-badge-btn:hover {
    background: #5bb403;
}

/* Компактная карточка в списке статей */
.article-reply-mini-card {
    margin: 10px 0;
    padding: 10px 15px;
    background: #f8f9fa;
    border-left: 3px solid #747bf5;
    border-radius: 4px;
    font-size: 13px;
    color: #495057;
    border: 1px solid #e9ecef;
    border-left-width: 4px;
    font-family: 'Roboto', sans-serif;
}

.article-reply-mini-card .parent-title {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-top: 4px;
    line-height: 1.4;
    font-size: 14px;
}

.article-reply-mini-card .parent-title:hover {
    color: #747bf5;
    text-decoration: underline;
}

.reply-meta-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.reply-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 700;
}

.parent-author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6c757d;
}

.meta-author-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
}

.meta-author-link:hover {
    color: #747bf5;
}

.meta-avatar-mini {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

/* Страница списка ответов */
.container-replies {
    padding-top: 10px;
}

.replies-page-header {
    margin-bottom: 20px;
    padding: 20px 25px;
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-left: 4px solid #7cb342;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.replies-page-header .breadcrumb {
    margin-bottom: 8px;
    color: #94a3b8;
    font-weight: 500;
    font-size: 13px;
}

.replies-page-header .breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.replies-page-header .breadcrumb a:hover {
    color: #5c6bc0;
}

.replies-page-header .breadcrumb .current {
    color: #cbd5e1;
    margin-left: 5px;
}

.replies-page-header .text-muted {
    margin: 0;
    font-size: 11px;
    text-transform: uppercase;
    color: #78909c;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
    font-family: 'Montserrat', sans-serif;
}

.replies-page-header h1 {
    margin: 0;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}

.replies-page-header h1 a {
    color: #64b5f6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.replies-page-header h1 a:hover {
    color: #3f51b5;
}

.replies-page-header .header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.replies-page-header .original-article-link {
    color: #78909c;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    padding: 6px 0;
}

.replies-page-header .original-article-link:hover {
    color: #546e7a;
    transform: translateX(-3px);
}

.reply-button-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px !important;
    background: #60c100 !important;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    box-shadow: 0 3px 10px rgba(124, 179, 66, 0.25) !important;
    transition: all 0.2s ease !important;
    border: none !important;
    cursor: pointer;
}

.reply-button-primary:hover {
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.35) !important;
    background: #5bb403 !important;
    transform: translateY(-1px);
}

.reply-button-primary i {
    font-size: 14px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .replies-page-header {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .replies-page-header h1 {
        font-size: 16px;
    }
    
    .replies-page-header .header-actions {
        gap: 8px;
    }
    
    .reply-button-primary,
    .reply-button-secondary {
        font-size: 12px !important;
        padding: 8px 10px !important;
        flex: 1;
        justify-content: center;
    }
    
    .replies-page-header .original-article-link {
        width: 100%;
        order: 3;
        justify-content: center;
        border-top: 1px solid #f1f5f9;
        margin-top: 5px;
        padding-top: 10px;
    }
}

.reply-short-text {
    display: none;
}

@media (max-width: 480px) {
	.replies-page-header .text-muted {
		font-size: 8px;
	}
    .reply-full-text {
        display: none;
    }
    .reply-short-text {
        display: inline;
    }
}

@media (max-width: 320px) {
    .reply-full-text, .reply-short-text {
        display: none !important;
    }
    .reply-button-primary {
        width: 32px;
        height: 32px;
        padding: 0 !important;
        flex: none !important;
        justify-content: center;
        border-radius: 10px !important;
    }
    .reply-button-primary i {
        margin: 0;
        font-size: 16px;
    }
}

/* Article Card Replies Indicator Styles */
.article-replies-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fff8f1;
    border: 1px solid #ffedd5;
    border-radius: 8px;
    color: #f59e0b;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
}

.article-replies-indicator:hover {
    background: #ffedd5;
    color: #d97706;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
		border: 1px solid #e7b820;
}

.article-replies-indicator i {
    font-size: 14px;
}

.article-replies-indicator .replies-count {
    background: #f59e0b;
    color: white;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 11px;
    line-height: normal;
}

@media (max-width: 768px) {
    .article-replies-indicator {
        font-size: 13px;
        padding: 4px 10px;
    }
    .article-replies-indicator span {
        display: inline-block; /* Ensure count is visible */
    }
}




/* Кнопки в карточках */
.reply-btn, .view-replies-btn {
    color: #6c757d;
    transition: all 0.2s;
    /* font-size: 18px; */
    cursor: pointer;
}

.reply-btn:hover {
    color: #747bf5 !important;
    background: rgba(52, 152, 219, 0.1) !important;
}

.view-replies-btn:hover {
    color: #2ecc71 !important;
    background: rgba(46, 204, 113, 0.1) !important;
}
.reply-button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f1f5f9;
    color: #475569 !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.reply-button-secondary:hover {
    background: #e2e8f0;
    color: #1e293b !important;
}

/* Pagination */
.pagination-container a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    margin: 0 5px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.pagination-container a:hover {
    border-color: #60c100;
    color: #60c100;
    background: #f0fdf4;
}

.pagination-container a.active {
    background: #60c100;
    border-color: #60c100;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(96, 193, 0, 0.3);
}

/* Utility classes for visibility */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}


/* --- File: articles-view.css --- */
/* Современные стили для страницы просмотра статьи */
.full-article {
    max-width: 100%;
    margin: 0 auto;
}

/* Блок 1: Заголовок */
.article-title-block {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 20px 0;
    border-radius: 4px;
    margin-bottom: 10px;
    text-align: center;
    /* box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3); */
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 5px 5px 0 0;
    margin-top: -20px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    /* overflow: hidden; Removed to allow dropdowns to overflow */
}

/* Когда есть Wiki-панель, добавляем отступ снизу для заголовка */
.article-title-block:has(.wiki-interface) {
min-height: 150px;
}


.article-title-block.has-custom-header {
    position: relative;
    overflow: visible; /* Changed from hidden to visible */
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px 20px 55px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 5px;
}

.article-title-block h1 {
    margin: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.25;
    color: #f3f4f6;
    transition: all 0.3s ease;
}

.article-title-block.text-shadow-soft h1 {
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.article-title-block.align-left {
    align-items: flex-start;
    text-align: left;
    padding-left: 40px;
}

.article-title-block.align-right {
    align-items: flex-end;
    text-align: right;
    padding-right: 40px;
}

/* Parallax Effect */
.article-title-block.parallax-bg {
    background-attachment: fixed;
    background-size: cover;
}

/* Dividers */
.header-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.header-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 40px;
}

.header-divider.gradient-divider {
    height: 60px;
    background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
    transform: none;
    bottom: -1px;
}

/* Badge */
.article-header-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(59, 130, 246, 0.9);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.align-left .article-header-badge {
    right: 20px;
    left: auto;
}

/* Блок 2: Метаинформация */
.article-meta-block {
		border-bottom: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0 0 14px;
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 5px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 600;
}

.author-link {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s;
}

.author-link:hover {
    color: #1d4ed8;
}

/* Блок 3: Действия */
.article-actions-block {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 1px 4px -1px rgb(0 0 0 / 0.1);
    overflow: visible;
}

.actions-left, .actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.login-prompt {
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

.action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}





button#like-btn {
    color: #28a745;
}
button#dislike-btn{
    color: #dc3545;
}
button#like-btn.active {
    color: #ffffff !important;
}

button#dislike-btn.active {
    color: #ffffff !important;
}

.like-btn:hover,
.like-btn.active {
    border-color: #10b981;
    background: #10b981;
    color: white!important;
}

.dislike-btn:hover,
.dislike-btn.active {
    border-color: #ef4444;
    background: #ef4444;
    color: white!important;
}

.bookmark-btn:hover,
.bookmark-btn.active {
    border-color: #f59e0b;
    background: #f59f0b00;
    color: white!important;
}

/* Стили для кнопки репоста (ответа на пост) */
.repost-article-btn-view {
    border-color: #3b82f6 !important;
    background: #eff6ff !important;
    color: #3b82f6 !important;
		font-size: 1.1rem!important;
		padding: 6px 12px!important;
}

.repost-article-btn-view:hover {
    background: #3b82f6 !important;
    color: white !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.repost-article-btn-view i {
    color: inherit !important;
}

.likes-readonly {
    display: flex;
    gap: 16px;
}

.likes-display,
.dislikes-display {
    display: flex;
    align-items: center;
    gap: 6px;
    /* padding: 8px 12px; */
    background: #f3f4f6;
    /* border-radius: 4px; */
    color: #6b7280;
    font-weight: 500;
}

.login-prompt p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.login-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.login-link:hover {
    color: #1d4ed8;
}

/* Стили для кнопок в форме комментариев */
.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
		justify-content: space-between;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Стили для вложенных комментариев */
.comment-replies {
    margin-left: 10px;
    margin-top: 10px;
    padding-left: 10px;
}

.comment.reply {
    margin-bottom: 8px;
}

.button-secondary-article-list {
    display: inline-flex;
    align-items: center;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
    width: auto;
    background-color: #f3f4f6;
    color: #374151 !important;
    border-color: #e5e7eb;
}

.moderation-history-link{
	padding: 8px;
}



/* Галерея статьи */
.article-gallery-info {
    margin-bottom: 10px;
    color: #555;
    font-size: 15px;
}

/* Отображение рейтинга статьи */
.article-rating-display {
    cursor: pointer;
    padding: 5px 8px;
    background: #f8f9fa;
    border-radius: 10px;
    font-weight: bold;
    color: #495057;
    border: 2px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
		gap: 2px;
}

/* Отображение рейтинга для неавторизованных пользователей */
.article-rating-display.readonly {
    padding: 4px 8px;
}

/* Иконка звезды рейтинга */
.article-rating-display i.fa-star {
    color: #ffc107;
    margin-right: 4px;
}

/* Кнопка жалобы - SVG иконка */
.report-button svg {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

/* Кнопка избранного - дополнительный padding */
.bookmark-btn.with-padding {
    padding: 6px 12px;
}

/* Иконка избранного */
.bookmark-btn i.fa-bookmark {
    margin-right: 4px;
}

/* Счетчик избранного с курсором */
.bookmark-counter.clickable {
    cursor: pointer;
}

/** Стили для навигационных кнопок футера статьи (ИКОНКИ С ТУЛТИПАМИ) */
.footer-nav-article {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    background-color: #ffffff !important;
    border: 0px solid #e5e7eb !important;
    color: #4b5563 !important;
    border-radius: 12px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    width: 32px !important;
    height: 32px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

/* Footer Layout with Share Block */
.article-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 15px;
    overflow: visible; /* Добавлено */
}

.article-actions-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    overflow: visible; /* Добавлено */
}

.article-footer-share {
    display: flex;
    align-items: center;
    margin-left: auto;
    overflow: visible; /* Добавлено */
}

/* Reset Share Block inside Footer */
.article-footer-share .pbl-sec {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 15px;
    display: flex;
    align-items: center;
}

.article-footer-share .pbl-lbl {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s;
}

.article-footer-share .pbl-lbl:hover {
    color: #3b82f6;
}

.article-footer-share .pbl-act {
    display: none !important;
}

.footer-nav-article .button-text {
    display: none !important;
}

.footer-nav-article:hover {
    background-color: #e5e7eb !important;
    color: #111827 !important;
    border-color: #d1d5db !important;
		padding: 15px !important;
		border-radius: 50% !important;
}

.footer-nav-article i,
.footer-nav-article svg {
    font-size: 1.1rem !important;
    width: 20px !important;
    height: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    stroke-width: 2.2 !important;
		color: #6c757d;
}

.footer-nav-article.settings-icon:hover {
    transform: rotate(45deg) !important;
}

.footer-nav-article.delete-icon:hover {
    color: #ef4444 !important;
    background-color: #fef2f2 !important;
    border-color: #fecaca !important;
}

.footer-nav-article.edit-icon:hover {
    color: #2563eb !important;
    background-color: #eff6ff !important;
    border-color: #dbeafe !important;
}

/* --- OVERRIDES: flat 3rd level --- */
.comments-section .comment-replies {
    margin-left: 0 !important;
}

.comments-section .comment.reply-3 {
    margin-left: 0 !important;
}

.comments-section .comment.reply-3 .reply-form {
    margin-left: 0 !important;
}

/* Стили для выпадающего меню настроек (шестеренка) */
.article-settings-dropdown {
    position: relative;
    display: flex;
    width: fit-content;
    height: fit-content;
}

.settings-dropdown-menu {
    /* Позиционирование управляется через JS (position:fixed + viewport coords) */
    position: absolute; /* fallback до открытия - JS перезаписывает на fixed */
    min-width: 220px;
    max-width: 320px;
    width: max-content;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 10px;
    z-index: 9999;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.2s;
    pointer-events: none;
}

.settings-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transform-origin: var(--arrow-x, 50%) bottom;
}

/* Треугольник-указатель для меню настроек */
.settings-dropdown-menu::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: var(--arrow-x, 15px);
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-right: 1px solid rgba(229, 231, 235, 0.8);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    z-index: -1;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.05);
}

/* Состояние: открытие вниз (если сверху нет места) */
.settings-dropdown-menu.open-down {
    transform: translateY(-10px);
}

.settings-dropdown-menu.open-down.show {
    transform: translateY(0);
    transform-origin: var(--arrow-x, 50%) top;
}

.settings-dropdown-menu.open-down::after {
    bottom: auto;
    top: -6px;
    border-right: none;
    border-bottom: none;
    border-left: 1px solid rgba(229, 231, 235, 0.8);
    border-top: 1px solid rgba(229, 231, 235, 0.8);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: normal;
    word-break: break-word;
    text-align: left;
    box-sizing: border-box;
    border: none;
    background: none;
    cursor: pointer;
}

.dropdown-item:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.dropdown-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    color: #9ca3af;
    flex-shrink: 0;
}

.dropdown-item:hover i {
    color: #2563eb;
}

.dropdown-divider {
    height: 1px;
    margin: 4px 0;
    overflow: hidden;
    background-color: #e5e7eb;
}

.text-success {
    color: #10b981 !important;
}

.text-danger {
    color: #ef4444 !important;
}

.dropdown-item.delete-option:hover {
    background: #fef2f2;
    color: #dc2626 !important;
}

.dropdown-item.delete-option:hover i {
    color: #dc2626 !important;
}


/* Выпадающее меню сортировки комментариев */
.sort-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 5px;
}

.sort-dropdown {
    position: relative;
    display: inline-block;
}

.sort-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.sort-dropdown-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.sort-dropdown-btn i {
    font-size: 0.7rem;
    color: #94a3b8;
    transition: transform 0.25s ease;
}

.sort-dropdown.open .sort-dropdown-btn i {
    transform: rotate(180deg);
}

.sort-dropdown-content {
    position: absolute;
    top: var(--menu-top, calc(100% + 8px));
    bottom: var(--menu-bottom, auto);
    left: var(--menu-left, 0);
    min-width: 190px;
    width: max-content;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 6px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(var(--menu-transform-y, 10px));
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sort-dropdown.open .sort-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-dropdown-item {
    padding: 6px 10px;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-weight: 500;
		margin-bottom: 2px;
}

.sort-dropdown-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.sort-dropdown-item.active {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}



/* --- Утилитарные классы для замены inline styles --- */
.back-to-list-container {
    margin: 24px 0;
}

.mobile-meta-buttons-container {
    display: none;
}

/* Compact Meta Block */
.article-meta-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 10px;
}

.meta-pill, .meta-author-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 20px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
}

.meta-pill i, .meta-author-pill i {
    font-size: 0.9rem;
    color: #94a3b8;
}

.meta-author-pill:hover, .meta-pill:hover {
    background: #fff;
    color: #334155;
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.meta-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* Co-author pill style */
.meta-coauthor-pill {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(59, 130, 246, 0.06);
}

.meta-coauthor-pill:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.coauthor-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    color: #3b82f6;
    opacity: 0.75;
}


.meta-author-name {
    font-weight: 600;
    color: #475569;
}

/* Header Dropdown */
.article-header-dropdown {
    position: relative;
    display: inline-block;
}

.meta-more-btn {
    background: transparent;
    border: 1px solid transparent;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
}

.meta-more-btn:hover, .meta-more-btn:active {
    background: #f1f5f9;
    color: #475569;
}

.header-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    min-width: 220px;
    display: none; /* Toggled by JS */
    z-index: 100;
    padding: 6px;
    transform-origin: top right;
    animation: dropdownFadeIn 0.2s ease-out;
}

.header-dropdown-menu.show {
    display: block;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* .dropdown-item styles merged above */

.dropdown-header-item {
    padding: 8px 12px;
    font-size: 0.8rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
}

.dropdown-header-item i {
    width: 20px;
    text-align: center;
}

/* Override/Fix for title block to be more compact */
.article-title-block {
    padding: 20px 20px;
    min-height: auto; 
}

/* Hide detailed stats by default to keep header compact */
.article-meta-stats {
    display: none !important;
}

.article-meta-stats.visible {
    display: flex !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Адаптивность */
@media (max-width: 768px) {
	/* Compact Meta Block */
	.article-meta-compact {
		padding: 0;
		margin-bottom: 10px;

	}
    .action-group.likes-group>button#like-btn,button#dislike-btn {
        padding: 4px 8px;
        /* font-size: 1rem; */
    }

    .full-article {
        background-color: #fff;
        border-radius: 6px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 8px!important;
        margin-bottom: 10px!important;
    }

    .article-title-block {
        padding: 5px 8px;
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 5px 5px 0 0;
        margin-top: -10px;
    }

    .article-title-block h1 {
        font-size: 1.5rem;
        color: #e5e7eb;
    }

    .article-meta-block {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .article-actions-block {
        flex-direction: row;
        align-items: stretch;
        padding: 8px;
        display: flex;
        flex-wrap: wrap;
    }

    .article-footer-content {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
    }

    .article-actions-left {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    .article-footer-share {
        width: auto !important;
        margin-left: auto !important;
    }

    .article-footer-share .pbl-sec {
        flex-direction: row !important;
        align-items: center !important;
        gap: 5px !important;
    }

    .article-footer-share .pbl-lbl span {
        display: none !important;
    }

    .article-footer-share .pbl-lbl {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        background: #f3f4f6 !important;
        border-radius: 10px !important;
    }

    .article-footer-share .pbl-lbl i {
        margin: 0 !important;
        font-size: 1.1rem !important;
    }

    /* Навигация в футере (иконки без текста) */
    .footer-nav-article {
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 12px !important;
        justify-content: center !important;
        display: flex !important;
        align-items: center !important;
    }

    .footer-nav-article .button-text {
        display: none !important;
    }

    .button-secondary {
        font-size: 0.8rem;
    }

    .action-group {
        justify-content: center;
				display: contents;
    }

    .article-tags {
        gap: 0;
    }

    .article-meta-block-wrapper {
        display: none;
    }

    /* Контейнер для мобильных кнопок (Информация + Статистика) */
    .mobile-meta-buttons-container {
        display: flex !important;
        gap: 8px;
        margin: 10px 0 12px 0;
        flex-wrap: wrap;
    }

    .meta-toggle-btn {
        display: flex !important;
        align-items: center;
        gap: 6px;
        flex: 1;
        min-width: 120px;
        padding: 8px 14px;
        background: #f3f4f6;
        border: none;
        border-radius: 6px;
        font-size: 13px;
        color: #374151;
        cursor: pointer;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        transition: all 0.2s ease;
    }

    .meta-toggle-btn:active {
        transform: scale(0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .meta-toggle-btn i {
        font-size: 16px;
    }

    .article-meta-block-wrapper.open {
        display: block;
        margin-bottom: 12px;
    }

    .meta-item {
        display: flex;
        flex-direction: row;
        gap: 4px;
    }

    .meta-label {
        font-size: 0.7rem;
        color: #6b7280;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .meta-value {
        font-size: 0.775rem;
        color: #1f2937;
        font-weight: 600;
    }

		.article-meta-block-wrapper {
    margin-bottom: 10px;
    background: #f3f4f6;
    padding: 5px;
    border-radius: 6px;
}
.meta-left {
    gap: 0;
}
.meta-right {
    display: flex !important;
}
.desktop-only-dropdown {
    display: none !important;
}
.mobile-only-dropdown {
    display: inline-block !important;
    position: relative !important;
}
}

@media (min-width: 769px) {
    .mobile-only-dropdown { display: none !important; }
    .desktop-only-dropdown { display: inline-block !important; position: relative !important; }
}

@media (max-width: 480px) {
    .full-article {
        padding: 8px 12px;
    }

    .article-title-block h1 {
        font-size: 1.2rem;
    }

    .action-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .article-actions-block {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        padding: 8px;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0.05);
    }

}

@media (max-width: 360px) {

    .article-actions-block {
        flex-direction: row;
        align-items: stretch;
        padding: 8px;
    }

}


@media (max-width: 768px) {
    .settings-dropdown-menu {
        min-width: 260px;
        max-width: calc(100vw - 20px);
    }
		.article-meta-compact {
			margin-bottom: 0;
		}
		
		.mobile-hidden {
			display: none !important;
		}
}

@media (max-width: 480px) {
    .settings-dropdown-menu {
        max-width: calc(100vw - 20px);
        min-width: 200px;
    }
    .sort-controls {
        flex-direction: row;
        width: 100%;
        gap: 5px;
    }
    .sort-controls > span {
        display: none;
    }
    .sort-dropdown {
        flex-grow: 1;
    }
    .sort-dropdown-btn {
        /* width: 100%; */
        justify-content: space-between;
    }
}
.article-header-overlay { border-radius: inherit; pointer-events: none; }

/* Улучшенные стили для уведомлений о статусе статьи */
.article-status-notice {
    border-radius: 12px;
    padding: 16px 20px;
    margin: 10px 0 20px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    background: white; /* Базовый фон */
}

/* Цвета для разных типов алертов (если нет глобальных или нужны свои) */
.article-status-notice.alert-warning {
    background: #fffbeb;
    border-left: 5px solid #f59e0b;
}

.article-status-notice.alert-info {
    background: #eff6ff;
    border-left: 5px solid #3b82f6;
}

.article-status-notice.alert-danger {
    background: #fef2f2;
    border-left: 5px solid #ef4444;
}

.article-status-notice.alert-purple {
    background: #f5f3ff;
    border-left: 5px solid #8b5cf6;
}

.article-status-notice h4 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1f2937;
}

.article-status-notice p {
    margin-bottom: 12px;
    opacity: 0.9;
    font-size: 0.95rem;
    color: #4b5563;
}

.moderation-feedback {
    margin: 12px 0;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.04);
    border-left: 4px solid #6b7280;
    border-radius: 6px;
}

.moderation-feedback strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #374151;
}

.feedback-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1f2937;
}

.alert-warning .moderation-feedback { border-left-color: #f59e0b; background: rgba(245, 158, 11, 0.08); }
.alert-info .moderation-feedback    { border-left-color: #3b82f6; background: rgba(59, 130, 246, 0.08); }
.alert-danger .moderation-feedback  { border-left-color: #ef4444; background: rgba(239, 68, 68, 0.08); }
.alert-purple .moderation-feedback  { border-left-color: #8b5cf6; background: rgba(139, 92, 246, 0.08); }

.status-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* Новые компактные кнопки */
.draft-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.draft-btn i {
    font-size: 0.9rem;
}

.draft-btn:hover {

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.draft-btn:active {
    transform: translateY(0);
}

/* Варианты кнопок */
.draft-btn-primary {
    background: #3b82f6;
    color: white !important;
}

.draft-btn-primary:hover {
    background: #2563eb;
}

.draft-btn-success {
    background: #10b981;
    color: white !important;
}

.draft-btn-success:hover {
    background: #059669;
}

.draft-btn-secondary {
    background: #f3f4f6;
    color: #4b5563 !important;
    border-color: #e5e7eb;
}

.draft-btn-secondary:hover {
    background: #e5e7eb;
    color: #1f2937 !important;
}

.draft-btn-info {
    background: #0ea5e9;
    color: white !important;
}

.draft-btn-info:hover {
    background: #0284c7;
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
    .article-status-notice {
        padding: 12px 15px;
    }

    .draft-btn {
        padding: 8px 10px;
        justify-content: center;
        flex: 1 1 auto;
        min-width: 40px;
    }

    .draft-btn-label {
        display: none;
    }

    .draft-btn i {
        margin: 0;
        font-size: 1.1rem;
    }

    .status-actions {
        gap: 8px;
    }
}

/* Стили для неактивных кнопок действий */
.action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    filter: grayscale(1);
    pointer-events: auto; /* Позволяем клик для вызова alert */
		padding: 8px;
}

.action-btn.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    background: #adb2b6 !important;
    border-color: #e5e7eb !important;
		color: #ffffff!important;
}

/* ================================================================
   Пагинация статьи
   ================================================================ */
.article-pagination {
    margin: 0 0 15px;
    padding: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 4px -1px rgba(0,0,0,0.08);
}

.article-pagination__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.article-pagination__pages {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Кнопки Предыдущая / Следующая */
.article-pagination__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.22s ease;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    white-space: nowrap;
    user-select: none;
}

.article-pagination__btn:hover:not(.article-pagination__btn--disabled) {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 4px 12px rgba(59,130,246,0.25);
    transform: translateY(-1px);
}

.article-pagination__btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.article-pagination__btn i {
    font-size: 0.8rem;
}

/* Номера страниц */
.article-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: #6b7280;
    border: 1.5px solid #e5e7eb;
    background: #f9fafb;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.article-pagination__page:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #3b82f6;
    transform: translateY(-1px);
}

.article-pagination__page--active {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-color: transparent;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(59,130,246,0.35);
    cursor: default;
    pointer-events: none;
    transform: none;
}

.article-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #9ca3af;
    font-size: 1rem;
    user-select: none;
}

/* Информация о текущей странице (над навигацией) */
.article-page-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(99,102,241,0.06));
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: #4b5563;
}

.article-page-info i {
    color: #3b82f6;
}

.article-page-info strong {
    color: #1f2937;
}

/* Мобильные адаптации */
@media (max-width: 600px) {
    .article-pagination__btn span {
        display: none;
    }

    .article-pagination__btn {
        padding: 8px 12px;
    }

    .article-pagination__inner {
        justify-content: center;
    }
}

/* Bottom Sheet for Mobile Meta Info */
@media (max-width: 768px) {
    .article-meta-block-wrapper {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        background: #ffffff;
        z-index: 10001;
        padding: 55px 0 10px; /* Adjusted padding */
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.25);
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
        display: block !important;
        pointer-events: none;
        visibility: hidden;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .article-meta-block-wrapper.is-open {
        transform: translateY(0);
        pointer-events: auto;
        visibility: visible;
    }

    /* Handle for the bottom sheet */
    .article-meta-block-wrapper::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 48px;
        height: 5px;
        background: #cbd5e1;
        border-radius: 3px;
    }

    /* Backdrop/Overlay */
    .meta-sheet-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(4px);
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .meta-sheet-backdrop.is-active {
        opacity: 1;
        visibility: visible;
    }

    /* Redesigning content inside the sheet */
    .article-meta-block-wrapper.is-open .article-meta-compact {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        border-bottom: none;
        margin-bottom: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .article-meta-block-wrapper.is-open .meta-left {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
        box-sizing: border-box;
    }

    .article-meta-block-wrapper.is-open .meta-pill, 
    .article-meta-block-wrapper.is-open .meta-author-pill {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        background: #f8fafc;
        padding: 12px 14px;
        border-radius: 12px;
        border: 1px solid #f1f5f9;
        font-size: 0.95rem;
        box-sizing: border-box;
        justify-content: flex-start;
    }

    /* Add labels on mobile */
    .article-meta-block-wrapper.is-open .meta-pill::before,
    .article-meta-block-wrapper.is-open .meta-author-pill::before {
        font-size: 0.75rem;
        color: #94a3b8;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
        margin-right: 10px;
    }

    .article-meta-block-wrapper.is-open .meta-author-pill::before { content: 'Автор:'; }
    .article-meta-block-wrapper.is-open .meta-pill:nth-child(2)::before { content: 'Дата:'; }
    .article-meta-block-wrapper.is-open .meta-pill:nth-child(3)::before { content: 'Просмотры:'; }

    .article-meta-block-wrapper.is-open .meta-author-name,
    .article-meta-block-wrapper.is-open .meta-pill span {
        font-size: 0.95rem;
        color: #1e293b;
        font-weight: 600;
        text-align: right;
        word-break: break-all;
    }

    .article-meta-block-wrapper.is-open .meta-avatar {
        width: 20px;
        height: 20px;
        margin-right: 6px;
        flex-shrink: 0;
    }

    /* Hide more button on mobile sheet */
    .article-meta-block-wrapper.is-open .meta-right {
        display: none;
    }

    /* Title for the sheet */
    .article-meta-block-wrapper::after {
        content: 'Информация о статье';
        position: absolute;
        top: 25px;
        left: 20px;
        font-size: 1.05rem;
        font-weight: 800;
        color: #0f172a;
    }
}


/* --- File: feed-toggle.css --- */
/* ── Feed Toggle Component ────────────────────────── */
.feed-toggle {
    display: inline-flex;
    background: rgba(241, 245, 249, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
    position: relative;
    margin-left: auto;
}

.feed-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 18px;
    gap: 8px;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none !important;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    position: relative;
    z-index: 1;
}

.feed-toggle-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.feed-toggle-btn:hover {
    color: #1e293b;
    background: rgba(255, 255, 255, 0.5);
}

.feed-toggle-btn:hover i {
    transform: translateY(-1px);
}

.feed-toggle-btn.active {
    background: #fff;
    color: #6366f1; /* cat-primary blue */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.02);
}

.feed-toggle-btn.active i {
    color: #6366f1;
}

/* Specific button styles for context */
.feed-toggle-btn[href*="/articles"].active {
    color: #3b82f6; /* Blue for articles */
}
.feed-toggle-btn[href*="/catalog"].active {
    color: #6366f1; /* Indigo for catalog */
}

/* Dark mode compatibility */
.dark-mode .feed-toggle {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(51, 65, 85, 0.8);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark-mode .feed-toggle-btn {
    color: #94a3b8;
}

.dark-mode .feed-toggle-btn:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.dark-mode .feed-toggle-btn.active {
    background: #334155;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 576px) {
    .feed-toggle {
        padding: 3px;
    }
    .feed-toggle-btn {
        padding: 0 12px;
        height: 34px;
        font-size: 0.8rem;
    }
    .feed-toggle-btn i {
        font-size: 0.9rem;
    }
}

