/**
 * OH Testimonials - Modern, Minimalist & Mobile-First Frontend Stylesheet
 */

:root {
	--oh-accent: #3b82f6;
	--oh-star: #f59e0b;
	--oh-radius: 16px;
	--oh-bg-card: #ffffff;
	--oh-border: rgba(0, 0, 0, 0.07);
	--oh-text-main: #0f172a;
	--oh-text-muted: #64748b;
	--oh-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
	--oh-shadow-hover: 0 10px 25px -4px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
	--oh-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.oh-testimonials-container {
	position: relative;
	width: 100%;
	margin: 2rem 0;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.oh-testimonials-container * {
	box-sizing: border-box;
}

/* ==========================================================================
   Dark Theme Variant
   ========================================================================== */
.oh-testimonials-container.oh-theme-dark {
	--oh-bg-card: #1e293b;
	--oh-border: rgba(255, 255, 255, 0.08);
	--oh-text-main: #f8fafc;
	--oh-text-muted: #94a3b8;
	--oh-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
	--oh-shadow-hover: 0 10px 25px -4px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Card Component (Mobile-First)
   ========================================================================== */
.oh-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background-color: var(--oh-bg-card);
	border: 1px solid var(--oh-border);
	border-radius: var(--oh-radius);
	padding: 1.5rem;
	box-shadow: var(--oh-shadow);
	transition: var(--oh-transition);
	height: 100%;
}

.oh-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--oh-shadow-hover);
}

/* Stars */
.oh-card-rating {
	display: flex;
	align-items: center;
	gap: 3px;
	margin-bottom: 0.85rem;
}

.oh-star {
	transition: transform 0.2s ease;
}

.oh-star.is-filled {
	color: var(--oh-star);
}

.oh-star.is-empty {
	color: #e2e8f0;
}

.oh-theme-dark .oh-star.is-empty {
	color: #334155;
}

/* Title */
.oh-card-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--oh-text-main);
	margin: 0 0 0.5rem 0;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

/* Content */
.oh-card-content {
	flex-grow: 1;
	margin-bottom: 1.25rem;
}

.oh-card-text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--oh-text-main);
	opacity: 0.92;
	font-style: normal;
}

/* Video Button */
.oh-card-video-trigger {
	margin-bottom: 1.25rem;
}

.oh-btn-video {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: rgba(59, 130, 246, 0.08);
	color: var(--oh-accent);
	border: 1px solid rgba(59, 130, 246, 0.2);
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	transition: var(--oh-transition);
}

.oh-btn-video:hover {
	background-color: var(--oh-accent);
	color: #ffffff;
	border-color: var(--oh-accent);
	transform: scale(1.02);
}

.oh-play-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Author Footer */
.oh-card-footer {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid var(--oh-border);
}

.oh-card-avatar {
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	overflow: hidden;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.oh-card-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.oh-avatar-placeholder {
	font-size: 0.9rem;
	font-weight: 700;
	color: #475569;
	user-select: none;
}

.oh-card-author-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.oh-author-name-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.oh-author-name {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--oh-text-main);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.oh-verified-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #10b981;
	flex-shrink: 0;
}

.oh-author-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	font-size: 0.8rem;
	color: var(--oh-text-muted);
	margin-top: 2px;
}

.oh-author-company {
	color: inherit;
	text-decoration: none;
}

.oh-author-company:hover {
	text-decoration: underline;
	color: var(--oh-accent);
}

.oh-meta-sep {
	opacity: 0.5;
}

/* ==========================================================================
   Layout 1: Slider / Touch Carousel (Mobile-First)
   ========================================================================== */
.oh-layout-slider .oh-slider-viewport {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 10px 4px 16px 4px;
}

.oh-layout-slider .oh-slider-viewport::-webkit-scrollbar {
	display: none;
}

.oh-slider-track {
	display: flex;
	gap: 1.25rem;
}

.oh-slider-slide {
	flex: 0 0 85%;
	scroll-snap-align: center;
	max-width: 400px;
}

@media (min-width: 640px) {
	.oh-slider-slide {
		flex: 0 0 calc(50% - 0.75rem);
		scroll-snap-align: start;
	}
}

@media (min-width: 1024px) {
	.oh-layout-slider[data-columns="1"] .oh-slider-slide {
		flex: 0 0 100%;
		max-width: 600px;
		margin: 0 auto;
	}
	.oh-layout-slider[data-columns="2"] .oh-slider-slide {
		flex: 0 0 calc(50% - 0.75rem);
	}
	.oh-layout-slider[data-columns="3"] .oh-slider-slide {
		flex: 0 0 calc(33.333% - 0.85rem);
	}
	.oh-layout-slider[data-columns="4"] .oh-slider-slide {
		flex: 0 0 calc(25% - 0.95rem);
	}
}

/* Slider Controls */
.oh-slider-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 1rem;
}

.oh-slider-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-color: var(--oh-bg-card);
	border: 1px solid var(--oh-border);
	color: var(--oh-text-main);
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
	transition: var(--oh-transition);
}

.oh-slider-arrow:hover {
	background-color: var(--oh-accent);
	color: #ffffff;
	border-color: var(--oh-accent);
}

.oh-slider-dots {
	display: flex;
	align-items: center;
	gap: 6px;
}

.oh-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background-color: #cbd5e1;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: var(--oh-transition);
}

.oh-dot.is-active {
	width: 24px;
	background-color: var(--oh-accent);
}

/* ==========================================================================
   Layout 2: Responsive Minimalist Grid
   ========================================================================== */
.oh-grid-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.oh-grid-layout.oh-cols-2,
	.oh-grid-layout.oh-cols-3,
	.oh-grid-layout.oh-cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.oh-grid-layout.oh-cols-3 {
		grid-template-columns: repeat(3, 1fr);
	}
	.oh-grid-layout.oh-cols-4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ==========================================================================
   Layout 3: Continuous Marquee Ticker (Touch Carousel & Edge Blur)
   ========================================================================== */
.oh-marquee-wrapper {
	overflow: hidden;
	position: relative;
	width: 100%;
	padding: 10px 0 16px 0;
	cursor: grab;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
	mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
	-webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.oh-marquee-wrapper.is-dragging {
	cursor: grabbing;
}

.oh-marquee-track {
	display: flex;
	gap: 1.25rem;
	width: max-content;
	animation: oh-marquee-scroll 35s linear infinite;
	will-change: transform;
}

.oh-marquee-wrapper:hover .oh-marquee-track {
	animation-play-state: paused;
}

.oh-marquee-item {
	width: 280px;
	max-width: 76vw;
	flex-shrink: 0;
}

@media (min-width: 768px) {
	.oh-marquee-track {
		gap: 1.5rem;
	}
	.oh-marquee-item {
		width: 360px;
		max-width: none;
	}
}

@keyframes oh-marquee-scroll {
	0% {
		transform: translate3d(0, 0, 0);
	}
	100% {
		transform: translate3d(-50%, 0, 0);
	}
}

/* ==========================================================================
   Video & Details Modal (Accessible Lightbox)
   ========================================================================== */
.oh-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.oh-modal-backdrop.is-open {
	opacity: 1;
	visibility: visible;
}

.oh-modal-dialog {
	position: relative;
	background-color: var(--oh-bg-card);
	border-radius: var(--oh-radius);
	width: 100%;
	max-width: 760px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	transform: scale(0.95);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.oh-modal-backdrop.is-open .oh-modal-dialog {
	transform: scale(1);
}

.oh-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 10;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.4);
	color: #ffffff;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease;
}

.oh-modal-close:hover {
	background: rgba(0, 0, 0, 0.7);
}

.oh-modal-body {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000000;
}

.oh-modal-body iframe,
.oh-modal-body video {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}
