/* iToll Seller Posts — Frontend Stylesheet */

/* --- Carousel Skeleton & Shimmer --- */
@keyframes isp-shimmer {
	0% { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}

.isp-skeleton-card {
	flex: 0 0 280px;
	width: 280px;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	padding: 12px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.isp-skeleton-video, .isp-skeleton-meta, .isp-skeleton-text {
	background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
	background-size: 200% 100%;
	animation: isp-shimmer 1.5s infinite linear;
}

.isp-skeleton-video {
	height: 156px;
	border-radius: 8px;
	margin-bottom: 12px;
}

.isp-skeleton-meta {
	height: 12px;
	width: 50%;
	border-radius: 4px;
	margin-bottom: 8px;
}

.isp-skeleton-text {
	height: 18px;
	width: 90%;
	border-radius: 4px;
}

/* --- Carousel Layout --- */
.isp-carousel-section {
	direction: rtl;
	text-align: right;
}

.isp-carousel-title {
	font-size: 18px;
	font-weight: 800;
	color: #111827;
	margin-bottom: 16px;
}

.isp-carousel-container {
	position: relative;
	overflow: hidden;
}

.isp-carousel-track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none; /* Hide scrollbar Firefox */
	padding-bottom: 8px;
}

.isp-carousel-track::-webkit-scrollbar {
	display: none; /* Hide scrollbar Chrome/Safari */
}

/* --- Post Cards --- */
.isp-post-card {
	flex: 0 0 280px;
	width: 280px;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	scroll-snap-align: start;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.isp-post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.isp-post-card__video-wrap {
	position: relative;
	height: 156px;
	background: #000;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.isp-post-card__video-wrap video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.85;
}

.isp-post-card__play-btn {
	position: absolute;
	width: 48px;
	height: 48px;
	background: rgba(30, 42, 120, 0.9);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 6px rgba(0,0,0,0.15);
	transition: transform 0.2s ease, background 0.2s ease;
}

.isp-post-card:hover .isp-post-card__play-btn {
	transform: scale(1.1);
	background: rgba(30, 42, 120, 1);
}

.isp-post-card__play-btn svg {
	width: 20px;
	height: 20px;
	margin-right: 3px; /* visual center for play triangle */
}

.isp-post-card__content {
	padding: 12px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.isp-post-card__author {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: #6b7280;
	margin-bottom: 8px;
}

.isp-post-card__avatar {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #1e2a78;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 9px;
	font-weight: 700;
	overflow: hidden;
}

.isp-post-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.isp-post-card__title {
	font-size: 13px;
	font-weight: 700;
	color: #111827;
	line-height: 1.5;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 38px;
}

/* --- Single Post template layout --- */
.isp-single-wrap {
	max-width: 860px;
	margin: 0 auto;
	padding: 32px 24px;
	direction: rtl;
	text-align: right;
}

.isp-single-header {
	margin-bottom: 24px;
}

.isp-single-title {
	font-size: 26px;
	font-weight: 800;
	color: #111827;
	line-height: 1.4;
	margin: 0 0 16px;
}

.isp-single-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: #4b5563;
}

.isp-single-meta__store {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: #1e2a78;
	text-decoration: none;
}

.isp-single-meta__avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #1e2a78;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	overflow: hidden;
	border: 1px solid #e5e7eb;
}

.isp-single-meta__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.isp-single-video-frame {
	background: #000;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
	margin-bottom: 32px;
	aspect-ratio: 16/9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.isp-single-video-frame video {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.isp-single-content {
	font-size: 16px;
	line-height: 1.9;
	color: #374151;
	margin-bottom: 48px;
}

.isp-single-content p {
	margin-bottom: 20px;
}

/* --- Related Products Section --- */
.isp-related-products {
	border-top: 1px solid #e5e7eb;
	padding-top: 32px;
	margin-bottom: 48px;
}

.isp-related-products__title {
	font-size: 18px;
	font-weight: 800;
	color: #111827;
	margin-bottom: 20px;
}

.isp-related-products__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

/* --- Comments Styling --- */
.isp-comments-wrap {
	border-top: 1px solid #e5e7eb;
	padding-top: 32px;
}

.isp-comments-wrap .comments-title {
	font-size: 18px;
	font-weight: 800;
	color: #111827;
	margin-bottom: 24px;
}

.isp-comment-author-badge {
	background: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
	margin-right: 6px;
}

.isp-post-card__relation-label {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	background: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
	border-radius: 999px;
	padding: 4px 9px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}
