/* ==========================================================================
   Simple Review Suite — Style Templates (frontend)
   6 unique templates matching modern review card designs
   ========================================================================== */

/* --------------------------------------------------------------------------
   Style wrapper & grid
   -------------------------------------------------------------------------- */
.srs-style-wrapper {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
		Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
}

.srs-style-grid {
	display: grid;
	gap: 2rem;
}

.srs-style-cols-1 { grid-template-columns: 1fr; }
.srs-style-cols-2 { grid-template-columns: repeat(2, 1fr); }
.srs-style-cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 768px) {
	.srs-style-cols-2,
	.srs-style-cols-3 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
	.srs-style-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   Card base
   -------------------------------------------------------------------------- */
.srs-tpl-card {
	background-color: var(--srs-s-bg, #fff);
	color: var(--srs-s-text, #191c1e);
	border-radius: var(--srs-s-radius, 16px);
	padding: 2rem;
	border: var(--srs-s-border-width, 0px) var(--srs-s-border-style, none) var(--srs-s-border-color, transparent);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	height: 100%;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.srs-tpl-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 40px rgba(25, 28, 30, 0.06);
}

/* --------------------------------------------------------------------------
   Stars
   -------------------------------------------------------------------------- */
.srs-tpl-stars {
	display: flex;
	align-items: center;
	gap: 2px;
	font-size: 1.25rem;
	line-height: 1;
	margin-bottom: 1rem;
}

.srs-tpl-star-filled {
	color: var(--srs-s-primary, #f59e0b);
}

.srs-tpl-star-empty {
	color: #e5e7eb;
}

/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */
.srs-tpl-content {
	flex: 1 1 auto;
	font-size: 1.0625rem;
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

.srs-tpl-content p:first-child { margin-top: 0; }
.srs-tpl-content p:last-child  { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Avatar
   -------------------------------------------------------------------------- */
.srs-tpl-avatar {
	width: 48px;
	height: 48px;
	object-fit: cover;
	flex-shrink: 0;
}

.srs-tpl-avatar-lg {
	width: 64px;
	height: 64px;
}

.srs-tpl-avatar-featured {
	width: 80px;
	height: 80px;
	border: 4px solid #e6e8ea;
}

.srs-tpl-avatar-circle { border-radius: var(--srs-s-avatar-radius, 50%); }
.srs-tpl-avatar-square { border-radius: var(--srs-s-avatar-radius, 6px); }

/* --------------------------------------------------------------------------
   Author / Designation / Source (shared)
   -------------------------------------------------------------------------- */
.srs-tpl-author {
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--srs-s-name, #191c1e);
}

.srs-tpl-designation {
	font-size: 0.8125rem;
	color: var(--srs-s-designation, #f5a623);
	opacity: 1;
}

.srs-tpl-source {
	display: inline-block;
	margin-top: 0.2em;
	padding: 0.15em 0.5em;
	font-size: 0.6875rem;
	font-weight: 600;
	background: rgba(0, 0, 0, 0.05);
	border-radius: 4px;
	width: fit-content;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

/* ==========================================================================
   TEMPLATE 1 — Modern Card
   Stars → Italic content → Footer (avatar + name + designation)
   ========================================================================== */
.srs-tpl-1 {
	padding: 2rem 2.25rem;
	border-radius: var(--srs-s-radius, 20px);
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.srs-tpl-1:hover {
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
}

.srs-tpl-1 .srs-tpl-stars {
	font-size: 1.5rem;
	gap: 3px;
	margin-bottom: 1.25rem;
}

.srs-tpl-1 .srs-tpl-content {
	font-style: italic;
	font-size: 1.125rem;
	line-height: 1.75;
	margin-bottom: 1.75rem;
}

.srs-tpl-footer {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: auto;
}

.srs-tpl-meta {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
	flex: 1;
}

/* ==========================================================================
   TEMPLATE 2 — Testimonial
   Centered avatar → Italic content → Stars → Name + Accent designation
   ========================================================================== */
.srs-tpl-2 {
	align-items: center;
	text-align: center;
	padding: 2.5rem 2.25rem;
	border-radius: var(--srs-s-radius, 20px);
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.srs-tpl-2:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
}

.srs-tpl-avatar-top {
	margin-bottom: 1.5rem;
}

.srs-tpl-2 .srs-tpl-content {
	font-style: italic;
	font-weight: 500;
	font-size: 1.0625rem;
	line-height: 1.75;
}

.srs-tpl-2 .srs-tpl-stars {
	justify-content: center;
	font-size: 1.5rem;
	gap: 4px;
	margin-bottom: 1rem;
}

.srs-tpl-meta-center {
	text-align: center;
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.srs-tpl-2 .srs-tpl-author {
	font-size: 1rem;
	font-weight: 700;
}

.srs-tpl-2 .srs-tpl-designation {
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--srs-s-primary, #f59e0b);
	opacity: 1;
}

/* ==========================================================================
   TEMPLATE 3 — Quote Style
   Decorative quote → Italic text → Stars → "— Author"
   ========================================================================== */
.srs-tpl-3 {
	position: relative;
	padding: 2.25rem 2rem 2rem;
	border-radius: var(--srs-s-radius, 20px);
	background-color: var(--srs-s-bg, #f5f6f8);
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

.srs-tpl-3:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.srs-tpl-quote-icon {
	font-size: 4.5rem;
	line-height: 0.8;
	color: #c0c8d4;
	opacity: 0.5;
	pointer-events: none;
	margin-bottom: 0.5rem;
}

.srs-tpl-content-quote {
	font-style: italic;
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--srs-s-text, #333);
	margin-bottom: 1.5rem;
}

.srs-tpl-3 .srs-tpl-stars {
	font-size: 1rem;
	gap: 4px;
	margin-bottom: 1rem;
}

.srs-tpl-quote-author {
	font-weight: 700;
	font-size: 1rem;
	color: var(--srs-s-name, #191c1e);
	letter-spacing: -0.01em;
	margin-top: auto;
}

/* ==========================================================================
   TEMPLATE 4 — Horizontal
   Avatar left | Content → Inline meta (stars + dot + name + designation) right
   ========================================================================== */
.srs-tpl-4 {
	padding: 0;
	border-radius: var(--srs-s-radius, 16px);
	background-color: var(--srs-s-bg, #f7f9fb);
	box-shadow: none;
}

.srs-tpl-4:hover {
	transform: none;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.srs-tpl-horizontal {
	display: flex;
	gap: 1.25rem;
	padding: 1.75rem 2rem;
	align-items: flex-start;
}

.srs-tpl-horizontal-left {
	flex-shrink: 0;
	padding-top: 0.125rem;
}

.srs-tpl-horizontal-left .srs-tpl-avatar {
	width: 48px;
	height: 48px;
}

.srs-tpl-horizontal-right {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}

.srs-tpl-horizontal-right .srs-tpl-content {
	font-size: 0.9375rem;
	line-height: 1.7;
	margin-bottom: 0.75rem;
	color: var(--srs-s-text, #333);
}

.srs-tpl-inline-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: auto;
}

.srs-tpl-inline-meta .srs-tpl-stars {
	margin-bottom: 0;
	font-size: 0.6875rem;
	gap: 1px;
}

.srs-tpl-meta-dot {
	color: #9ca3af;
	font-size: 0.4rem;
	line-height: 1;
}

.srs-tpl-inline-meta .srs-tpl-author {
	font-weight: 700;
	font-size: 0.875rem;
	color: var(--srs-s-name, #191c1e);
}

.srs-tpl-inline-meta .srs-tpl-designation {
	font-size: 0.8125rem;
	color: var(--srs-s-designation, #6b7280);
	opacity: 1;
}

@media (max-width: 480px) {
	.srs-tpl-horizontal {
		flex-direction: column;
	}
}

/* ==========================================================================
   TEMPLATE 5 — Card with footer
   Header (avatar + meta + star badge) → Stars → Content → "Posted on" footer
   ========================================================================== */
.srs-tpl-5 {
	padding: 2rem;
	border-radius: var(--srs-s-radius, 20px);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.srs-tpl-5:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
}

.srs-tpl-header {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	margin-bottom: 1.25rem;
}

.srs-tpl-header .srs-tpl-avatar {
	width: 48px;
	height: 48px;
}

.srs-tpl-header-meta {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
	flex: 1;
}

.srs-tpl-header-meta .srs-tpl-author {
	font-size: 1rem;
	font-weight: 700;
	color: var(--srs-s-name, #191c1e);
}

.srs-tpl-header-meta .srs-tpl-designation {
	font-size: 0.8125rem;
	color: var(--srs-s-accent, #2563eb);
	opacity: 1;
	font-weight: 400;
}

.srs-tpl-source-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--srs-s-accent, #2563eb);
	font-size: 1.5rem;
	flex-shrink: 0;
	margin-left: auto;
}

.srs-tpl-5 .srs-tpl-stars {
	gap: 3px;
	margin-bottom: 1rem;
	font-size: 1.375rem;
}

.srs-tpl-5 .srs-tpl-star-filled {
	color: #FBBC05;
}

.srs-tpl-5 .srs-tpl-content {
	font-size: 0.9375rem;
	line-height: 1.7;
	margin-bottom: 1.5rem;
}

.srs-tpl-review-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 1rem;
	border-top: 1px solid rgba(0, 0, 0, 0.07);
	margin-top: auto;
}

.srs-tpl-posted-on {
	font-size: 0.8125rem;
	color: #70757a;
}

.srs-tpl-verified {
	color: #FBBC05;
	font-size: 1.125rem;
}

/* ==========================================================================
   TEMPLATE 6 — Minimal Clean
   Stars → Content → Author name. Subtle background, no borders/shadows.
   ========================================================================== */
.srs-tpl-6 {
	padding: 2rem;
	background: var(--srs-s-bg, #f5f6f8);
	box-shadow: none;
	border-radius: var(--srs-s-radius, 16px);
}

.srs-tpl-6:hover {
	transform: none;
	box-shadow: none;
}

.srs-tpl-6 .srs-tpl-stars {
	font-size: 1rem;
	gap: 3px;
	margin-bottom: 1rem;
}

.srs-tpl-6 .srs-tpl-content {
	font-size: 1rem;
	line-height: 1.75;
	margin-bottom: 1.25rem;
	color: var(--srs-s-text, #333);
}

.srs-tpl-meta-minimal {
	margin-top: auto;
}

.srs-tpl-meta-minimal .srs-tpl-author {
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--srs-s-name, #191c1e);
}

/* --------------------------------------------------------------------------
   Carousel within style wrapper
   -------------------------------------------------------------------------- */
.srs-style-carousel .srs-tpl-card {
	height: auto;
}

.srs-style-carousel {
	position: relative;
}

.srs-style-carousel .splide__track {
	overflow: hidden;
}

.srs-style-carousel .splide__arrow {
	background: #fff;
	border: 1px solid #dcdcde;
	opacity: 1;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.srs-style-carousel .splide__arrow:hover {
	border-color: var(--srs-s-primary, #2271b1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.srs-style-carousel .splide__arrow svg {
	width: 14px;
	height: 14px;
	fill: #50575e;
}

.srs-style-carousel .splide__pagination {
	position: static;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 14px;
}

.srs-style-carousel .splide__pagination__page {
	background: #d0d0d0;
	width: 8px;
	height: 8px;
}

.srs-style-carousel .splide__pagination__page.is-active {
	background: var(--srs-s-primary, #2271b1);
	transform: scale(1.2);
}

/* Inner arrows: keep arrows inside, reserve side space so content never overlaps arrows. */
.srs-style-carousel:not(.srs-arrows-outer) .splide__track {
	padding: 0 20px;
}

.srs-style-carousel.srs-arrows-outer {
	padding: 0 48px;
}

.srs-style-carousel.srs-arrows-outer .splide__arrow--prev {
	left: 6px;
}

.srs-style-carousel.srs-arrows-outer .splide__arrow--next {
	right: 6px;
}

@media (max-width: 768px) {
	.srs-style-carousel:not(.srs-arrows-outer) .splide__track {
		padding: 0 14px;
	}

	.srs-style-carousel.srs-arrows-outer {
		padding: 0 38px;
	}
}
