/**
 * Sanad Testimonials - Public Display (Grid / Scroller / Popup)
 * Dark-mode-agnostic: يعمل فوق أي ثيم، مع تدرجات Argon للعناصر التفاعلية.
 */

.snd-display-wrap {
	--snd-d-purple: #7c3aed;
	--snd-d-blue: #2563eb;
	--snd-d-cyan: #06b6d4;
	--snd-d-gradient: linear-gradient(135deg, var(--snd-d-purple), var(--snd-d-blue) 55%, var(--snd-d-cyan));
	direction: rtl;
}

.snd-display-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.snd-display-scroller {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 12px;
}

.snd-display-scroller .snd-card {
	flex: 0 0 280px;
	scroll-snap-align: start;
}

.snd-card {
	background: var(--snd-card-bg, #12141c);
	color: var(--snd-card-text, #eef1f8);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	padding: 20px;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.snd-card:hover,
.snd-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
	outline: 2px solid var(--snd-d-cyan);
	outline-offset: 2px;
}

.snd-card-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.snd-card-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
}

.snd-avatar-fallback { background: var(--snd-d-gradient); }
.snd-avatar-geo-1 { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.snd-avatar-geo-2 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.snd-avatar-geo-3 { background: linear-gradient(135deg, #06b6d4, #7c3aed); }
.snd-avatar-geo-4 { background: linear-gradient(135deg, #db2777, #7c3aed); }
.snd-avatar-geo-5 { background: linear-gradient(135deg, #f59e0b, #db2777); }
.snd-avatar-geo-6 { background: linear-gradient(135deg, #10b981, #06b6d4); }

.snd-card-identity strong {
	display: block;
	font-size: 15px;
}

.snd-card-role {
	font-size: 12px;
	opacity: 0.7;
}

.snd-card-rating {
	color: #fbbf24;
	font-size: 14px;
	margin-bottom: 10px;
	letter-spacing: 2px;
}

.snd-card-excerpt {
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
	opacity: 0.9;
}

.snd-card-custom-desc {
	font-size: 13px;
	font-style: italic;
	opacity: 0.7;
	margin-top: 8px;
}

.snd-card-video-thumb,
.snd-card-audio-thumb {
	background: var(--snd-d-gradient);
	border-radius: 10px;
	height: 90px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: #fff;
}

.snd-empty {
	opacity: 0.6;
	text-align: center;
	padding: 40px 0;
}

/* Popup */
.snd-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 20px;
}

.snd-popup-overlay.snd-hidden {
	display: none;
}

.snd-popup {
	background: #12141c;
	color: #eef1f8;
	border-radius: 16px;
	padding: 28px;
	max-width: 600px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	position: relative;
}

.snd-popup-close {
	position: absolute;
	top: 14px;
	left: 14px;
	background: rgba(255, 255, 255, 0.1);
	border: none;
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 14px;
}

.snd-popup-close:focus-visible {
	outline: 2px solid #06b6d4;
}

.snd-popup video,
.snd-popup audio {
	width: 100%;
	border-radius: 10px;
	margin: 12px 0;
}
