/* Testimonials Grid */
.yts-testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	padding: 20px 0;
	max-width: 1200px;
	margin: 0 auto;
}

/* Testimonial Card */
.yts-testimonial-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
}

.yts-testimonial-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Card Thumbnail */
.yts-card-thumbnail {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 aspect ratio */
	background: #000;
	overflow: hidden;
}

.yts-card-thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.yts-testimonial-card:hover .yts-card-thumbnail img {
	transform: scale(1.05);
}

/* Play Overlay */
.yts-play-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80px;
	height: 80px;
	background: rgba(255, 0, 0, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.yts-testimonial-card:hover .yts-play-overlay {
	background: rgba(255, 0, 0, 1);
	transform: translate(-50%, -50%) scale(1.1);
}

.yts-play-overlay svg {
	margin-left: 4px;
}

/* Card Content */
.yts-card-content {
	padding: 20px;
	text-align: right;
	direction: rtl;
}

.yts-card-content h3 {
	margin: 0 0 10px 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
	line-height: 1.4;
}

.yts-card-date {
	margin: 0;
	font-size: 13px;
	color: #666;
}

/* Modal */
.yts-video-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	align-items: center;
	justify-content: center;
}

.yts-video-modal.active {
	display: flex;
}

.yts-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.9);
	animation: fadeIn 0.3s ease;
}

.yts-modal-content {
	position: relative;
	width: 90%;
	max-width: 900px;
	background: #000;
	border-radius: 12px;
	overflow: hidden;
	animation: slideUp 0.3s ease;
	z-index: 1;
}

.yts-modal-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 40px;
	cursor: pointer;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s;
	z-index: 2;
}

.yts-modal-close:hover {
	transform: scale(1.2);
}

.yts-modal-video {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 aspect ratio */
	background: #000;
}

.yts-modal-video iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(50px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive */
@media (max-width: 768px) {
	.yts-testimonials-grid {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 20px;
		padding: 10px;
	}

	.yts-modal-content {
		width: 95%;
	}

	.yts-modal-close {
		top: -35px;
		font-size: 30px;
	}
}
