/* Современные стили для страницы просмотра статьи */
.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;
    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: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-title-block h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #f3f4f6;
}

/* Блок 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: 4px;
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    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;
}

.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;
}

.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: 15px;
}

.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;
}

/* Адаптивность */
@media (max-width: 768px) {
    .action-group.likes-group>button#like-btn,button#dislike-btn {
        padding: 4px 8px;
        font-size: 1rem;
    }

    .full-article {
        background-color: #fff;
        border-radius: 4px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 10px!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: nowrap;
    }

    .article-actions {
        flex-direction: row;
        align-items: stretch !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;
}

}

@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 {
        /* flex-direction: row;
            align-items: stretch;
            padding: 10px; */
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 4px;
        padding: 8px;
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

}

@media (max-width: 360px) {

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

}

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