/* ==========================================================================
   Nejat Single Blog Post Widget
   Complete styling for blog post content including all Gutenberg blocks
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout Shell
   -------------------------------------------------------------------------- */
.nejat-single-blog-post {
	max-width: var(--nejat-max-width, 1200px);
	margin: 0 auto;
	padding: var(--nejat-section-pad-v) var(--nejat-gutter);
}

/* --------------------------------------------------------------------------
   Header (when title is shown in widget)
   -------------------------------------------------------------------------- */
.nejat-single-blog-post__header {
	margin-bottom: 1.5em;
}

.nejat-single-blog-post__title {
	margin: 0;
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a2e;
}

/* --------------------------------------------------------------------------
   Meta information
   -------------------------------------------------------------------------- */
.nejat-single-blog-post__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 2em;
	padding-bottom: 1.5em;
	border-bottom: 2px solid #e5e7eb;
	font-size: 0.9375rem;
	color: #6b7280;
}

.nejat-single-blog-post__meta-sep {
	color: #d1d5db;
}

.nejat-single-blog-post__author strong {
	color: #1a1a2e;
}

/* --------------------------------------------------------------------------
   Featured image (when shown in widget)
   -------------------------------------------------------------------------- */
.nejat-single-blog-post__featured-image {
	margin-bottom: 2.5em;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nejat-single-blog-post__featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* --------------------------------------------------------------------------
   Main content area with Gutenberg blocks
   -------------------------------------------------------------------------- */
.nejat-single-blog-post__content {
	margin-bottom: 3em;
}

/* Typography — Headings */
.nejat-single-blog-post__content h2,
.nejat-single-blog-post__content h3,
.nejat-single-blog-post__content h4,
.nejat-single-blog-post__content h5,
.nejat-single-blog-post__content h6 {
	margin: 1.75em 0 0.75em;
	font-weight: 700;
	line-height: 1.3;
	color: #1a1a2e;
}

.nejat-single-blog-post__content h2:first-child,
.nejat-single-blog-post__content h3:first-child,
.nejat-single-blog-post__content h4:first-child,
.nejat-single-blog-post__content h5:first-child,
.nejat-single-blog-post__content h6:first-child {
	margin-top: 0;
}

.nejat-single-blog-post__content h2 {
	font-size: clamp(1.75rem, 2.5vw, 2rem);
	border-left: 4px solid #4ab3c8;
	padding-left: 16px;
}

.nejat-single-blog-post__content h3 {
	font-size: clamp(1.5rem, 2vw, 1.75rem);
}

.nejat-single-blog-post__content h4 {
	font-size: clamp(1.25rem, 1.75vw, 1.5rem);
}

.nejat-single-blog-post__content h5 {
	font-size: clamp(1.125rem, 1.5vw, 1.25rem);
}

.nejat-single-blog-post__content h6 {
	font-size: clamp(1rem, 1.25vw, 1.125rem);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7280;
}

/* Typography — Paragraphs */
.nejat-single-blog-post__content p {
	margin: 0 0 1.5em;
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #333333;
}

.nejat-single-blog-post__content p:last-child {
	margin-bottom: 0;
}

/* Lead paragraph */
.nejat-single-blog-post__content p.has-large-font-size,
.nejat-single-blog-post__content .wp-block-post-content > p:first-child {
	font-size: 1.25rem;
	line-height: 1.65;
	color: #1a1a2e;
	font-weight: 500;
}

/* Drop cap */
.nejat-single-blog-post__content .has-drop-cap:not(:focus)::first-letter {
	float: left;
	font-size: 4.5em;
	line-height: 0.68;
	font-weight: 700;
	margin: 0.05em 0.1em 0 0;
	text-transform: uppercase;
	color: #4ab3c8;
}

/* Links */
.nejat-single-blog-post__content a {
	color: #00bcd4;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.nejat-single-blog-post__content a:hover {
	color: #0097a7;
	text-decoration-thickness: 2px;
}

/* Lists */
.nejat-single-blog-post__content ul,
.nejat-single-blog-post__content ol {
	margin: 0 0 1.5em;
	padding-left: 2em;
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #333333;
}

.nejat-single-blog-post__content ul {
	list-style-type: disc;
}

.nejat-single-blog-post__content ol {
	list-style-type: decimal;
}

.nejat-single-blog-post__content li {
	margin-bottom: 0.5em;
	padding-left: 0.25em;
}

.nejat-single-blog-post__content li::marker {
	color: #4ab3c8;
	font-weight: 600;
}

.nejat-single-blog-post__content li > ul,
.nejat-single-blog-post__content li > ol {
	margin-top: 0.5em;
	margin-bottom: 0;
}

/* Blockquotes */
.nejat-single-blog-post__content blockquote {
	margin: 2em 0;
	padding: 1.5em 1.5em 1.5em 2em;
	border-left: 4px solid #4ab3c8;
	background-color: #f7f9fa;
	border-radius: 0 8px 8px 0;
	font-style: italic;
}

.nejat-single-blog-post__content blockquote p {
	font-size: 1.125rem;
	line-height: 1.65;
	color: #1a1a2e;
	margin-bottom: 0.75em;
}

.nejat-single-blog-post__content blockquote p:last-child {
	margin-bottom: 0;
}

.nejat-single-blog-post__content blockquote cite {
	display: block;
	margin-top: 1em;
	font-size: 0.9375rem;
	font-style: normal;
	font-weight: 600;
	color: #6b7280;
}

.nejat-single-blog-post__content blockquote cite::before {
	content: "— ";
}

/* Pull quote */
.nejat-single-blog-post__content .wp-block-pullquote {
	border-top: 4px solid #4ab3c8;
	border-bottom: 4px solid #4ab3c8;
	padding: 2em 0;
	text-align: center;
}

.nejat-single-blog-post__content .wp-block-pullquote blockquote {
	border: none;
	background: none;
	padding: 0;
}

.nejat-single-blog-post__content .wp-block-pullquote p {
	font-size: 1.5rem;
	font-weight: 600;
	color: #1a1a2e;
}

/* Code */
.nejat-single-blog-post__content code {
	padding: 0.2em 0.4em;
	font-size: 0.875em;
	font-family: 'Monaco', 'Courier New', monospace;
	background-color: #f3f4f6;
	border-radius: 4px;
	color: #e53e3e;
}

.nejat-single-blog-post__content pre {
	margin: 2em 0;
	padding: 1.5em;
	background-color: #1a1a2e;
	border-radius: 8px;
	overflow-x: auto;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nejat-single-blog-post__content pre code {
	padding: 0;
	background-color: transparent;
	color: #f8f8f2;
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* Images */
.nejat-single-blog-post__content img {
	max-width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
}

.nejat-single-blog-post__content figure {
	margin: 2em 0;
}

.nejat-single-blog-post__content figure img {
	margin-bottom: 1em;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nejat-single-blog-post__content figcaption {
	font-size: 0.875rem;
	font-style: italic;
	color: #6b7280;
	text-align: center;
	margin-top: 0.75em;
}

/* Image alignments */
.nejat-single-blog-post__content .alignleft {
	float: left;
	margin-right: 2em;
	margin-bottom: 1em;
	max-width: 50%;
}

.nejat-single-blog-post__content .alignright {
	float: right;
	margin-left: 2em;
	margin-bottom: 1em;
	max-width: 50%;
}

.nejat-single-blog-post__content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.nejat-single-blog-post__content .alignwide {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.nejat-single-blog-post__content .alignfull {
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	width: 100vw;
}

/* Galleries */
.nejat-single-blog-post__content .wp-block-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 16px;
	margin: 2em 0;
}

.nejat-single-blog-post__content .wp-block-gallery figure {
	margin: 0;
}

.nejat-single-blog-post__content .wp-block-gallery img {
	margin-bottom: 0;
	width: 100%;
	height: 250px;
	object-fit: cover;
}

/* Tables */
.nejat-single-blog-post__content table {
	width: 100%;
	margin: 2em 0;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.nejat-single-blog-post__content thead {
	background-color: #f7f9fa;
	border-bottom: 2px solid #4ab3c8;
}

.nejat-single-blog-post__content th {
	padding: 0.75em 1em;
	text-align: left;
	font-weight: 700;
	color: #1a1a2e;
}

.nejat-single-blog-post__content td {
	padding: 0.75em 1em;
	border-bottom: 1px solid #e5e7eb;
}

.nejat-single-blog-post__content tbody tr:hover {
	background-color: #f9fafb;
}

/* Buttons */
.nejat-single-blog-post__content .wp-block-button {
	margin: 1.5em 0;
}

.nejat-single-blog-post__content .wp-block-button__link {
	display: inline-block;
	padding: 14px 32px;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
	background-color: #00bcd4;
	color: #ffffff !important;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 188, 212, 0.3);
}

.nejat-single-blog-post__content .wp-block-button__link:hover {
	background-color: #0097a7;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 188, 212, 0.4);
}

/* Outline button */
.nejat-single-blog-post__content .is-style-outline .wp-block-button__link {
	background-color: transparent;
	color: #00bcd4 !important;
	border: 2px solid #00bcd4;
	box-shadow: none;
}

.nejat-single-blog-post__content .is-style-outline .wp-block-button__link:hover {
	background-color: #00bcd4;
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(0, 188, 212, 0.3);
}

/* Separators */
.nejat-single-blog-post__content hr,
.nejat-single-blog-post__content .wp-block-separator {
	margin: 3em auto;
	border: none;
	border-top: 2px solid #e5e7eb;
	max-width: 200px;
}

.nejat-single-blog-post__content .wp-block-separator.is-style-wide {
	max-width: 100%;
}

.nejat-single-blog-post__content .wp-block-separator.is-style-dots::before {
	content: "···";
	display: block;
	text-align: center;
	font-size: 1.5rem;
	letter-spacing: 1em;
	color: #6b7280;
	padding-left: 1em;
}

/* Embeds (YouTube, Twitter, Instagram, etc.) */
.nejat-single-blog-post__content .wp-block-embed {
	margin: 2.5em 0;
}

.nejat-single-blog-post__content .wp-block-embed__wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nejat-single-blog-post__content .wp-block-embed__wrapper iframe,
.nejat-single-blog-post__content .wp-block-embed__wrapper object,
.nejat-single-blog-post__content .wp-block-embed__wrapper embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* Columns */
.nejat-single-blog-post__content .wp-block-columns {
	display: flex;
	gap: 2em;
	margin: 2em 0;
}

.nejat-single-blog-post__content .wp-block-column {
	flex: 1;
}

/* --------------------------------------------------------------------------
   Footer (categories and tags)
   -------------------------------------------------------------------------- */
.nejat-single-blog-post__footer {
	padding-top: 2em;
	border-top: 2px solid #e5e7eb;
}

.nejat-single-blog-post__categories,
.nejat-single-blog-post__tags {
	margin-bottom: 1em;
	font-size: 0.9375rem;
}

.nejat-single-blog-post__categories:last-child,
.nejat-single-blog-post__tags:last-child {
	margin-bottom: 0;
}

.nejat-single-blog-post__categories strong,
.nejat-single-blog-post__tags strong {
	color: #1a1a2e;
	margin-right: 0.5em;
}

.nejat-single-blog-post__categories a,
.nejat-single-blog-post__tags a {
	display: inline-block;
	padding: 4px 12px;
	margin: 0 4px 4px 0;
	background-color: #f0f9fb;
	color: #00bcd4;
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.875rem;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.nejat-single-blog-post__categories a:hover,
.nejat-single-blog-post__tags a:hover {
	background-color: #00bcd4;
	color: #ffffff;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.nejat-single-blog-post__title {
		font-size: 2rem;
	}

	.nejat-single-blog-post__meta {
		font-size: 0.875rem;
	}

	.nejat-single-blog-post__content h2 {
		padding-left: 12px;
		border-left-width: 3px;
	}

	.nejat-single-blog-post__content p,
	.nejat-single-blog-post__content ul,
	.nejat-single-blog-post__content ol {
		font-size: 1rem;
	}

	.nejat-single-blog-post__content blockquote {
		padding: 1em 1em 1em 1.5em;
		margin: 1.5em 0;
	}

	.nejat-single-blog-post__content .alignleft,
	.nejat-single-blog-post__content .alignright {
		float: none;
		max-width: 100%;
		margin: 1.5em 0;
	}

	.nejat-single-blog-post__content .wp-block-columns {
		flex-direction: column;
		gap: 1.5em;
	}

	.nejat-single-blog-post__content .wp-block-gallery {
		grid-template-columns: 1fr;
	}

	.nejat-single-blog-post__content table {
		font-size: 0.875rem;
	}

	.nejat-single-blog-post__content th,
	.nejat-single-blog-post__content td {
		padding: 0.5em 0.75em;
	}
}
