/**
 * Content Report - Admin Styles
 *
 * @package SomePlusReportPost
 */

/* Stats Section */
.sprp-stats {
	display: flex;
	gap: 20px;
	margin: 20px 0;
	flex-wrap: wrap;
}

.sprp-stats .stat-box {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px 30px;
	text-align: center;
	min-width: 150px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.sprp-stats .stat-number {
	display: block;
	font-size: 32px;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.2;
}

.sprp-stats .stat-label {
	display: block;
	font-size: 13px;
	color: #646970;
	margin-top: 5px;
}

/* Status Labels */
.sprp-status {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 500;
	text-transform: capitalize;
}

.sprp-status.status-publish {
	background: #d4edda;
	color: #155724;
}

.sprp-status.status-draft {
	background: #fff3cd;
	color: #856404;
}

.sprp-status.status-pending {
	background: #cce5ff;
	color: #004085;
}

.sprp-status.status-private {
	background: #e2e3e5;
	color: #383d41;
}

.sprp-status.status-trash {
	background: #f8d7da;
	color: #721c24;
}

/* Reports Count */
.reports-count {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	font-weight: 600;
	background: #f0f0f1;
	color: #50575e;
}

.reports-count.medium-count {
	background: #fff3cd;
	color: #856404;
}

.reports-count.high-count {
	background: #f8d7da;
	color: #721c24;
}

/* Row Actions */
.sprp-delete,
/* WordPress.org review teaser — Settings page */
.sprp-rating-teaser {
	margin-top: 1.25em;
	max-width: 640px;
	font-size: 13px;
	line-height: 1.55;
	color: #50575e;
}

.sprp-rating-teaser a {
	font-weight: 600;
}

.sprp-rating-notice .button-link {
	margin-left: 4px;
	vertical-align: baseline;
}

/* Support / donate — Settings page */
.sprp-donate-card {
	margin-top: 28px;
	padding: 16px 20px;
	max-width: 560px;
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.sprp-donate-card__text {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.5;
	color: #50575e;
}

.sprp-donate-card__actions {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.sprp-donate-card .button {
	margin: 0;
}

.sprp-delete-reports {
	color: #b32d2e !important;
}

.sprp-delete:hover,
.sprp-delete-reports:hover {
	color: #a00 !important;
}

/* Table Enhancements */
.wp-list-table .column-post_title {
	width: 20%;
}

.wp-list-table .column-post_type {
	width: 7%;
	white-space: nowrap;
}

.wp-list-table .column-item_type {
	width: 7%;
	white-space: nowrap;
}

.wp-list-table .column-post_author {
	width: 10%;
	white-space: nowrap;
}

.wp-list-table .column-post_date {
	width: 9%;
	white-space: nowrap;
}

.wp-list-table .column-post_status {
	width: 8%;
	white-space: nowrap;
}

.wp-list-table .column-reports_count {
	width: 7%;
	text-align: center;
	white-space: nowrap;
}

.wp-list-table .column-report_reason {
	width: 12%;
}

.wp-list-table .column-last_report {
	width: 10%;
	white-space: nowrap;
}

/* Report Reason Styles */
.sprp-reason {
	display: inline-block;
	padding: 3px 8px;
	background: #f0f6fc;
	border: 1px solid #c5d9ed;
	border-radius: 3px;
	font-size: 12px;
	color: #1d2327;
	cursor: help;
}

/* View Details Link */
.sprp-view-details {
	color: #2271b1;
	text-decoration: underline;
}

.sprp-view-details:hover {
	color: #135e96;
}

/* Modal Styles */
.sprp-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 100000;
}

.sprp-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	z-index: 100001;
	max-width: 900px;
	width: 90%;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
}

.sprp-modal-header {
	padding: 15px 20px;
	border-bottom: 1px solid #c3c4c7;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.sprp-modal-header h2 {
	margin: 0;
	font-size: 18px;
}

.sprp-modal-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #646970;
	padding: 0;
	width: 30px;
	height: 30px;
	line-height: 30px;
}

.sprp-modal-close:hover {
	color: #1d2327;
}

.sprp-modal-content {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
}

.sprp-report-details-table {
	width: 100%;
	border-collapse: collapse;
}

.sprp-report-details-table th,
.sprp-report-details-table td {
	padding: 10px;
	text-align: left;
	border-bottom: 1px solid #c3c4c7;
}

.sprp-report-details-table th {
	background: #f6f7f7;
	font-weight: 600;
}

.sprp-report-details-table tr:hover {
	background: #f6f7f7;
}

/* Search Box Alignment */
.search-box {
	margin-bottom: 10px;
}

/* Filter Dropdown */
.tablenav .actions select {
	margin-right: 6px;
}

/* Settings Page Enhancements */
.sprp-reason-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.sprp-reason-row input[type="text"] {
	flex: 1;
	max-width: 400px;
}

.sprp-reason-row .button {
	flex-shrink: 0;
}

.sprp-setting-field .description {
	margin: 8px 0 0;
}

/* Shortcode Info Box */
.wrap hr {
	margin: 30px 0 20px;
	border: none;
	border-top: 1px solid #c3c4c7;
}

.wrap code {
	display: inline-block;
	padding: 5px 10px;
	background: #f0f0f1;
	border-radius: 3px;
	font-size: 13px;
}

/* Notice Styles */
.sprp-notice {
	padding: 12px;
	margin: 15px 0;
	border-left: 4px solid #72aee6;
	background: #f0f6fc;
}

.sprp-notice.notice-warning {
	border-left-color: #dba617;
	background: #fcf9e8;
}

.sprp-notice.notice-error {
	border-left-color: #d63638;
	background: #fcf0f1;
}

/* Responsive Adjustments */
@media screen and (max-width: 782px) {
	.sprp-stats {
		flex-direction: column;
	}

	.sprp-stats .stat-box {
		min-width: auto;
		width: 100%;
	}

	.wp-list-table .column-post_type,
	.wp-list-table .column-post_author,
	.wp-list-table .column-post_date {
		display: none;
	}
}

/* Dark Mode Support (WordPress 5.7+) */
@media (prefers-color-scheme: dark) {
	body.admin-color-modern .sprp-stats .stat-box {
		background: #1e1e1e;
		border-color: #3c434a;
	}

	body.admin-color-modern .sprp-stats .stat-number {
		color: #f0f0f1;
	}

	body.admin-color-modern .sprp-stats .stat-label {
		color: #a7aaad;
	}
}
