
.blog-details-button.blue {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
.blog-details-button.green {
	background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}
.blog-details-button.yellow {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}
.blog-details-button.red {
	background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}
.blog-details-button.orange {
	background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(255, 167, 38, 0.3);
}

.blog-details-button:not(:first-child) { margin-left: -5px; }
.blog-details-button:first-child { border-top-left-radius: 10px; }
.blog-details-button:last-child { border-top-right-radius: 10px; }

.blog-details-button {
	flex: 1 100%;
	font-family: "Open Sans", "Droid Sans", Verdana, Arial, Helvetica;
	font-size: 12px;
	line-height: 1.4;
	text-align: center;
	vertical-align: middle;
	white-space: nowrap;
	border: none;
	display: inline-block;
	padding: 8px 12px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.6) 100%);
	backdrop-filter: blur(10px);
	color: #333;
	border-radius: 20px;
	transition: all 0.3s ease;
	font-weight: 500;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.blog-details-button:last-child:hover,
a.blog-details-button:focus,
a.blog-details-button:hover {
	text-decoration: none;
	outline: none;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.blog-details-button.blue:hover {
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
	color: white;
}
.blog-details-button.green:hover {
	background: linear-gradient(135deg, #44a08d 0%, #4ecdc4 100%);
	color: white;
}
.blog-details-button.yellow:hover {
	background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
	color: white;
}
.blog-details-button.red:hover {
	background: linear-gradient(135deg, #ee5a24 0%, #ff6b6b 100%);
	color: white;
}
.blog-details-button.orange:hover {
	background: linear-gradient(135deg, #fb8c00 0%, #ffa726 100%);
	color: white;
}

.blog-details-group {
	display: none !important;
}

.blog-body {
	display: flex;
	flex-direction: column;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 20px;
	box-shadow: 0 20px 40px rgba(0,0,0,0.1);
	overflow: hidden;
	position: relative;
	margin: 20px 0;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	transition: all 0.3s ease;
}

.blog-body:hover {
	transform: translateY(-5px);
	box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.blog-body::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
	pointer-events: none;
}

.blog-description > span {
	padding: 20px;
	font-size: 1.8em;
}
.blog-description > span:after {
	content: "\f10e";
	font-family: FontAwesome;
	margin-left: 5px;
}

.blog-description > span:before {
	content: "\f10d";
	font-family: FontAwesome;
	margin-right: 5px;
}

.blog-description {
	flex: 1 25%;
	display: flex;
	align-items: center;
	max-height: 225px;
	text-align: center;
	background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
	backdrop-filter: blur(15px);
	border-top-right-radius: 20px;
	word-break: break-word;
	position: relative;
	z-index: 2;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.blog-details {
	text-align: center;
	max-height: 225px;
	flex: 1 25%;
	font-size: 1.2em;
	background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
	backdrop-filter: blur(15px);
	border-top-left-radius: 20px;
	padding-top: 8px;
	position: relative;
	z-index: 2;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.blog-details > dl {
	padding-top: 5px;
	text-align: initial;
}

.blog-details > span {
	font-size: 1.1em;
	letter-spacing: 1px;
	font-weight: bold;
	padding-bottom: 5px;
}

.blog-details > hr {
	border: 0;
	height: 1px;
	background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

.blog-actions {
	background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
	backdrop-filter: blur(15px);
	padding: 15px 20px;
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
	text-align: center;
	min-width: 360px;
	position: relative;
	z-index: 2;
	margin: 0 15px 15px;
	border-radius: 15px;
	box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.blog-actions > * {
	margin: 0 5px;
	transition: all 0.3s ease;
}

.blog-actions .button {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	border-radius: 25px;
	padding: 10px 20px;
	color: white;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
	transition: all 0.3s ease;
}

.blog-actions .button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Секция с изображением и описанием */
.blog-hero-section {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 30px;
	padding: 30px 40px;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(15px);
}

.blog-image {
	flex: 0 0 var(--ub-image-width, 350px);
	position: relative;
	z-index: 2;
	overflow: hidden;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
	transition: all 0.3s ease;
}

.blog-image:hover {
	transform: scale(1.02);
	box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.blog-image img {
	border-radius: 15px;
	transition: all 0.3s ease;
}

.blog-image:hover img {
	transform: scale(1.05);
}

/* Описание блога в hero-секции */
.blog-description {
	flex: 1;
	font-size: 1.2em;
	line-height: 1.6;
	color: #333;
	margin: 0;
	padding: 0;
}

.blog-description span {
	display: block;
	font-weight: 500;
	color: #555;
	font-size: 1.1em;
}

/* Основной текст блога */
.blog-text {
	font-size: 1.1em;
	line-height: 1.7;
	padding: 40px;
	word-break: break-word;
	background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%);
	backdrop-filter: blur(15px);
	position: relative;
	z-index: 2;
	margin: 0;
	border-radius: 0;
	box-shadow: none;
	color: #333;
}

.blog-footer {
	height: 20px;
	width: 100%;
	background: #dbe9f0;
	margin-bottom: 10px;
	border-bottom-left-radius: 15px;
	border-bottom-right-radius: 15px;
}

.blog-title {
	color: white;
	margin: 0;
	padding: 30px 40px 25px;
	font-size: 2.5em;
	font-weight: 700;
	text-shadow: 0 2px 4px rgba(0,0,0,0.3);
	background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
	backdrop-filter: blur(10px);
	position: relative;
	z-index: 2;
	line-height: 1.2;
	letter-spacing: -0.5px;
	text-align: center;
}

.blog-title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 30px;
	right: 30px;
	height: 3px;
	background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
	background-size: 300% 100%;
	animation: gradientShift 3s ease infinite;
	border-radius: 2px;
}

@keyframes gradientShift {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

/* Анимация появления блогов */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.blog-body {
	animation: fadeInUp 0.6s ease-out;
}

/* Анимация для элементов внутри блога */
.blog-title,
.blog-description,
.blog-details,
.blog-image,
.blog-text,
.blog-actions {
	animation: fadeInUp 0.8s ease-out;
	animation-fill-mode: both;
}

.blog-title { animation-delay: 0.1s; }
.blog-description { animation-delay: 0.2s; }
.blog-details { animation-delay: 0.3s; }
.blog-image { animation-delay: 0.4s; }
.blog-text { animation-delay: 0.5s; }
.blog-actions { animation-delay: 0.6s; }

@media all and (max-width: 850px) {
	/* Screens uptil 800px */
	.blog-details {
		display: none;
	}
	.blog-details-group {
		display: flex;
		display: flex;
		flex-flow: row nowrap;
		align-content: stretch;
		width: 100%;
	}
	.blog-description {
		border-top-right-radius: 0;
	}
}

@media all and (max-width: 600px) {
	/* Screens uptil 600px */
	.blog-body > * {
		flex: 1 100%;
	}
	.blog-title {order: 1;}
	.blog-details-group {order: 2;}
	.blog-description {order: 3;}
	.blog-image {order: 4; text-align: center;}
	.blog-actions { order: 5; }
	.blog-text {order: 6; }
	.blog-footer {order: 7; }

	.blog-description > span {
		font-size: 1.3em;
	}

	.blog-details-group > div > span,
	.blog-details-group > a > span,
	.blog-details-group > div:last-child {
		display: none;
	}
	.blog-details-button:nth-child(5) { border-top-right-radius: 10px; }
}

.blog-rating {
	color: #ffd700;
}

.view-edits-popup {
	display: none;
	position:absolute;
	font-size: 1.2em;
	z-index: 50;
	max-width: 400px;
	width: 90%;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-60%, -25%);
	transform: translate(-60%, -25%);
	box-shadow: 0px 2px 6px rgba(0,0,0,1);
}

.view-edits-popup > div {
	padding-left: 5px;
	padding-top: 2px;
	padding-right: 2px;
}

.view-edits-close-extra {
	width: 25px;
	height: 25px;
	padding-top: 4px;
	display: inline-block;
	position: absolute;
	top: 0px;
	right: 0px;
	transition: ease 0.25s all;
	-webkit-transform: translate(50%, -50%);
	transform: translate(50%, -50%);
	background: rgba(0,0,0,0.8);
	font-family: Arial, Sans-Serif;
	font-size: 18px;
	text-align: center;
	line-height: 100%;
	color: #fff;
}

.view-edits-close-extra:hover {
	background: rgba(0,0,0,1);
	text-decoration: none;
}

.view-edits-delete {
	float: right;
}

/* Wobble Horizontal & Icon Grow
 *
 * Courtesty of Hover.css
 * github.com/IanLunn/Hover
 */
@-webkit-keyframes hvr-wobble-horizontal {
	16.65% {
		-webkit-transform: translateX(8px);
		transform: translateX(8px);
	}
	33.3% {
		-webkit-transform: translateX(-6px);
		transform: translateX(-6px);
	}
	49.95% {
		-webkit-transform: translateX(4px);
		transform: translateX(4px);
	}
	66.6% {
		-webkit-transform: translateX(-2px);
		transform: translateX(-2px);
	}
	83.25% {
		-webkit-transform: translateX(1px);
		transform: translateX(1px);
	}
	100% {
		-webkit-transform: translateX(0);
		transform: translateX(0);
	}
}
@keyframes hvr-wobble-horizontal {
	16.65% {
		-webkit-transform: translateX(8px);
		transform: translateX(8px);
	}
	33.3% {
		-webkit-transform: translateX(-6px);
		transform: translateX(-6px);
	}
	49.95% {
		-webkit-transform: translateX(4px);
		transform: translateX(4px);
	}
	66.6% {
		-webkit-transform: translateX(-2px);
		transform: translateX(-2px);
	}
	83.25% {
		-webkit-transform: translateX(1px);
		transform: translateX(1px);
	}
	100% {
		-webkit-transform: translateX(0);
		transform: translateX(0);
	}
}
.hvr-wobble-horizontal {
	display: inline-block;
	vertical-align: middle;
	-webkit-transform: perspective(1px) translateZ(0);
	transform: perspective(1px) translateZ(0);
	box-shadow: 0 0 1px transparent;
}
.hvr-wobble-horizontal:hover, .hvr-wobble-horizontal:focus, .hvr-wobble-horizontal:active {
	-webkit-animation-name: hvr-wobble-horizontal;
	animation-name: hvr-wobble-horizontal;
	-webkit-animation-duration: 1s;
	animation-duration: 1s;
	-webkit-animation-timing-function: ease-in-out;
	animation-timing-function: ease-in-out;
	-webkit-animation-iteration-count: 1;
	animation-iteration-count: 1;
}

/* Icon Grow */
.hvr-icon-grow {
	display: inline-block;
	vertical-align: middle;
	-webkit-transform: perspective(1px) translateZ(0);
	transform: perspective(1px) translateZ(0);
	box-shadow: 0 0 1px transparent;
	position: relative;
	padding-right: 1.6em;
	-webkit-transition-duration: 0.3s;
	transition-duration: 0.3s;
}
.hvr-icon-grow:before {
	content: "\f06e";
	position: absolute;
	right: 0.2em;
	padding: 0 1px;
	font-family: FontAwesome;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
	-webkit-transition-duration: 0.3s;
	transition-duration: 0.3s;
	-webkit-transition-property: transform;
	transition-property: transform;
	-webkit-transition-timing-function: ease-out;
	transition-timing-function: ease-out;
}
.hvr-icon-grow:hover:before, .hvr-icon-grow:focus:before, .hvr-icon-grow:active:before {
	-webkit-transform: scale(1.3) translateZ(0);
	transform: scale(1.3) translateZ(0);
}

/* Автоматическое уменьшение изображений в тексте блогов (BBCode [img]) - исключая эмодзи */
.blog-text p img:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]),
.blog-text .postimage:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]),
.blog-text img.postimage:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]) {
	max-width: 400px !important;
	width: auto !important;
	height: auto !important;
	display: block;
	margin: 15px auto;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	transition: all 0.3s ease;
	background: #f8f9fa;
	padding: 4px;
	border: 1px solid #e9ecef;
}

/* Для очень больших изображений в тексте устанавливаем максимальную ширину (исключая эмодзи) */
.blog-text p img[width]:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]),
.blog-text .postimage[width]:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]),
.blog-text img.postimage[width]:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]) {
	max-width: 400px !important;
	width: auto !important;
}

/* Принудительное ограничение размера для всех изображений в блоге (исключая эмодзи) */
.blog-text img:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]) {
	max-width: 400px !important;
	width: auto !important;
	height: auto !important;
}

/* Стили для изображений в ссылках в тексте блога */
.blog-text p a img,
.blog-text a .postimage,
.blog-text a img.postimage {
	transition: all 0.3s ease;
	position: relative;
}

.blog-text p a:hover img,
.blog-text a:hover .postimage,
.blog-text a:hover img.postimage {
	transform: scale(1.05);
	box-shadow: 0 8px 25px rgba(0,0,0,0.25);
	border-color: #007bff;
}

/* Стили для ленивой загрузки */
.blog-text img.lazy {
	opacity: 0.7;
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: loading 1.5s infinite;
}

@keyframes loading {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.blog-text img.lazy.loaded {
	opacity: 1;
	background: none;
	animation: none;
}

/* Стили для изображений с ошибкой загрузки */
.blog-text img.error {
	background: #f8d7da;
	border: 2px dashed #dc3545;
	position: relative;
}

.blog-text img.error::after {
	content: "Ошибка загрузки изображения";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #dc3545;
	font-size: 12px;
	text-align: center;
	background: rgba(255,255,255,0.9);
	padding: 5px;
	border-radius: 3px;
}

/* Стили для изображений с подписью */
.blog-text .image-caption {
	text-align: center;
	font-style: italic;
	color: #6c757d;
	font-size: 0.9em;
	margin-top: 5px;
	margin-bottom: 15px;
}

/* Стили для галереи изображений */
.blog-text .image-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px;
	margin: 15px 0;
}

.blog-text .image-gallery img {
	margin: 0;
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 6px;
}

/* Стили для полноэкранного просмотра */
.blog-text img.fullscreen {
	cursor: zoom-in;
}

.blog-text img.fullscreen:hover {
	transform: scale(1.02);
	box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Адаптивные стили для мобильных устройств (исключая эмодзи) */
@media (max-width: 768px) {
	.blog-text p img:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]),
	.blog-text .postimage:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]),
	.blog-text img.postimage:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]),
	.blog-text img:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]) {
		max-width: 300px !important;
		width: auto !important;
		height: auto !important;
		margin: 10px auto;
		border-radius: 6px;
		padding: 2px;
	}
	
	.blog-text p img[width]:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]),
	.blog-text .postimage[width]:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]),
	.blog-text img.postimage[width]:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]) {
		max-width: 300px !important;
		width: auto !important;
	}
	
	.blog-text .image-gallery {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		gap: 8px;
	}
	
	.blog-text .image-gallery img {
		height: 150px;
		max-width: 100% !important;
	}
}

/* Дополнительные ограничения для очень маленьких экранов (исключая эмодзи) */
@media (max-width: 480px) {
	.blog-text p img:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]),
	.blog-text .postimage:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]),
	.blog-text img.postimage:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]),
	.blog-text img:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]) {
		max-width: 250px !important;
		width: auto !important;
		height: auto !important;
	}
}

/* Стили для темной темы (исключая эмодзи) */
@media (prefers-color-scheme: dark) {
	.blog-text p img:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]),
	.blog-text .postimage:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]),
	.blog-text img.postimage:not([src*="emoji"]):not([alt*="emoji"]):not([class*="emoji"]) {
		background: #2d3748;
		border-color: #4a5568;
		box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	}
	
	.blog-text img.lazy {
		background: linear-gradient(90deg, #2d3748 25%, #4a5568 50%, #2d3748 75%);
		background-size: 200% 100%;
	}
	
	.blog-text .image-caption {
		color: #a0aec0;
	}
}

/* Стили для эмодзи - нормальный размер */
.blog-text img[src*="emoji"],
.blog-text img[alt*="emoji"],
.blog-text img[class*="emoji"] {
	max-width: 1.2em !important;
	width: 1.2em !important;
	height: 1.2em !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	display: inline !important;
	vertical-align: baseline !important;
}

/* Мета-информация внизу */
.blog-details {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(15px);
	border-radius: 0 0 20px 20px;
	padding: 30px 40px;
	box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
	position: relative;
	z-index: 2;
	color: #333;
	font-size: 0.9em;
	border-top: 1px solid rgba(0,0,0,0.1);
}

/* ========================================
   ОРИГИНАЛЬНЫЙ СТИЛЬ (ТРАДИЦИОННЫЙ)
   ======================================== */

/* Оригинальный стиль - возвращаем старую компоновку с боковой панелью */
.blog-body.layout-original {
	display: flex;
	flex-flow: row wrap;
	align-items: stretch;
	justify-content: center;
}

.blog-body.layout-original .blog-title {
	flex: 1 100%;
	padding: 25px 30px 20px;
	font-size: 2.2em;
	text-align: left;
}

.blog-body.layout-original .blog-hero-section {
	display: none;
}

/* Боковая панель с информацией об авторе и статистикой */
.blog-body.layout-original .blog-details {
	flex: 0 0 250px;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(15px);
	border-radius: 15px;
	margin: 15px;
	padding: 20px;
	box-shadow: 0 8px 25px rgba(0,0,0,0.1);
	position: relative;
	z-index: 2;
	color: #333;
	font-size: 0.9em;
	order: 1;
}

/* Изображение по центру */
.blog-body.layout-original .blog-image {
	flex: 0 0 var(--ub-image-width, 350px);
	position: relative;
	z-index: 2;
	overflow: hidden;
	border-radius: 15px;
	margin: 15px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
	transition: all 0.3s ease;
	order: 2;
}

/* Описание справа */
.blog-body.layout-original .blog-description {
	flex: 1;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(15px);
	border-radius: 15px;
	margin: 15px;
	padding: 25px;
	box-shadow: 0 8px 25px rgba(0,0,0,0.1);
	position: relative;
	z-index: 2;
	color: #333;
	font-size: 1.0em;
	line-height: 1.5;
	order: 3;
	min-height: 200px;
	overflow: visible;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.blog-body.layout-original .blog-description span {
	display: block;
	font-weight: 500;
	color: #555;
	width: 100%;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* Основной текст блога */
.blog-body.layout-original .blog-text {
	flex: 1 100%;
	font-size: 1.1em;
	line-height: 1.7;
	padding: 30px;
	word-break: break-word;
	background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.9) 100%);
	backdrop-filter: blur(15px);
	position: relative;
	z-index: 2;
	margin: 0 15px 15px;
	border-radius: 15px;
	box-shadow: 0 8px 25px rgba(0,0,0,0.1);
	color: #333;
	order: 4;
}

/* Скрываем мета-информацию внизу для оригинального стиля */
.blog-body.layout-original .blog-details:last-of-type {
	display: none;
}

/* Социальные блоки для всех стилей - внизу статьи */
.blog-body .blog-actions {
	order: 5;
}

.blog-body .social-buttons {
	order: 6;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
	.blog-hero-section {
		flex-direction: column;
		padding: 20px;
		gap: 20px;
	}
	
	.blog-image {
		flex: none;
		width: 100%;
		max-width: 100%;
	}
	
	.blog-title {
		font-size: 2em;
		padding: 20px 20px 15px;
	}
	
	.blog-details {
		padding: 20px;
	}
	
	.blog-text {
		padding: 20px;
	}
	
	/* Адаптивность для оригинального стиля */
	.blog-body.layout-original {
		flex-direction: column;
	}
	
	.blog-body.layout-original .blog-details {
		flex: none;
		margin: 15px;
		order: 1;
	}
	
	.blog-body.layout-original .blog-image {
		flex: none;
		width: 100%;
		max-width: 100%;
		margin: 15px;
		order: 2;
	}
	
	.blog-body.layout-original .blog-description {
		flex: none;
		margin: 15px;
		order: 3;
		min-height: auto;
		padding: 20px;
	}
}

/* Стили для опций загрузки изображений */
.image-upload-options {
	margin: 10px 0;
}

.upload-option {
	margin: 10px 0;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
	background: #f9f9f9;
	transition: all 0.3s ease;
}

.upload-option:hover {
	background: #f0f0f0;
	border-color: #bbb;
}

.upload-option label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	cursor: pointer;
}

.upload-option input[type="radio"] {
	margin-right: 8px;
}

.upload-option input[type="file"],
.upload-option input[type="url"] {
	width: 100%;
	margin-top: 5px;
}

.upload-option input:disabled {
	opacity: 0.5;
	background: #f5f5f5;
	cursor: not-allowed;
}

/* Стили для темной темы */
@media (prefers-color-scheme: dark) {
	.upload-option {
		background: #2d3748;
		border-color: #4a5568;
		color: #e2e8f0;
	}
	
	.upload-option:hover {
		background: #4a5568;
		border-color: #718096;
	}
	
	.upload-option input:disabled {
		background: #1a202c;
		color: #718096;
	}
}

/* Active Viewers Section */
.blog-viewers-section {
	background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
	backdrop-filter: blur(15px);
	border-radius: 15px;
	margin: 20px 0;
	padding: 20px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.1);
	border: 1px solid rgba(255,255,255,0.2);
}

.blog-viewers-header {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid rgba(102, 126, 234, 0.2);
}

.blog-viewers-header .icon {
	color: #667eea;
	margin-right: 8px;
	font-size: 16px;
}

.viewers-title {
	font-weight: 600;
	font-size: 16px;
	color: #333;
	margin-right: 8px;
}

.viewers-count {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
}

.blog-viewers-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 15px;
}

.viewer-stat {
	display: flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	background: rgba(255,255,255,0.7);
	border: 1px solid rgba(0,0,0,0.1);
}

.viewer-stat i {
	margin-right: 6px;
	font-size: 14px;
}

.viewer-stat.users {
	background: linear-gradient(135deg, rgba(78, 205, 196, 0.2) 0%, rgba(68, 160, 141, 0.2) 100%);
	color: #2d5a4e;
	border-color: rgba(78, 205, 196, 0.3);
}

.viewer-stat.guests {
	background: linear-gradient(135deg, rgba(255, 167, 38, 0.2) 0%, rgba(251, 140, 0, 0.2) 100%);
	color: #8b4513;
	border-color: rgba(255, 167, 38, 0.3);
}

.viewer-stat.bots {
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
	color: #4a3c5c;
	border-color: rgba(102, 126, 234, 0.3);
}

.blog-viewers-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
}

.viewer-item {
	display: flex;
	align-items: center;
	padding: 10px;
	background: rgba(255,255,255,0.6);
	border-radius: 10px;
	border: 1px solid rgba(0,0,0,0.05);
	transition: all 0.3s ease;
}

.viewer-item:hover {
	background: rgba(255,255,255,0.8);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.viewer-item.current-user {
	background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
	border-color: rgba(102, 126, 234, 0.3);
}

.viewer-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	margin-right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.viewer-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.viewer-avatar.bot-avatar,
.viewer-avatar.guest-avatar,
.viewer-avatar.default-avatar {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	font-size: 14px;
}

.viewer-avatar.guest-avatar {
	background: linear-gradient(135deg, #ffa726 0%, #fb8c00 100%);
}

.viewer-avatar.bot-avatar {
	background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
}

.viewer-info {
	flex: 1;
	min-width: 0;
}

.viewer-name {
	font-weight: 500;
	font-size: 13px;
	margin-bottom: 2px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.viewer-name .user-name {
	text-decoration: none;
}

.viewer-name .bot-name {
	color: #4a3c5c;
	font-style: italic;
}

.viewer-name .guest-name {
	color: #8b4513;
}

.current-user-badge {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 2px 6px;
	border-radius: 8px;
	font-size: 10px;
	font-weight: 600;
}

.viewer-time {
	font-size: 11px;
	color: #666;
	opacity: 0.8;
}

/* Responsive design for viewers */
@media (max-width: 768px) {
	.blog-viewers-list {
		grid-template-columns: 1fr;
	}
	
	.blog-viewers-stats {
		justify-content: center;
	}
	
	.viewer-item {
		padding: 8px;
	}
	
	.viewer-avatar {
		width: 28px;
		height: 28px;
		margin-right: 8px;
	}
	
	.viewer-name {
		font-size: 12px;
	}
	
	.viewer-time {
		font-size: 10px;
	}
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
	.blog-viewers-section {
		background: linear-gradient(135deg, rgba(45, 55, 72, 0.95) 0%, rgba(45, 55, 72, 0.85) 100%);
		border-color: rgba(255,255,255,0.1);
	}
	
	.viewers-title {
		color: #e2e8f0;
	}
	
	.viewer-stat {
		background: rgba(45, 55, 72, 0.7);
		border-color: rgba(255,255,255,0.1);
	}
	
	.viewer-item {
		background: rgba(45, 55, 72, 0.6);
		border-color: rgba(255,255,255,0.05);
	}
	
	.viewer-item:hover {
		background: rgba(45, 55, 72, 0.8);
	}
	
	.viewer-time {
		color: #a0aec0;
	}
}

/* Similar Blogs Styles */
.similar-blogs-container {
	margin: 30px 0;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 12px;
	border: 1px solid #e9ecef;
}

.similar-blogs-header {
	margin-bottom: 20px;
	text-align: center;
}

.similar-blogs-header h3 {
	margin: 0 0 8px 0;
	font-size: 24px;
	font-weight: 600;
	color: #2d3748;
}

.similar-blogs-explain {
	margin: 0;
	color: #718096;
	font-size: 14px;
}

.similar-blogs-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 15px;
}

.similar-blog-item {
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: row;
	align-items: stretch;
}

.similar-blog-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.similar-blog-image {
	position: relative;
	width: 120px;
	height: 80px;
	overflow: hidden;
	flex-shrink: 0;
}

.similar-blog-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.similar-blog-item:hover .similar-blog-image img {
	transform: scale(1.05);
}

.similar-blog-content {
	padding: 12px;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.similar-blog-title {
	margin: 0 0 6px 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.similar-blog-title a {
	color: #2d3748;
	text-decoration: none;
	transition: color 0.2s ease;
}

.similar-blog-title a:hover {
	color: #3182ce;
}

.similar-blog-description {
	margin: 0 0 8px 0;
	color: #718096;
	font-size: 13px;
	line-height: 1.4;
}

.similar-blog-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 11px;
	color: #a0aec0;
}

.similar-blog-meta span {
	display: flex;
	align-items: center;
}

.similar-blog-author {
	color: #3182ce;
	font-weight: 500;
}

.similar-blog-date {
	color: #718096;
}

.similar-blog-comments,
.similar-blog-views {
	color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
	.similar-blogs-container {
		margin: 20px 0;
		padding: 15px;
	}
	
	.similar-blogs-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	
	.similar-blog-image {
		width: 100px;
		height: 70px;
	}
	
	.similar-blog-content {
		padding: 10px;
	}
	
	.similar-blogs-header h3 {
		font-size: 18px;
	}
	
	.similar-blog-title {
		font-size: 13px;
	}
	
	.similar-blog-description {
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	.similar-blogs-container {
		padding: 12px;
	}
	
	.similar-blog-image {
		width: 80px;
		height: 60px;
	}
	
	.similar-blog-content {
		padding: 8px;
	}
	
	.similar-blog-title {
		font-size: 12px;
	}
	
	.similar-blog-description {
		font-size: 11px;
	}
	
	.similar-blog-meta {
		font-size: 10px;
		gap: 6px;
	}
}
