/**
 * Epic Food Review — Live Pulse Widget Styles
 */

/* ── Embed Wall ────────────────────────────────────────────── */
.efr-embed-wall {
	display: grid;
	gap: 16px;
}
.efr-pulse-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.efr-pulse-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.efr-pulse-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 768px) {
	.efr-pulse-cols-2,
	.efr-pulse-cols-3,
	.efr-pulse-cols-4 {
		grid-template-columns: 1fr;
	}
}

@media (min-width: 769px) and (max-width: 1024px) {
	.efr-pulse-cols-3,
	.efr-pulse-cols-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.efr-embed-wall-item {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	padding: 12px;
	display: flex;
	flex-direction: column;
}

.efr-embed-wall-embed {
	max-width: 100%;
	overflow: hidden;
	flex: 1;
}

.efr-embed-wall-embed > * {
	max-width: 100% !important;
	margin: 0 auto !important;
}

.efr-embed-wall-embed iframe {
	width: 100%;
	max-width: 100%;
}

.efr-embed-wall-attribution {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #f0f0f0;
	font-size: 0.85em;
	color: #666;
	text-align: center;
}

.efr-embed-wall-attribution a {
	color: #2271b1;
	text-decoration: none;
}

.efr-embed-wall-attribution a:hover {
	text-decoration: underline;
}

.efr-embed-wall-source {
	white-space: nowrap;
}

/* ── Activity Ticker ───────────────────────────────────────── */
.efr-ticker {
	display: flex;
	align-items: center;
	background: #0f172a;
	color: #fff;
	padding: 8px 0;
	overflow: hidden;
	position: relative;
	white-space: nowrap;
	border-radius: 6px;
}

.efr-ticker-label {
	flex-shrink: 0;
	background: #ef4444;
	color: white;
	padding: 4px 14px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 0.75em;
	letter-spacing: 1.2px;
	margin: 0 16px;
	text-transform: uppercase;
	position: relative;
	z-index: 2;
}

.efr-ticker-track {
	display: flex;
	width: max-content;
	animation: efr-ticker-scroll 60s linear infinite;
}

.efr-ticker-speed-slow .efr-ticker-track { animation-duration: 100s; }
.efr-ticker-speed-medium .efr-ticker-track { animation-duration: 60s; }
.efr-ticker-speed-fast .efr-ticker-track { animation-duration: 30s; }

.efr-ticker-content {
	display: flex;
	flex-shrink: 0;
	padding-right: 60px;
}

.efr-ticker-item {
	padding: 0 32px;
	font-size: 0.92em;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.efr-ticker-item a {
	color: #fff;
	text-decoration: none;
	font-weight: 500;
}

.efr-ticker-item a:hover {
	text-decoration: underline;
}

.efr-ticker-time {
	color: #94a3b8;
	font-size: 0.85em;
}

.efr-ticker:hover .efr-ticker-track {
	animation-play-state: paused;
}

@keyframes efr-ticker-scroll {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.efr-ticker-track {
		animation: none;
	}
	.efr-ticker-content + .efr-ticker-content {
		display: none;
	}
}

/* ── Stats Counter ─────────────────────────────────────────── */
.efr-stats {
	display: grid;
	gap: 24px;
}

.efr-stats-layout-inline {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	text-align: center;
}

.efr-stats-layout-cards {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.efr-stats-layout-cards .efr-stat {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 24px 20px;
	text-align: center;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.efr-stats-layout-cards .efr-stat:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.efr-stat-value {
	font-size: 2.5em;
	font-weight: 700;
	line-height: 1;
	color: #2271b1;
	margin-bottom: 6px;
	font-variant-numeric: tabular-nums;
}

.efr-stat-label {
	font-size: 0.85em;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	font-weight: 500;
}

/* ── Shared ────────────────────────────────────────────────── */
.efr-empty {
	padding: 36px 24px;
	background: #f9f9f9;
	border: 1px dashed #ddd;
	border-radius: 8px;
	text-align: center;
	color: #888;
	font-style: italic;
}
