/**
 * Elementor Blog Builder — Frontend Styles
 * Version: 1.0.0
 */

/* ─── Utility ─────────────────────────────────────────────────────────────── */
.ebb-widget-placeholder {
	border: 2px dashed #c2d4f7;
	background: #f0f5ff;
	padding: 20px;
	text-align: center;
	border-radius: 6px;
	color: #6e8fc7;
	font-size: 14px;
}

/* ─── Post Title ───────────────────────────────────────────────────────────── */
.ebb-post-title-wrap { }
.ebb-post-title { margin: 0 0 0.5em; }
.ebb-post-title a { text-decoration: none; color: inherit; }
.ebb-post-title a:hover { opacity: 0.85; }
.ebb-title-prefix { }

/* ─── Featured Image ───────────────────────────────────────────────────────── */
.ebb-featured-image-wrap { }
.ebb-featured-image { margin: 0; }
.ebb-featured-image img {
	max-width: 100%;
	height: auto;
	display: block;
	transition: filter 0.3s ease;
}

/* ─── Post Content ─────────────────────────────────────────────────────────── */
.ebb-post-content { line-height: 1.7; }
.ebb-post-content img { max-width: 100%; height: auto; }
.ebb-post-content a { }
.ebb-post-content h1,
.ebb-post-content h2,
.ebb-post-content h3,
.ebb-post-content h4,
.ebb-post-content h5,
.ebb-post-content h6 { line-height: 1.3; margin-top: 1.4em; margin-bottom: 0.6em; }
.ebb-post-content ul,
.ebb-post-content ol { padding-left: 1.5em; margin-bottom: 1em; }
.ebb-post-content blockquote {
	border-left: 4px solid #6e07f3;
	margin-left: 0;
	padding: 12px 20px;
	background: #f8f5ff;
	border-radius: 0 4px 4px 0;
	font-style: italic;
}

/* ─── Post Meta ────────────────────────────────────────────────────────────── */
.ebb-post-meta { }
.ebb-post-meta-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
}
.ebb-post-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
}
.ebb-post-meta-item a { text-decoration: none; color: inherit; }
.ebb-post-meta-item a:hover { text-decoration: underline; }
.ebb-post-meta-item i,
.ebb-post-meta-item svg { font-size: 13px; opacity: 0.75; }

/* ─── Author Box ───────────────────────────────────────────────────────────── */
.ebb-author-box {
	display: block;
	border: 1px solid #ebebeb;
	border-radius: 8px;
	padding: 30px;
	background: #fafafa;
}
.ebb-author-box-inner {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}
.ebb-author-avatar img {
	border-radius: 50%;
	width: 80px;
	height: 80px;
	object-fit: cover;
	display: block;
}
.ebb-author-details { flex: 1; }
.ebb-author-name { margin: 0 0 8px; font-size: 1.1em; }
.ebb-author-name a { text-decoration: none; color: inherit; }
.ebb-author-bio { margin: 0 0 12px; color: #555; line-height: 1.6; }
.ebb-author-posts-link {
	display: inline-block;
	font-size: 13px;
	text-decoration: none;
	font-weight: 600;
	color: #6e07f3;
	border: 1px solid #6e07f3;
	padding: 5px 14px;
	border-radius: 4px;
	transition: background 0.2s, color 0.2s;
}
.ebb-author-posts-link:hover {
	background: #6e07f3;
	color: #fff;
}
@media (max-width: 600px) {
	.ebb-author-box-inner { flex-direction: column; }
}

/* ─── Post Navigation ──────────────────────────────────────────────────────── */
.ebb-post-navigation { }
.ebb-post-nav-inner {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}
.ebb-nav-item {
	flex: 1;
	padding: 16px 20px;
	border: 1px solid #ebebeb;
	border-radius: 6px;
	transition: border-color 0.2s, background 0.2s;
}
.ebb-nav-item:hover { border-color: #6e07f3; }
.ebb-nav-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ebb-nav-next { text-align: right; }
.ebb-nav-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.6; }
.ebb-nav-title { font-weight: 600; font-size: 15px; }
.ebb-nav-arrow { font-size: 18px; color: #6e07f3; }
@media (max-width: 480px) {
	.ebb-post-nav-inner { flex-direction: column; }
}

/* ─── Related Posts ────────────────────────────────────────────────────────── */
.ebb-related-posts-wrap { }
.ebb-related-posts-title { font-size: 1.4em; margin-bottom: 20px; }
.ebb-related-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.ebb-related-post {
	border: 1px solid #ebebeb;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.2s, transform 0.2s;
}
.ebb-related-post:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.1);
	transform: translateY(-2px);
}
.ebb-related-post-thumb img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}
.ebb-related-post-body { padding: 16px; }
.ebb-related-post h4 { margin: 0 0 8px; font-size: 15px; line-height: 1.4; }
.ebb-related-post h4 a { text-decoration: none; color: inherit; }
.ebb-related-post h4 a:hover { color: #6e07f3; }
.ebb-related-date { font-size: 12px; color: #888; }
.ebb-related-loading {
	text-align: center;
	padding: 30px;
	color: #888;
	font-style: italic;
}
@media (max-width: 768px) {
	.ebb-related-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.ebb-related-posts-grid { grid-template-columns: 1fr; }
}

/* ─── Template Wrapper ─────────────────────────────────────────────────────── */
.ebb-template-wrapper { width: 100%; }
