/* --- Стили для страницы отдельной новости --- */

.news-detail-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: flex-start;
}

.news-article {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
	padding-bottom: 40px;
}

.article-content {
    padding: 40px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-medium);
}

.article-content h2, .article-content h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: var(--text-dark);
    font-size: 1.2rem;
}

.article-content img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    margin: 25px 0;
    box-shadow: var(--shadow-md);
}

/* Разделительная линия */
.article-separator {
    border: none;
    height: 1px;
    background-color: #e5e7eb;
    margin: 20px 40px 25px;
}

.author-separator {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Стили для тегов */
.article-tags {
    padding: 0 40px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    background-color: rgba(94, 53, 177, 0.1);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: var(--border-radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast) ease;
}

.tag-link:hover {
    background-color: #e9d5ff;
    color: #7e22ce;
}

/* Стили для блока автора */
.article-author-box {
    margin: 0 40px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #a78bfa;
    object-fit: cover;
    flex-shrink: 0;
}

.author-details {
    flex-grow: 1;
}

.author-details .author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
    line-height: 1.3;
}

.author-details .author-title {
    font-size: 0.9rem;
    color: var(--text-medium);
}

/* Стили для кнопок */
.article-actions {
    padding: 0;
    border-top: none;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-left: auto;
}

.article-actions .btn {
    min-width: 140px;
}

.article-actions .btn i {
    margin-right: 8px;
}

.article-actions .btn-primary {
    background-color: var(--primary-light);
    border-color: #8b5cf6;
}
.article-actions .btn-primary:hover {
    background-color: #7c3aed;
    border-color: #7c3aed;
}

.article-actions .btn-secondary {
    background-color: var(--secondary-light);
    border-color: #2dd4bf;
}
.article-actions .btn-secondary:hover {
    background-color: #14b8a6;
    border-color: #14b8a6;
}

/* --- Стили для секции "Похожие новости" --- */

.related-news-section {
    margin-top: 40px;
}

.related-news-section .section-header {
    margin-bottom: 30px;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Создаем сетку из 3-х колонок */
    gap: 25px;
}

/* Стили для карточки внутри сетки "Похожие новости" */
.related-news-grid .news-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal) ease;
    border: 1px solid #e5e7eb;
}

.related-news-grid .news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: #d1d5db;
}

/* Изображение в карточке */
.related-news-grid .news-card .news-image {
    position: relative;
}

.related-news-grid .news-card .news-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* Категория поверх изображения */
.related-news-grid .news-card .news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #14b8a6; /* Бирюзовый цвет как в дизайне */
    color: white;
    padding: 5px 10px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
}

/* Контентная часть карточки */
.related-news-grid .news-card .news-content {
    padding: 20px;
}

.related-news-grid .news-card .news-title {

    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

.related-news-grid .news-card .news-meta {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- Адаптивность --- */

@media (max-width: 1200px) {
    .news-detail-container {
        grid-template-columns: 1fr;
    }
    .news-sidebar {
        display: none;
    }
}

@media (max-width: 992px) {
    .related-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-content {
        padding: 25px;
        font-size: 1rem;
    }
    .article-tags, .article-author-box, .article-separator {
        margin-left: 25px;
        margin-right: 25px;
    }
    .related-news-grid {
        grid-template-columns: 1fr;
    }
    .article-author-box {
		align-items: center;
        display: flex;
        flex-direction: column;
    }
    .article-actions {
        width: 100%;
        margin-top: 20px;
    }
    .article-actions .btn {
        flex-grow: 1;
    }
}
@media (max-width: 576px) {
    .article-content {
        padding: 5px;
        font-size: 0.9rem;
    }
.article-content p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

}
