/* Стили для модуля Пост-Ответ */

/* 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;
    }
}
