/* Praisewall — wall, carousel and badge. Inherits the theme's font; cards stay light and readable on any theme. */
.pw-wall {
	--pw-accent: #6c3bff;
	--pw-gold: #ffb800;
	--pw-card: #fff;
	--pw-ink: #17151f;
	--pw-soft: #6b6878;
	position: relative;
	margin: 1.5em 0;
}
.pw-wall *, .pw-badge * { box-sizing: border-box; }

/* Wall: masonry with CSS columns */
.pw-layout-wall .pw-track { columns: 3 280px; column-gap: 20px; }
.pw-layout-wall .pw-card { break-inside: avoid; margin: 0 0 20px; }

.pw-card {
	display: flex; flex-direction: column; gap: 12px;
	margin: 0; padding: 22px;
	background: var(--pw-card); color: var(--pw-ink);
	border-radius: 18px;
	border: 1px solid rgba(23, 21, 31, .06);
	box-shadow: 0 1px 2px rgba(23, 21, 31, .04), 0 10px 30px -14px rgba(23, 21, 31, .18);
	transition: transform .2s ease, box-shadow .2s ease;
}
.pw-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(23, 21, 31, .05), 0 18px 40px -16px rgba(23, 21, 31, .25); }

.pw-video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: #17151f; display: block; }

.pw-stars-row { display: inline-flex; gap: 2px; }
.pw-s {
	width: 18px; height: 18px; display: inline-block;
	background: linear-gradient(90deg, var(--pw-gold) var(--f), #e4e1ea var(--f));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2l-5.7 3.1 1.2-6.4-4.7-4.4 6.4-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.8 5.9 6.4.8-4.7 4.4 1.2 6.4L12 17.2l-5.7 3.1 1.2-6.4-4.7-4.4 6.4-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pw-text { margin: 0; padding: 0; border: 0; font-size: 1rem; line-height: 1.6; quotes: none; white-space: pre-line; }
.pw-text::before, .pw-text::after { content: none; }

.pw-author { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.pw-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.pw-initials {
	display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff;
	background: linear-gradient(135deg, hsl(var(--h) 70% 58%), hsl(calc(var(--h) + 40) 70% 48%));
}
.pw-who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.pw-who strong { font-size: .95rem; }
.pw-who span { font-size: .85rem; color: var(--pw-soft); }

/* Carousel: native scroll-snap, swipe-friendly */
.pw-layout-carousel .pw-track {
	display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
	padding: 6px 4px 18px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.pw-layout-carousel .pw-track::-webkit-scrollbar { display: none; }
.pw-layout-carousel .pw-card { flex: 0 0 min(340px, 85%); scroll-snap-align: start; }
.pw-nav {
	position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -30px;
	border: 0; border-radius: 50%; background: #fff; color: var(--pw-ink); font-size: 26px; line-height: 1;
	box-shadow: 0 6px 20px -6px rgba(23, 21, 31, .35); cursor: pointer;
	transition: opacity .2s, transform .15s;
}
.pw-nav:hover { transform: scale(1.06); }
.pw-nav[disabled] { opacity: 0; pointer-events: none; }
.pw-nav-prev { left: -14px; }
.pw-nav-next { right: -14px; }
@media (hover: none) { .pw-nav { display: none; } }

/* Badge */
.pw-badge {
	--pw-gold: #ffb800;
	display: inline-flex; align-items: center; gap: 14px;
	padding: 12px 20px 12px 14px; margin: .5em 0;
	background: #fff; color: #17151f; border-radius: 999px;
	box-shadow: 0 1px 2px rgba(23, 21, 31, .05), 0 10px 30px -12px rgba(23, 21, 31, .22);
	line-height: 1.2;
}
.pw-badge-score {
	display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
	background: var(--pw-accent, #6c3bff); color: #fff; font-weight: 800; font-size: 20px;
}
.pw-badge-meta { display: flex; flex-direction: column; gap: 4px; }
.pw-badge-count { font-size: .85rem; color: #6b6878; }

.pw-empty { padding: 16px; border: 1px dashed #c9c4d6; border-radius: 12px; color: #6b6878; }

@media (prefers-reduced-motion: reduce) { .pw-card, .pw-nav { transition: none; } .pw-card:hover { transform: none; } }
