/**
 * Content Report Widget Module Styles
 *
 * @package ContentReportWidget
 * @since 1.2.0
 */

#wpps_content_report {
	overflow: hidden;
	max-width: 100%;
}

#wpps_content_report .inside {
	padding: 14px 16px;
	overflow-x: hidden;
	max-width: 100%;
	min-width: 0;
}

.wpps-content-report {
	padding: 0;
	min-width: 0;
	overflow: hidden;
}

.wpps-content-report-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 18px;
	min-width: 0;
}

.wpps-content-stat-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	transition: border-color 0.2s, box-shadow 0.2s;
	min-width: 0;
}

.wpps-content-stat-card:hover {
	border-color: #cbd5e1;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.wpps-content-stat-card a {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

.wpps-content-stat-card a:hover .wpps-stat-number {
	color: #2271b1;
}

.wpps-content-stat-card.wpps-stat-posts:hover { border-color: #2271b1; box-shadow: 0 2px 8px rgba(34, 113, 177, 0.12); }
.wpps-content-stat-card.wpps-stat-pages:hover { border-color: #7b1fa2; box-shadow: 0 2px 8px rgba(123, 31, 162, 0.12); }
.wpps-content-stat-card.wpps-stat-media:hover { border-color: #00a32a; box-shadow: 0 2px 8px rgba(0, 163, 42, 0.12); }
.wpps-content-stat-card.wpps-stat-comments:hover { border-color: #d63638; box-shadow: 0 2px 8px rgba(214, 54, 56, 0.12); }
.wpps-content-stat-card.wpps-stat-users:hover { border-color: #c2185b; box-shadow: 0 2px 8px rgba(194, 24, 91, 0.12); }
.wpps-content-stat-card.wpps-stat-categories:hover { border-color: #00796b; box-shadow: 0 2px 8px rgba(0, 121, 107, 0.12); }
.wpps-content-stat-card.wpps-stat-tags:hover { border-color: #d97706; box-shadow: 0 2px 8px rgba(217, 119, 6, 0.12); }

.wpps-stat-icon {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 6px;
}

.wpps-stat-icon .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.wpps-stat-posts .wpps-stat-icon {
	color: #2271b1;
}

.wpps-stat-pages .wpps-stat-icon {
	color: #7b1fa2;
}

.wpps-stat-media .wpps-stat-icon {
	color: #00a32a;
}

.wpps-stat-comments .wpps-stat-icon {
	color: #d63638;
}

.wpps-stat-users .wpps-stat-icon {
	color: #c2185b;
}

.wpps-stat-categories .wpps-stat-icon {
	color: #00796b;
}

.wpps-stat-tags .wpps-stat-icon {
	color: #d97706;
}

.wpps-stat-content {
	width: 100%;
	min-width: 0;
	overflow: hidden;
}

.wpps-stat-number {
	font-size: 22px;
	font-weight: 700;
	color: #1e293b;
	line-height: 1.3;
	margin-bottom: 2px;
}

.wpps-stat-label {
	font-size: 11px;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	font-weight: 500;
}

.wpps-content-report-section {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #f0f0f1;
	min-width: 0;
}

.wpps-content-report-section:first-of-type {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.wpps-section-title {
	font-size: 12px;
	font-weight: 600;
	color: #1d2327;
	margin: 0 0 10px 0;
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	overflow-wrap: break-word;
}

.wpps-section-title .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #646970;
}

.wpps-status-list,
.wpps-cpt-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.wpps-status-item,
.wpps-cpt-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 10px;
	background: #fafafa;
	border-radius: 6px;
	border: 1px solid transparent;
	min-width: 0;
}

.wpps-status-item:hover,
.wpps-cpt-item:hover {
	background: #f6f7f7;
}

.wpps-cpt-item a {
	text-decoration: none;
	color: inherit;
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.wpps-cpt-item a:hover .wpps-cpt-count {
	color: #2271b1;
}

.wpps-status-label,
.wpps-cpt-label {
	font-size: 13px;
	color: #646970;
	font-weight: 400;
	min-width: 0;
	flex-shrink: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wpps-status-count,
.wpps-cpt-count {
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
	flex-shrink: 0;
}

@media (max-width: 1200px) {
	.wpps-content-report-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 10px;
	}
}

@media (max-width: 900px) {
	.wpps-content-report-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
	}
}

@media (max-width: 782px) {
	.wpps-content-report-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
	}
}

@media (max-width: 600px) {
	.wpps-content-report-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
}

@media (max-width: 400px) {
	.wpps-content-report-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
