/**
 * Post Item Styles
 * 
 * Styles for individual post items in archives and load more
 * RTL-friendly and responsive
 * 
 * @package HelloElementorChild
 * @since 1.0.0
 */

/* Post Item Container */
.hello-child-post-item {
	margin-bottom: 30px;
	transition: all 0.3s ease;
}

.hello-child-post-item-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.hello-child-post-item:hover .hello-child-post-item-inner {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	transform: translateY(-4px);
}

/* Post Thumbnail */
.hello-child-post-thumbnail {
	position: relative;
	width: 100%;
	padding-bottom: 66.67%; /* 3:2 aspect ratio */
	overflow: hidden;
	background: #f5f5f5;
}

.hello-child-post-thumbnail a {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.hello-child-post-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.hello-child-post-item:hover .hello-child-post-image {
	transform: scale(1.05);
}

/* Post Content */
.hello-child-post-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 20px;
}

/* Post Title */
.hello-child-post-title {
	margin: 0 0 12px 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	color: #1a1a1a;
}

.hello-child-post-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.hello-child-post-title a:hover {
	color: #667eea;
}

/* Post Meta */
.hello-child-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 15px;
	font-size: 13px;
	color: #666666;
}

.hello-child-post-meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.hello-child-post-meta i {
	font-size: 12px;
	opacity: 0.7;
}

/* Post Excerpt */
.hello-child-post-excerpt {
	flex-grow: 1;
	margin-bottom: 15px;
	font-size: 14px;
	line-height: 1.6;
	color: #555555;
}

.hello-child-post-excerpt p {
	margin: 0;
}

/* Post Footer */
.hello-child-post-footer {
	margin-top: auto;
	padding-top: 15px;
	border-top: 1px solid #eeeeee;
}

/* Read More Link */
.hello-child-read-more-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #667eea;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.3s ease;
}

.hello-child-read-more-link:hover {
	color: #764ba2;
	gap: 12px;
}

.hello-child-read-more-link .arrow {
	display: inline-block;
	transition: transform 0.3s ease;
}

.hello-child-read-more-link:hover .arrow {
	transform: translateX(4px);
}

[dir="rtl"] .hello-child-read-more-link:hover .arrow {
	transform: translateX(-4px);
}

/* Responsive Design */
@media (max-width: 768px) {
	.hello-child-post-item {
		margin-bottom: 20px;
	}

	.hello-child-post-content {
		padding: 15px;
	}

	.hello-child-post-title {
		font-size: 16px;
		margin-bottom: 10px;
	}

	.hello-child-post-meta {
		gap: 10px;
		font-size: 12px;
		margin-bottom: 10px;
	}

	.hello-child-post-excerpt {
		font-size: 13px;
		margin-bottom: 10px;
	}

	.hello-child-read-more-link {
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.hello-child-post-item {
		margin-bottom: 15px;
	}

	.hello-child-post-content {
		padding: 12px;
	}

	.hello-child-post-title {
		font-size: 15px;
		margin-bottom: 8px;
	}

	.hello-child-post-meta {
		gap: 8px;
		font-size: 11px;
		margin-bottom: 8px;
	}

	.hello-child-post-excerpt {
		font-size: 12px;
		margin-bottom: 8px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.hello-child-read-more-link {
		font-size: 12px;
	}
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
	.hello-child-post-item-inner {
		background: #1e1e1e;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	}

	.hello-child-post-item:hover .hello-child-post-item-inner {
		box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
	}

	.hello-child-post-title,
	.hello-child-post-title a {
		color: #ffffff;
	}

	.hello-child-post-meta {
		color: #999999;
	}

	.hello-child-post-excerpt {
		color: #cccccc;
	}

	.hello-child-post-footer {
		border-top-color: #333333;
	}
}

/* Accessibility */
.hello-child-post-title a:focus,
.hello-child-read-more-link:focus {
	outline: 2px solid #667eea;
	outline-offset: 2px;
	border-radius: 2px;
}

/* Print Styles */
@media print {
	.hello-child-post-item-inner {
		box-shadow: none;
		page-break-inside: avoid;
	}

	.hello-child-post-item:hover .hello-child-post-item-inner {
		transform: none;
	}

	.hello-child-post-image {
		max-width: 100%;
	}
}
