/**
 * Burst Statistics Shortcodes CSS
 * Styles for the frontend display of statistics shortcodes
 */

/* Common styles for all statistics elements */
.burst-statistics-wrapper {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Number format style */
.burst-statistics-number {
	font-size: 1.5rem;
	font-weight: 600;
}

/* Text format style */
.burst-statistics-text {
	font-size: 1.125rem;
}

/* Custom label style */
.burst-statistics-custom-label {
	font-size: 1.125rem;
}

/* List styles for top pages and referrers */
.burst-statistics-list {
	list-style: none;
	padding: 0;
	margin: 1rem 0;
	border: 1px solid #eee;
	border-radius: 4px;
	overflow: hidden;
}

.burst-statistics-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #eee;
}

.burst-statistics-item:last-child {
	border-bottom: none;
}

.burst-statistics-label {
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 70%;
}

.burst-statistics-value {
	font-weight: 600;
}

/* Empty state style */
.burst-statistics-empty {
	font-style: italic;
	display: block;
	padding: 0.5rem 0;
}

/* Error state style */
.burst-statistics-error {
	font-style: italic;
	display: block;
	padding: 0.5rem 0;
}

/* Most visited posts shortcode styles */
.burst-posts-list {
	list-style: none;
	padding: 0;
	margin: 1rem 0;
	border: 1px solid #eee;
	border-radius: 4px;
	overflow: hidden;
}

.burst-posts-list__item {
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #eee;
}

.burst-posts-list__item:last-child {
	border-bottom: none;
}

.burst-posts-list__item a {
	display: flex;
	justify-content: space-between;
	width: 100%;
}

.burst-post-count {
	font-weight: 600;
}

.burst-posts-list__not-found {
	font-style: italic;
	padding: 0.5rem 0;
}

/* Responsive styles */
@media (max-width: 768px) {
	.burst-statistics-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.25rem;
	}

	.burst-statistics-label {
		max-width: 100%;
	}
}