/* BUNDLE: articles-extra-bundle | Generated: 2026-03-07 20:23:20 | Sources: 10 */

/* --- 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: #3498db;
}

.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 #3498db;
    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,
.stats-item .bookmark-counter {
    font-size: 0.875rem;
}

.article-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 3px 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;
}




/* --- 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 #3498db;
    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: #3498db;
    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: #3498db;
    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: #3498db;
}

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

.pbl-lbl:hover i {
    color: #3498db;
}

.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: #3498db;
    color: white;
    border: 2px solid #3498db;
}

.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: #2980b9;
    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: #3498db;
}
.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: #3498db;
    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 #3498db;
    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: #3498db;
    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: #3498db;
}

.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: #3498db !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;
    }
}

