/**
 * Front-end styles for [gfr_testimonials] shortcode.
 */

.gfr-testimonials {
	display: grid;
	gap: 1.5rem;
	margin: 1.5rem 0;
}

.gfr-per-row-1 { grid-template-columns: 1fr; }
.gfr-per-row-2 { grid-template-columns: repeat(2, 1fr); }
.gfr-per-row-3 { grid-template-columns: repeat(3, 1fr); }
.gfr-per-row-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
	.gfr-per-row-2,
	.gfr-per-row-3,
	.gfr-per-row-4 {
		grid-template-columns: 1fr;
	}
}

.gfr-testimonial {
	height: 100%;
}

.gfr-testimonial-lazy-hidden {
	display: none;
}

.gfr-testimonial-inner {
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 1.25rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.gfr-testimonial-rating {
	margin-bottom: 0.75rem;
	line-height: 1;
}

.gfr-star {
	color: #cbd5e1;
}

.gfr-star-filled {
	color: #eab308;
}

.gfr-testimonial-content {
	flex: 1;
	margin-bottom: 1rem;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.gfr-testimonial-content p:first-child {
	margin-top: 0;
}

.gfr-testimonial-content p:last-child {
	margin-bottom: 0;
}

.gfr-testimonial-footer {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #f1f5f9;
}

.gfr-testimonial-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.gfr-testimonial-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
	font-size: 0.8125rem;
	color: #64748b;
}

.gfr-testimonial-author {
	font-weight: 600;
	color: #334155;
}

.gfr-testimonial-date::before {
	content: "·";
	margin-right: 0.5rem;
}

.gfr-testimonial-source::before {
	content: "·";
	margin-right: 0.5rem;
}

.gfr-testimonial-source .gfr-source-icon {
	display: inline-flex;
	vertical-align: middle;
	line-height: 1;
}

/**
 * "dark" template variant — [gfr_testimonials template="dark"].
 * Scoped under .gfr-template-dark so it never affects the default variant.
 */

.gfr-testimonials.gfr-template-dark {
	row-gap: 54px;
}

.gfr-template-dark .gfr-testimonial-inner {
	position: relative;
	padding: 45px;
	background: #0d1b30;
	border: 1px solid #e8c270;
	border-radius: 16px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.gfr-template-dark .gfr-testimonial-quote-icon {
	position: absolute;
	top: 1.25rem;
	right: 1.5rem;
	line-height: 1;
	pointer-events: none;
}

.gfr-template-dark .gfr-testimonial-quote-icon svg {
	display: block;
}

.gfr-template-dark .gfr-testimonial-title {
	margin: 0 0 0.75rem;
	padding-right: 3rem;
	font-size: 20px;
	font-weight: 700;
	color: #b9babd;
}

.gfr-template-dark .gfr-star {
	font-size: 18px;
	color: rgba(148, 163, 184, 0.35);
}

.gfr-template-dark .gfr-star-filled {
	color: #f5a524;
}

.gfr-template-dark .gfr-testimonial-content {
	font-size: 15px;
	color: #f2f3f4;
}

.gfr-template-dark .gfr-testimonial-footer {
	padding-top: 0;
	border-top: none;
}

.gfr-template-dark .gfr-testimonial-meta {
	align-items: center;
	gap: 0.875rem;
}

.gfr-template-dark .gfr-testimonial-meta .gfr-testimonial-rating {
	margin-bottom: 0;
}

.gfr-template-dark .gfr-testimonial-author {
	font-size: 20px;
	color: #e8c270;
}
