/* WebAshes — Agentic Commerce Statistics page
   (templates/page-agentic-commerce-statistics.html) */

.wa-stats-count {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #FFF8F6;
	color: #D4380D;
	font-weight: 700;
	font-size: 12.5px;
	font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
	letter-spacing: 0.03em;
	padding: 6px 16px;
	border-radius: 999px;
}

.wa-stats-controls {
	max-width: 900px;
	margin: 0 auto 32px;
	padding: 0 24px;
}

.wa-stats-search-wrap {
	position: relative;
	margin-bottom: 16px;
}
.wa-stats-search-wrap svg {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #6B6B6B;
	pointer-events: none;
}
.wa-stats-search {
	width: 100%;
	padding: 13px 14px 13px 44px;
	border: 1px solid #C4C0B8;
	border-radius: 8px;
	background: #FFFFFF;
	color: #111111;
	font-size: 15px;
	font-family: var(--wp--preset--font-family--body, Inter, sans-serif);
	outline: none;
	transition: border-color 0.15s ease;
	box-sizing: border-box;
}
.wa-stats-search:focus { border-color: #D4380D; }
.wa-stats-search::placeholder { color: #999999; }

.wa-stats-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}
.wa-stat-filter-btn {
	padding: 7px 16px;
	border: 1px solid #C4C0B8;
	border-radius: 999px;
	background: #FFFFFF;
	color: #2B2B2B;
	font-size: 12.5px;
	font-weight: 600;
	font-family: var(--wp--preset--font-family--body, Inter, sans-serif);
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
}
.wa-stat-filter-btn:hover { border-color: #D4380D; color: #D4380D; }
.wa-stat-filter-btn.is-active {
	background: #D4380D;
	color: #FFFFFF;
	border-color: #D4380D;
}

/* ── Grid ── */
.wa-stats-grid {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

/* ── Stat card ── */
.wa-stat-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 20px;
	align-items: start;
	background: #FFFFFF;
	border: 1px solid #C4C0B8;
	border-radius: 8px;
	padding: 20px 22px;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.wa-stat-card:hover {
	box-shadow: 0 4px 12px rgba(17, 17, 17, 0.08);
	transform: translateY(-1px);
}
.wa-stat-number {
	grid-row: 1 / 3;
	font-family: var(--wp--preset--font-family--heading, "Space Grotesk", sans-serif);
	font-size: clamp(22px, 3vw, 28px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
	padding-top: 2px;
	white-space: nowrap;
}
.wa-stat-desc {
	font-size: 14.5px;
	color: #2B2B2B;
	line-height: 1.6;
}
.wa-stat-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin-top: 6px;
	grid-column: 2;
}
.wa-stat-source {
	font-family: var(--wp--preset--font-family--mono, "JetBrains Mono", monospace);
	font-size: 10.5px;
	color: #6B6B6B;
	font-weight: 600;
	background: #F2F0EC;
	padding: 3px 9px;
	border-radius: 999px;
}
.wa-stat-tag {
	font-size: 10px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: #FFF8F6;
	color: #D4380D;
}

@media (max-width: 600px) {
	.wa-stat-card {
		grid-template-columns: 1fr;
		gap: 6px;
	}
	.wa-stat-number { grid-row: auto; }
	.wa-stat-meta { grid-column: 1; }
}

/* ── No results ── */
.wa-stats-no-results {
	text-align: center;
	padding: 56px 24px;
	color: #6B6B6B;
	font-size: 15px;
	display: none;
}
