/**
 * Admin Styles for Simple Post Preview
 *
 * @package SimplePostPreviewReview
 */

.sppr-metabox-content {
	position: relative;
}

.sppr-status-section {
	margin-bottom: 20px;
	padding: 15px;
	background: #f6f7f7;
	border-left: 4px solid #dcdcde;
	border-radius: 3px;
}

.sppr-status {
	font-size: 14px;
	font-weight: 600;
	padding: 5px 10px;
	border-radius: 3px;
	display: inline-block;
	margin: 5px 0;
}

.sppr-status-awaiting {
	background: #f0f0f1;
	color: #646970;
}

.sppr-status-approved {
	background: #d5f4e6;
	color: #00783c;
}

.sppr-status-not-approved {
	background: #fef7f1;
	color: #b32d2e;
}

.sppr-status-date {
	font-size: 13px;
	color: #646970;
	margin-top: 5px;
}

.sppr-link-section {
	margin-bottom: 20px;
}

.sppr-preview-url {
	font-family: monospace;
	font-size: 12px;
	margin: 10px 0;
	padding: 8px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
}

.sppr-buttons {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
}

.sppr-buttons .button {
	flex: 1;
	min-width: 80px;
	text-align: center;
}

.sppr-copy-message {
	margin-top: 10px;
	font-weight: 600;
}

.sppr-feedback-section {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #dcdcde;
}

.sppr-feedback-list {
	max-height: 300px;
	overflow-y: auto;
	margin-top: 10px;
}

.sppr-feedback-item {
	padding: 12px;
	margin-bottom: 10px;
	background: #f6f7f7;
	border-radius: 3px;
	border-left: 3px solid #dcdcde;
}

.sppr-feedback-decision {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 3px;
	text-transform: capitalize;
}

.sppr-decision-approved {
	background: #d5f4e6;
	color: #00783c;
}

.sppr-decision-not_approved {
	background: #fef7f1;
	color: #b32d2e;
}

.sppr-feedback-date {
	float: right;
	font-size: 12px;
	color: #646970;
}

.sppr-feedback-comment {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #dcdcde;
	font-size: 13px;
	color: #1e1e1e;
	white-space: pre-wrap;
}

.sppr-no-link {
	text-align: center;
	padding: 20px;
}

.sppr-loading {
	text-align: center;
	padding: 20px;
}

.sppr-loading .spinner {
	float: none;
	margin: 0 auto;
}

/* Loading state */
.sppr-metabox-content.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* ============================================
   EDITED VERSIONS SECTION
   ============================================ */

.sppr-versions-section {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #dcdcde;
}

.sppr-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 10px;
	margin-left: 8px;
	vertical-align: middle;
}

.sppr-badge-new {
	background: #2271b1;
	color: white;
}

.sppr-versions-list {
	max-height: 500px;
	overflow-y: auto;
	margin-top: 10px;
}

.sppr-version-item {
	padding: 15px;
	margin-bottom: 15px;
	background: #f6f7f7;
	border-radius: 4px;
	border-left: 4px solid #dcdcde;
	transition: border-color 0.2s ease;
}

.sppr-version-unapplied {
	border-left-color: #2271b1;
	background: #f0f6fc;
}

.sppr-version-applied {
	border-left-color: #00783c;
	opacity: 0.85;
}

.sppr-version-header {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.sppr-version-number {
	font-weight: 600;
	font-size: 14px;
	color: #1e1e1e;
}

.sppr-version-date {
	font-size: 12px;
	color: #646970;
}

.sppr-version-applied-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 3px;
	background: #d5f4e6;
	color: #00783c;
	margin-left: auto;
}

.sppr-version-title {
	font-size: 13px;
	margin-bottom: 12px;
	color: #1e1e1e;
	padding: 8px;
	background: white;
	border-radius: 3px;
}

.sppr-version-title strong {
	color: #646970;
	margin-right: 5px;
}

.sppr-version-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.sppr-version-actions .button {
	font-size: 13px;
}

.sppr-version-diff {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #dcdcde;
}

.sppr-diff-loading {
	text-align: center;
	padding: 20px;
	color: #646970;
}

.sppr-diff-loading .spinner {
	float: none;
	margin: 0 auto 10px;
}

.sppr-diff-container {
	background: white;
	border-radius: 4px;
	overflow: hidden;
}

.sppr-diff-section {
	margin-bottom: 20px;
}

.sppr-diff-section:last-child {
	margin-bottom: 0;
}

.sppr-diff-section h4 {
	margin: 0 0 10px 0;
	padding: 10px;
	background: #f6f7f7;
	font-size: 13px;
	font-weight: 600;
	color: #1e1e1e;
}

.sppr-diff-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: #dcdcde;
	border: 1px solid #dcdcde;
}

.sppr-diff-column {
	padding: 15px;
	background: white;
}

.sppr-diff-column strong {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.sppr-diff-old {
	background: #ffebe9;
}

.sppr-diff-old strong {
	color: #b32d2e;
}

.sppr-diff-new {
	background: #e6f7ed;
}

.sppr-diff-new strong {
	color: #00783c;
}

.sppr-diff-content {
	font-size: 13px;
	line-height: 1.6;
	color: #1e1e1e;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* Mobile responsive */
@media (max-width: 782px) {
	.sppr-diff-row {
		grid-template-columns: 1fr;
	}

	.sppr-version-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.sppr-version-applied-badge {
		margin-left: 0;
	}

	.sppr-version-actions {
		width: 100%;
	}

	.sppr-version-actions .button {
		flex: 1;
	}
}
