/* Стили для комментариев и тегов */

/* Стили для детальной страницы новости */
.news_detail {
    width: 100%;
}

.news_detail_content {
    margin-top: 40px;
}

.news_detail_meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.news_detail_date,
.news_detail_author,
.news_detail_views {
    font-size: 12px;
    font-weight: 600;
    color: #7d8293;
    text-transform: uppercase;
}

.news_detail_views i {
    font-size: 12px;
    margin-right: 5px;
}

/* Стили для иконки комментариев в списке новостей */
.post_meta ul li i.fa-comments {
    font-size: 12px;
    margin-right: 5px;
    color: #7d8293;
}

.news_detail_text {
    line-height: 1.8;
    color: #495057;
    font-size: 14px;
}

.news_detail_text h1,
.news_detail_text h2,
.news_detail_text h3,
.news_detail_text h4,
.news_detail_text h5,
.news_detail_text h6 {
    color: #131a2f;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.news_detail_text p {
    margin-bottom: 20px;
}

.news_detail_text ul,
.news_detail_text ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.news_detail_text li {
    margin-bottom: 8px;
}

.news_detail_text blockquote {
    border-left: 4px solid #fe3c52;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #6c757d;
}

/* Теги новости */
.news_detail_tags {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
}

.news_detail_tags h5 {
    color: #131a2f;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
}

.tag {
    height: 36px;
    background: rgba(254,60,82,1);
    margin-right: 6px;
    margin-bottom: 6px;
    transition: all 200ms ease;
    display: inline-block;
}

.tag a {
    display: block;
    font-size: 12px;
    font-weight: 300;
    padding-left: 27px;
    padding-right: 27px;
    line-height: 36px;
    color: #FFFFFF;
    transition: all 200ms ease;
    text-decoration: none;
}

.tag:hover {
    background: rgba(254,60,82,0.8);
}

.tag:hover a {
    color: #FFFFFF;
    text-decoration: none;
}

/* Счетчик просмотров */
.news_detail_views {
    color: #6c757d;
    font-size: 14px;
    margin-left: 15px;
}

.news_detail_views i {
    margin-right: 5px;
}

/* Комментарии */
.news_comments {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.news_comments h4 {
    color: #131a2f;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Форма комментария */
.comment_form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 0;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.comment_form h5 {
    color: #131a2f;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
}

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

.comment_form .form-control {
    border: 1px solid #ced4da;
    border-radius: 0;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 200ms ease;
    background-color: white;
    outline: none;
}

.comment_form .form-control:focus {
    border-color: #fe3c52;
    box-shadow: 0 0 0 2px rgba(254, 60, 82, 0.2);
    outline: none;
}

.comment_form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.comment_form .btn-primary {
    background: #fe3c52;
    border: none;
    border-radius: 0;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    text-transform: uppercase;
    transition: all 200ms ease;
    outline: none;
    cursor: pointer;
}

.comment_form .btn-primary:hover {
    background: rgba(254, 60, 82, 0.8);
    opacity: 0.8;
}

.comment_form .btn-primary:disabled {
    background: #7d8293;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Сообщения для комментариев */
.comment_message {
    margin-top: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    position: relative;
    animation: slideIn 0.3s ease-out;
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}

.comment_message_success {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border-left: 4px solid #28a745;
}

.comment_message_error {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    border-left: 4px solid #dc3545;
}

.comment_message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 8px 8px 0 0;
}

.comment_message_success::before {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.comment_message_error::before {
    background: linear-gradient(90deg, #dc3545, #e74c3c);
}

/* Список комментариев */
.comments_list {
    margin-top: 30px;
}

.comment_item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.comment_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f3f4;
}

.comment_header strong {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.comment_date {
    color: #6c757d;
    font-size: 12px;
}

.comment_text {
    color: #495057;
    line-height: 1.6;
    font-size: 14px;
}

/* Пагинация в стиле сайта */
.news_pagination {
    margin-top: 60px !important;
    margin-bottom: 40px !important;
    text-align: center !important;
}

.news_pagination .pagination_buttons {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.news_pagination .pagination_buttons,
.news_pagination .pagination_buttons * {
    box-sizing: border-box !important;
}

/* Блокировка Bootstrap стилей пагинации */
.news_pagination .pagination,
.news_pagination .page-item,
.news_pagination .page-link,
.news_pagination ul,
.news_pagination li {
    all: unset !important;
    display: initial !important;
}

.news_pagination .pagination {
    display: none !important;
}

.news_pagination .pagination_button {
    display: inline-block !important;
    min-width: 40px !important;
    height: 40px !important;
    background: #fe3c52 !important;
    text-align: center !important;
    transition: all 200ms ease !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.news_pagination .pagination_button a {
    display: block !important;
    font-size: 14px !important;
    color: #FFFFFF !important;
    font-weight: 500 !important;
    line-height: 40px !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    padding: 0 15px !important;
    border: none !important;
    background: none !important;
    width: 100% !important;
    height: 100% !important;
}

.news_pagination .pagination_button span {
    display: block !important;
    font-size: 14px !important;
    color: #FFFFFF !important;
    font-weight: 500 !important;
    line-height: 40px !important;
    text-transform: uppercase !important;
    padding: 0 15px !important;
    border: none !important;
    background: none !important;
    width: 100% !important;
    height: 100% !important;
}

.news_pagination .pagination_button:hover {
    opacity: 0.8 !important;
}

.news_pagination .pagination_button_active {
    background: rgba(254, 60, 82, 0.8) !important;
}

.pagination_pages {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Анимации */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для страницы тегов */
.news_title h2 {
    color: #131a2f;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.tag_description {
    color: #495057;
    font-size: 16px;
    font-style: italic;
    margin-bottom: 15px;
}

.news_count {
    color: #7d8293;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 30px;
}

.post_tags {
    margin-top: 15px;
}

.post_tags .tag {
    margin-right: 8px;
    margin-bottom: 8px;
}

.sidebar_tags {
    margin-bottom: 40px;
}

.sidebar_tags_content {
    margin-top: 20px;
}

.sidebar_tags_content .tag {
    margin-right: 6px;
    margin-bottom: 6px;
}

.no_news {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0;
}

.no_news h3 {
    color: #131a2f;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.no_news p {
    color: #495057;
    font-size: 16px;
    margin-bottom: 0;
}

.no_news a {
    color: #fe3c52;
    text-decoration: none;
    font-weight: 500;
}

.no_news a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    .comment_form {
        padding: 20px 15px;
    }
    
    .comment_item {
        padding: 15px;
    }
    
    .comment_header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment_date {
        margin-top: 5px;
    }
    
    .news_detail_tags {
        margin: 20px 0;
        padding: 15px 0;
    }
    
    .tag {
        height: 32px;
        margin-right: 4px;
        margin-bottom: 4px;
    }
    
    .tag a {
        font-size: 11px;
        padding-left: 20px;
        padding-right: 20px;
        line-height: 32px;
    }
    
    /* Адаптивная пагинация */
    .news_pagination {
        margin-top: 40px;
        margin-bottom: 30px;
    }
    
    .pagination_buttons {
        gap: 5px;
    }
    
    .pagination_button {
        min-width: 35px;
        height: 35px;
    }
    
    .pagination_button a,
    .pagination_button span {
        font-size: 12px;
        line-height: 35px;
        padding: 0 10px;
    }
}

/* Стили для подзаголовка на странице тега */
.home_subtitle {
    font-size: 18px;
    font-weight: 300;
    color: #FFFFFF;
    margin-top: 15px;
    margin-bottom: 20px;
    line-height: 1.4;
    opacity: 0.9;
    text-align: center;
}

@media (max-width: 768px) {
    .home_subtitle {
        font-size: 16px;
        margin-top: 10px;
        margin-bottom: 15px;
    }
}
