/* ==========================================================================
   Одиночная новость - Single News Page (Redesigned)
   ========================================================================== */

.single-news-page {
	background-color: var(--gray-50);
	min-height: 100vh;
	padding: 0;
}

/* Герой-изображение */
.single-news-hero {
	position: relative;
	width: 100%;
	height: 500px;
	overflow: hidden;
}

.single-news-hero__image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.single-news-hero__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-news-hero__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
	z-index: 1;
}

/* Основная статья */
.single-news-article {
	background-color: var(--color-white);
	padding: 3rem;
	border-radius: 0.625rem;
	margin-top: -100px;
	position: relative;
	z-index: 2;
	max-width: 896px;
	margin-left: auto;
	margin-right: auto;
	box-shadow: 0 1px 0.1875rem rgba(0, 0, 0, 0.1), 0 1px 0.125rem rgba(0, 0, 0, 0.1);
}

/* Категория */
.single-news-category {
	display: inline-block;
	background-color: var(--red-700);
	color: var(--color-white);
	padding: 0.5rem 1rem;
	border-radius: 33554400px;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 1rem;
	font-family: 'Inter', sans-serif;
}

/* Заголовок */
.single-news-title {
	font-size: 3rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--gray-900);
	margin: 0 0 1.5rem 0;
	font-family: 'Inter', sans-serif;
}

/* Метаданные */
.single-news-meta {
	display: flex;
	gap: 1rem;
	align-items: center;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--gray-200);
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

.single-news-meta__item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1rem;
	color: var(--gray-600);
	font-family: 'Inter', sans-serif;
}

.single-news-meta__item svg {
	width: 1.125rem;
	height: 1.125rem;
	flex-shrink: 0;
	stroke: currentColor;
	fill: none;
}

/* Содержимое */
.single-news-content {
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--gray-700);
	margin-bottom: 2rem;
	font-family: 'Inter', sans-serif;
}

.single-news-content p {
	margin-bottom: 1rem;
}

.single-news-content h2,
.single-news-content h3,
.single-news-content h4 {
	margin-top: 1.5rem;
	margin-bottom: 1rem;
	font-weight: 600;
	color: var(--gray-900);
}

.single-news-content ul,
.single-news-content ol {
	margin: 1rem 0;
	padding-left: 1.5rem;
}

.single-news-content li {
	margin-bottom: 0.5rem;
}

.single-news-content a {
	color: var(--red-900);
	text-decoration: underline;
	transition: color 0.2s ease;
}

.single-news-content a:hover {
	color: var(--red-700);
}

.single-news-content img {
	max-width: 100%;
	height: auto;
	border-radius: 0.5rem;
	margin: 1.5rem 0;
}

/* Блок шаринга */
.single-news-share {
	padding: 1rem 1.5rem;
	border-radius: 0.625rem;
	margin-bottom: 3rem;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1.5rem;
}

.single-news-share__label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--gray-700);
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	margin: 0;
	white-space: nowrap;
}

.single-news-share__label svg {
	width: 1.125rem;
	height: 1.125rem;
	stroke: currentColor;
	fill: none;
	flex-shrink: 0;
}

.single-news-share__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.5rem;
	background-color: var(--red-700);
	color: var(--color-white);
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.single-news-share__icon svg {
	width: 1.125rem;
	height: 1.125rem;
	stroke: currentColor;
	fill: none;
}

.single-news-share__buttons {
	display: flex;
	gap: 0.75rem;
	flex-wrap: nowrap;
	align-items: center;
}

.single-news-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
	font-family: 'Inter', sans-serif;
	color: var(--color-white);
	flex-shrink: 0;
}

.single-news-share__btn:hover {
	transform: translateY(-0.125rem);
	box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.15);
}

.single-news-share__btn svg {
	width: 1.25rem;
	height: 1.25rem;
}

.single-news-share__btn--facebook {
	background-color: #1877F2;
}

.single-news-share__btn--facebook:hover {
	background-color: #1465D8;
}

.single-news-share__btn--vk {
	background-color: #0077FF;
}

.single-news-share__btn--vk:hover {
	background-color: #0061CC;
}

.single-news-share__btn svg {
	width: 1.125rem;
	height: 1.125rem;
	fill: currentColor;
}

/* Похожие новости */
.single-news-related {
	margin-bottom: 3rem;
}

.single-news-related__title {
	font-size: 1.875rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	color: var(--gray-900);
	font-family: 'Inter', sans-serif;
}

/* Горизонтальный layout для похожих новостей */
.single-news-related .news-grid {
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.single-news-related .news-card {
	flex-direction: row;
	overflow: hidden;
	height: auto;
}

.single-news-related .news-card:nth-child(n+4) {
	display: none;
}

.single-news-related .news-card__image {
	width: 35%;
	height: 220px;
	flex-shrink: 0;
}

.single-news-related .news-card__content {
	width: 65%;
	padding: 1.5rem;
}

/* Кнопка вернуться */
.single-news-back {
	text-align: center;
	margin-top: 3rem;
}

.single-news-back__button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: var(--red-900);
	color: var(--color-white);
	padding: 0.875rem 2rem;
	border-radius: 0.625rem;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
	font-family: 'Inter', sans-serif;
}

.single-news-back__button:hover {
	background-color: var(--red-700);
	transform: translateY(-0.125rem);
	box-shadow: 0 0.25rem 0.75rem rgba(196, 28, 59, 0.3);
	color: var(--color-white);
}

.single-news-back__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--red-900);
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.single-news-back__icon svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.single-news-back__button:hover .single-news-back__icon {
	transform: translateX(-4px);
	color: var(--red-700);
    
}

/* ==========================================================================
   Адаптивность для одиночной новости
   ========================================================================== */

@media (max-width: 1024px) {
	.single-news-article {
		padding: 2rem;
	}

	.single-news-title {
		font-size: 2.25rem;
	}

	.single-news-related .news-card__image {
		width: 30%;
		height: 11.25rem;
	}

	.single-news-related .news-card__content {
		width: 70%;
		padding: 1rem;
	}

	.news-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.single-news-share {
		padding: 0.75rem 1rem;
	}

	.single-news-share__icon {
		width: 2.25rem;
		height: 2.25rem;
	}

	.single-news-share__btn {
		width: 2.25rem;
		height: 2.25rem;
	}
}

@media (max-width: 768px) {
	.single-news-hero {
		height: 18.75rem;
	}

	.single-news-article {
		padding: 1.5rem;
		margin-top: -80px;
	}

	.single-news-title {
		font-size: 1.75rem;
	}

	.single-news-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
		padding: 1rem 0;
	}

	.single-news-meta__item {
		font-size: 0.875rem;
	}

	.single-news-content {
		font-size: 1rem;
	}

	.single-news-share {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.75rem;
		padding: 1rem;
	}

	.single-news-share__buttons {
		width: 100%;
		flex-direction: row;
		gap: 0.5rem;
	}

	.single-news-share__btn {
		width: 2.5rem;
		height: 2.5rem;
	}

	.single-news-share__icon {
		width: 2.5rem;
		height: 2.5rem;
	}

	/* Вертикальный layout на мобилях */
	.single-news-related .news-card {
		flex-direction: column;
	}

	.single-news-related .news-card__image {
		width: 100%;
		height: 12.5rem;
		flex-shrink: 0;
	}

	.single-news-related .news-card__content {
		width: 100%;
		padding: 1rem;
	}

	.news-grid {
		grid-template-columns: 1fr;
	}

	.single-news-related__title {
		font-size: 1.5rem;
	}

	.single-news-back__button {
		width: 100%;
	}
}

@media (max-width: 30rem) {
	.single-news-hero {
		height: 12.5rem;
	}

	.single-news-article {
		padding: 1rem;
		margin-top: -50px;
		border-radius: 0.5rem;
	}

	.single-news-category {
		font-size: 0.75rem;
		padding: 0.375rem 0.75rem;
		margin-bottom: 0.75rem;
	}

	.single-news-title {
		font-size: 1.25rem;
		line-height: 1.3;
		margin-bottom: 1rem;
	}

	.single-news-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.625rem;
		padding: 0.75rem 0;
		border-bottom: 1px solid var(--gray-200);
		margin-bottom: 1rem;
	}

	.single-news-meta__item {
		font-size: 0.8125rem;
		gap: 0.375rem;
	}

	.single-news-content {
		font-size: 0.875rem;
		line-height: 1.6;
	}

	.single-news-share {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.625rem;
		padding: 0.75rem;
		margin-bottom: 1.5rem;
	}

	.single-news-share__buttons {
		width: 100%;
		gap: 0.375rem;
	}

	.single-news-share__icon {
		width: 2.25rem;
		height: 2.25rem;
		border-radius: 0.375rem;
	}

	.single-news-share__icon svg {
		width: 1rem;
		height: 1rem;
	}

	.single-news-share__btn {
		width: 2.25rem;
		height: 2.25rem;
		border-radius: 0.375rem;
	}

	.single-news-share__btn svg {
		width: 1rem;
		height: 1rem;
	}

	.single-news-related__title {
		font-size: 1.125rem;
		margin-bottom: 0.75rem;
	}

	.single-news-related .news-card {
		flex-direction: column;
		margin-bottom: 0.75rem;
	}

	.single-news-related .news-card__image {
		width: 100%;
		height: 9.375rem;
		flex-shrink: 0;
		margin-bottom: 0.5rem;
	}

	.single-news-related .news-card__content {
		width: 100%;
		padding: 0.75rem;
	}

	.news-card__title {
		font-size: 0.875rem;
		line-height: 1.3;
	}

	.news-card__excerpt {
		font-size: 0.75rem;
		line-height: 1.4;
	}

	.news-card__link {
		font-size: 0.75rem;
	}

	.single-news-back {
		margin-top: 1rem;
	}

	.single-news-back__button {
		width: 100%;
		padding: 0.75rem;
		font-size: 0.8125rem;
	}

	.single-news-back__icon {
		width: 1.125rem;
		height: 1.125rem;
	}

	.single-news-tags__title {
		font-size: 1rem;
	}

	.single-news-tags__item {
		font-size: 0.75rem;
		padding: 0.375rem 0.75rem;
	}
}

/* Теги */
.single-news-tags {
	margin: 2rem 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--gray-200);
}

.single-news-tags__title {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--gray-900);
	margin-bottom: 1rem;
	font-family: 'Inter', sans-serif;
}

.single-news-tags__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.single-news-tags__item {
	display: inline-block;
	padding: 0.5rem 1rem;
	background-color: var(--gray-100);
	color: var(--gray-700);
	border: 1px solid var(--gray-300);
	border-radius: 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.3s ease;
	font-family: 'Inter', sans-serif;
}

.single-news-tags__item:hover {
	background-color: var(--red-700);
	border-color: var(--red-700);
	color: var(--color-white);
}



