/**
 * HRW Management Theme Integration Styles
 *
 * @package HRW_Management
 * @since 1.0.0
 */

/* Edit Notice Styles */
.hrw-edit-notice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	margin-bottom: 20px;
	border-radius: 6px;
	border: 1px solid;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hrw-edit-notice.hrw-notice-info {
	border-color: #0073aa;
	background: #e7f3ff;
}

.hrw-edit-notice.hrw-notice-warning {
	border-color: #ffb900;
	background: #fff8e1;
}

.hrw-edit-notice.hrw-notice-success {
	border-color: #46b450;
	background: #f0f9f0;
}

.hrw-notice-icon {
	flex-shrink: 0;
	margin-top: 2px;
}

.hrw-notice-icon .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.hrw-notice-info .hrw-notice-icon .dashicons {
	color: #0073aa;
}

.hrw-notice-warning .hrw-notice-icon .dashicons {
	color: #ffb900;
}

.hrw-notice-success .hrw-notice-icon .dashicons {
	color: #46b450;
}

.hrw-notice-content {
	flex: 1;
}

.hrw-notice-content h4 {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.hrw-notice-info .hrw-notice-content h4 {
	color: #0073aa;
}

.hrw-notice-warning .hrw-notice-content h4 {
	color: #b8860b;
}

.hrw-notice-success .hrw-notice-content h4 {
	color: #2e7d32;
}

.hrw-notice-content p {
	margin: 0 0 12px 0;
	color: #333;
	line-height: 1.5;
}

.hrw-notice-content p:last-child {
	margin-bottom: 0;
}

.hrw-notice-actions {
	margin-top: 12px;
}

/* Button Styles */
.hrw-button {
	display: inline-block;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 4px;
	border: 1px solid;
	cursor: pointer;
	transition: all 0.2s ease;
	line-height: 1.4;
}

.hrw-button:hover {
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hrw-button:active {
	transform: translateY(0);
}

.hrw-button-primary {
	background: #0073aa;
	border-color: #0073aa;
	color: #fff;
}

.hrw-button-primary:hover {
	background: #005a87;
	border-color: #005a87;
	color: #fff;
}

.hrw-button-secondary {
	background: #fff;
	border-color: #0073aa;
	color: #0073aa;
}

.hrw-button-secondary:hover {
	background: #0073aa;
	border-color: #0073aa;
	color: #fff;
}

.hrw-button:disabled,
.hrw-button.disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.hrw-button:disabled:hover,
.hrw-button.disabled:hover {
	transform: none;
	box-shadow: none;
}

/* Loading State */
.hrw-button.loading {
	position: relative;
	color: transparent;
	pointer-events: none;
}

.hrw-button.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid transparent;
	border-top: 2px solid currentColor;
	border-radius: 50%;
	animation: hrw-spin 1s linear infinite;
}

.hrw-button-primary.loading::after {
	border-top-color: #fff;
}

.hrw-button-secondary.loading::after {
	border-top-color: #0073aa;
}

@keyframes hrw-spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Revision Status Banner */
.hrw-revision-status-banner {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	background: #fff3cd;
	border: 1px solid #ffeaa7;
	border-radius: 4px;
	margin-bottom: 20px;
	color: #856404;
	font-size: 14px;
	font-weight: 500;
}

.hrw-revision-status-banner .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Edit Actions */
.hrw-edit-actions {
	margin: 20px 0;
	padding: 16px;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 4px;
	text-align: center;
}

.hrw-edit-actions .hrw-button {
	margin: 0 4px;
}

/* Success Message */
.hrw-success-message {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #d4edda;
	border: 1px solid #c3e6cb;
	border-radius: 4px;
	padding: 16px;
	margin-bottom: 20px;
}

.hrw-success-icon .dashicons {
	color: #155724;
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.hrw-success-content h4 {
	margin: 0 0 8px 0;
	color: #155724;
	font-size: 16px;
	font-weight: 600;
}

.hrw-success-content p {
	margin: 0;
	color: #155724;
	line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
	.hrw-edit-notice {
		flex-direction: column;
		gap: 8px;
	}

	.hrw-notice-icon {
		align-self: flex-start;
	}

	.hrw-notice-actions {
		margin-top: 16px;
	}

	.hrw-button {
		display: block;
		width: 100%;
		text-align: center;
		margin-bottom: 8px;
	}

	.hrw-edit-actions .hrw-button {
		margin: 4px 0;
	}
}

/* Integration with Common Themes */

/* Twenty Twenty-One */
.wp-site-blocks .hrw-edit-notice {
	margin: 0 0 var(--global--spacing-vertical) 0;
}

/* Astra */
.ast-container .hrw-edit-notice {
	margin-bottom: 2em;
}

/* GeneratePress */
.inside-article .hrw-edit-notice {
	margin-bottom: 40px;
}

/* OceanWP */
.entry-content .hrw-edit-notice {
	margin-bottom: 30px;
}

/* Kadence */
.entry-content-wrap .hrw-edit-notice {
	margin-bottom: var(--global-kb-spacing-md);
}

/* Custom Theme Compatibility */
.entry-content .hrw-edit-notice,
.post-content .hrw-edit-notice,
.content .hrw-edit-notice {
	margin-bottom: 1.5em;
}

/* Print Styles */
@media print {

	.hrw-edit-notice,
	.hrw-revision-status-banner,
	.hrw-edit-actions {
		display: none !important;
	}
}