/**
 * Post Body Display Widget CSS
 * Serenity Blog System
 */

/* Main Content Container */
.serenity-post-body-display {
	max-width: 100%;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* Paragraphs */
.serenity-post-body-display p {
	margin-bottom: 20px;
	line-height: 1.6;
}

/* Headings */
.serenity-post-body-display h1,
.serenity-post-body-display h2,
.serenity-post-body-display h3,
.serenity-post-body-display h4,
.serenity-post-body-display h5,
.serenity-post-body-display h6 {
	margin-top: 30px;
	margin-bottom: 20px;
	line-height: 1.3;
	font-weight: 600;
}

.serenity-post-body-display h1 {
	font-size: 2em;
}

.serenity-post-body-display h2 {
	font-size: 1.8em;
}

.serenity-post-body-display h3 {
	font-size: 1.6em;
}

.serenity-post-body-display h4 {
	font-size: 1.4em;
}

.serenity-post-body-display h5 {
	font-size: 1.2em;
}

.serenity-post-body-display h6 {
	font-size: 1.1em;
}

/* Links */
.serenity-post-body-display a {
	color: #0073aa;
	text-decoration: none;
	transition: color 0.3s ease, text-decoration 0.3s ease;
}

.serenity-post-body-display a:hover {
	color: #005a87;
	text-decoration: underline;
}

/* Lists */
.serenity-post-body-display ul,
.serenity-post-body-display ol {
	margin-bottom: 20px;
	padding-left: 30px;
}

.serenity-post-body-display li {
	margin-bottom: 10px;
	line-height: 1.6;
}

.serenity-post-body-display ul {
	list-style-type: disc;
}

.serenity-post-body-display ol {
	list-style-type: decimal;
}

/* Blockquotes */
.serenity-post-body-display blockquote {
	margin: 20px 0;
	padding: 20px;
	background-color: #f8f9fa;
	border-left: 4px solid #0073aa;
	border-radius: 4px;
	font-style: italic;
	color: #666666;
}

.serenity-post-body-display blockquote p {
	margin-bottom: 0;
}

/* Images */
.serenity-post-body-display img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 20px auto;
	border-radius: 4px;
}

/* Tables */
.serenity-post-body-display table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: 14px;
}

.serenity-post-body-display th,
.serenity-post-body-display td {
	padding: 12px;
	border: 1px solid #e0e0e0;
	text-align: left;
}

.serenity-post-body-display th {
	background-color: #f8f9fa;
	font-weight: 600;
}

.serenity-post-body-display tr:nth-child(even) {
	background-color: #f8f9fa;
}

/* Code Blocks */
.serenity-post-body-display pre {
	background-color: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 15px;
	margin: 20px 0;
	overflow-x: auto;
	font-family: 'Courier New', Courier, monospace;
	font-size: 14px;
	line-height: 1.4;
}

.serenity-post-body-display code {
	background-color: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 3px;
	padding: 2px 4px;
	font-family: 'Courier New', Courier, monospace;
	font-size: 0.9em;
}

.serenity-post-body-display pre code {
	background: none;
	border: none;
	padding: 0;
}

/* Horizontal Rule */
.serenity-post-body-display hr {
	border: none;
	height: 1px;
	background-color: #e0e0e0;
	margin: 30px 0;
}

/* Pagination */
.serenity-post-body-pagination {
	margin-top: 30px;
	text-align: center;
}

.serenity-post-body-pagination .post-page-numbers {
	display: inline-block;
	padding: 8px 12px;
	margin: 0 4px;
	background-color: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	color: #0073aa;
	text-decoration: none;
	transition: all 0.3s ease;
}

.serenity-post-body-pagination .post-page-numbers:hover {
	background-color: #0073aa;
	color: #ffffff;
}

.serenity-post-body-pagination .current {
	background-color: #0073aa;
	color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
	.serenity-post-body-display {
		font-size: 15px;
	}
	
	.serenity-post-body-display h1 {
		font-size: 1.8em;
	}
	
	.serenity-post-body-display h2 {
		font-size: 1.6em;
	}
	
	.serenity-post-body-display h3 {
		font-size: 1.4em;
	}
	
	.serenity-post-body-display h4 {
		font-size: 1.2em;
	}
	
	.serenity-post-body-display h5 {
		font-size: 1.1em;
	}
	
	.serenity-post-body-display h6 {
		font-size: 1em;
	}
	
	.serenity-post-body-display p {
		margin-bottom: 18px;
	}
	
	.serenity-post-body-display ul,
	.serenity-post-body-display ol {
		padding-left: 25px;
		margin-bottom: 18px;
	}
	
	.serenity-post-body-display li {
		margin-bottom: 8px;
	}
	
	.serenity-post-body-display blockquote {
		padding: 15px;
		margin: 18px 0;
	}
	
	.serenity-post-body-display img {
		margin: 18px auto;
	}
	
	.serenity-post-body-display pre {
		padding: 12px;
		margin: 18px 0;
		font-size: 13px;
	}
	
	.serenity-post-body-display table {
		font-size: 13px;
	}
	
	.serenity-post-body-display th,
	.serenity-post-body-display td {
		padding: 10px;
	}
}

@media (max-width: 480px) {
	.serenity-post-body-display {
		font-size: 14px;
	}
	
	.serenity-post-body-display h1 {
		font-size: 1.6em;
	}
	
	.serenity-post-body-display h2 {
		font-size: 1.4em;
	}
	
	.serenity-post-body-display h3 {
		font-size: 1.3em;
	}
	
	.serenity-post-body-display h4 {
		font-size: 1.2em;
	}
	
	.serenity-post-body-display h5 {
		font-size: 1.1em;
	}
	
	.serenity-post-body-display h6 {
		font-size: 1em;
	}
	
	.serenity-post-body-display p {
		margin-bottom: 16px;
	}
	
	.serenity-post-body-display ul,
	.serenity-post-body-display ol {
		padding-left: 20px;
		margin-bottom: 16px;
	}
	
	.serenity-post-body-display li {
		margin-bottom: 6px;
	}
	
	.serenity-post-body-display blockquote {
		padding: 12px;
		margin: 16px 0;
	}
	
	.serenity-post-body-display img {
		margin: 16px auto;
	}
	
	.serenity-post-body-display pre {
		padding: 10px;
		margin: 16px 0;
		font-size: 12px;
	}
	
	.serenity-post-body-display table {
		font-size: 12px;
	}
	
	.serenity-post-body-display th,
	.serenity-post-body-display td {
		padding: 8px;
	}
	
	.serenity-post-body-pagination .post-page-numbers {
		padding: 6px 10px;
		margin: 0 2px;
		font-size: 13px;
	}
}

/* Accessibility */
.serenity-post-body-display a:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
	border-radius: 2px;
}

.serenity-post-body-display img:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
	.serenity-post-body-display {
		color: #000000;
	}
	
	.serenity-post-body-display a {
		color: #0000ff;
	}
	
	.serenity-post-body-display blockquote {
		background-color: #ffffff;
		border-color: #000000;
		color: #000000;
	}
	
	.serenity-post-body-display pre,
	.serenity-post-body-display code {
		background-color: #ffffff;
		border-color: #000000;
		color: #000000;
	}
	
	.serenity-post-body-display table {
		border-color: #000000;
	}
	
	.serenity-post-body-display th,
	.serenity-post-body-display td {
		border-color: #000000;
	}
	
	.serenity-post-body-display th {
		background-color: #f0f0f0;
	}
	
	.serenity-post-body-display tr:nth-child(even) {
		background-color: #f0f0f0;
	}
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	.serenity-post-body-display a {
		transition: none;
	}
	
	.serenity-post-body-pagination .post-page-numbers {
		transition: none;
	}
}

/* Print Styles */
@media print {
	.serenity-post-body-display {
		color: #000000;
		font-size: 12pt;
	}
	
	.serenity-post-body-display a {
		color: #000000;
		text-decoration: underline;
	}
	
	.serenity-post-body-display blockquote {
		background-color: #ffffff;
		border: 1px solid #000000;
	}
	
	.serenity-post-body-display pre,
	.serenity-post-body-display code {
		background-color: #ffffff;
		border: 1px solid #000000;
	}
	
	.serenity-post-body-display table {
		border-color: #000000;
	}
	
	.serenity-post-body-display th,
	.serenity-post-body-display td {
		border-color: #000000;
	}
	
	.serenity-post-body-display hr {
		background-color: #000000;
	}
	
	.serenity-post-body-pagination {
		display: none;
	}
}
