/**
* Universal Plugin Feedback System CSS
*
* Styles for both review notices and deactivation feedback popup
*/

/* ==========================================================================
Review Notice Styles
========================================================================== */

.feedback-notice-content {
	display: flex;
	align-items: center;
	padding: 15px;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	max-width: 900px;
	margin: 10px 0;
}

.logo-container {
	flex-shrink: 0;
	margin-right: 20px;
}

.logo-container img {
	width: 80px;
	height: 80px;
	border-radius: 8px;
	object-fit: contain;
}

.message-container {
	flex: 1;
}

.message-container p {
	margin: 0 0 15px 0;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
}

.notice-actions {
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
	flex-wrap: wrap;
}

.notice-actions li {
	margin: 0;
}

.notice-actions .button {
	text-decoration: none;
	display: inline-block;
	padding: 6px 12px;
	border-radius: 4px;
	transition: all 0.3s ease;
	cursor: pointer;
	border: 1px solid transparent;
	font-size: 13px;
	line-height: 1.4;
}

.notice-actions .button-primary {
	background: #0073aa;
	color: white;
	border-color: #0073aa;
}

.notice-actions .button-primary:hover {
	background: #005a87;
	border-color: #005a87;
}

.notice-actions .button-secondary {
	background: white;
	color: #666;
	border-color: #c3c4c7;
}

.notice-actions .button-secondary:hover {
	background: #f6f7f7;
	border-color: #8c8f94;
}

.rate-btn {
	font-weight: 600;
}

.dismiss-notice {
	position: relative;
}

.buy-pro-btn {
	background: #00a32a !important;
	color: white !important;
	border-color: #00a32a !important;
}

.buy-pro-btn:hover {
	background: #007a1f !important;
	border-color: #007a1f !important;
}

/* Mobile Responsive */
@media screen and (max-width: 782px) {
	.feedback-notice-content {
		flex-direction: column;
		text-align: center;
	}

	.logo-container {
		margin-right: 0;
		margin-bottom: 15px;
	}

	.notice-actions {
		justify-content: center;
		gap: 8px;
	}

	.notice-actions .button {
		font-size: 12px;
		padding: 5px 10px;
	}
}

/* ==========================================================================
Deactivation Feedback Popup Styles
========================================================================== */

.feedback-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
}

.feedback-popup-overlay.active {
	display: flex;
}

.feedback-popup-container {
	background: white;
	border-radius: 8px;
	width: 90%;
	max-width: 600px;
	max-height: 80vh;
	overflow-y: auto;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	position: relative;
	animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.feedback-popup-header {
	background: #f8f9fa;
	padding: 20px;
	border-bottom: 1px solid #e9ecef;
	border-radius: 8px 8px 0 0;
}

.feedback-popup-header h3 {
	margin: 0;
	font-size: 20px;
	color: #333;
}

.feedback-popup-header p {
	margin: 0;
	font-size: 14px;
	color: #666;
}

.feedback-popup-header a {
	color: #0073aa;
	text-decoration: none;
}

.feedback-popup-header a:hover {
	text-decoration: underline;
}

.feedback-popup-content {
	padding: 20px;
	position: relative;
}

.feedback-loader {
	display: none;
	text-align: center;
	padding: 40px;
}

.feedback-loader.active {
	display: block;
}

.loader-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #0073aa;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.feedback-form-container {
	display: block;
}

.feedback-form-container.hidden {
	display: none;
}

.feedback-form-title {
	margin: 0 0 20px 0;
	font-size: 16px;
	color: #333;
	font-weight: 500;
}

.feedback-reason-item {
	margin-bottom: 12px;
}

.feedback-reason-label {
	display: block;
	cursor: pointer;
	font-size: 14px;
	color: #333;
	margin: 0;
	transition: background-color 0.3s ease;
}

input[type=radio].feedback-reason-input {
	margin-right: 6px;
	margin-top: 0;
	vertical-align: middle;
}

.feedback-reason-text {
	vertical-align: middle;
}

.feedback-reason-details {
	display: none;
	margin: 10px 0 0 20px;
}

.feedback-reason-details.active {
	display: block;
}

.feedback-details-input {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.4;
	resize: vertical;
	min-height: 60px;
	box-sizing: border-box;
}

.feedback-details-input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.feedback-consent {
	margin: 20px 0;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 6px;
	border: 1px solid #e9ecef;
}

.feedback-consent-label {
	display: flex;
	align-items: flex-start;
	margin: 0;
	cursor: pointer;
	font-size: 13px;
	line-height: 1.4;
}

input[type=checkbox].feedback-consent-checkbox {
	margin-right: 10px;
	margin-top: 2px;
	flex-shrink: 0;
}

.feedback-consent-text {
	color: #666;
}

.feedback-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e9ecef;
	flex-wrap: wrap;
}

.feedback-actions .button {
	padding: 8px 16px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.3s ease;
}

.feedback-actions .button-primary {
	background: #0073aa;
	color: white;
	border-color: #0073aa;
}

.feedback-actions .button-primary:hover {
	background: #005a87;
	border-color: #005a87;
}

.feedback-actions .button-primary:disabled {
	background: #ccc;
	border-color: #ccc;
	cursor: not-allowed;
}

.feedback-actions .button-secondary {
	background: white;
	color: #666;
	border-color: #c3c4c7;
}

.feedback-actions .button-secondary:hover {
	background: #f6f7f7;
	border-color: #8c8f94;
}

.feedback-submit-btn {
	font-weight: 600;
}

.feedback-cancel-btn {
	color: #d63638 !important;
	border-color: #d63638 !important;
}

.feedback-cancel-btn:hover {
	background: #d63638 !important;
	color: white !important;
}

/* Success/Error Messages */
.feedback-message {
	padding: 15px;
	margin: 15px 0;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.4;
	display: none;
}

.feedback-message.active {
	display: block;
}

.feedback-message.success {
	background: #d1eddb;
	border: 1px solid #00a32a;
	color: #00a32a;
}

.feedback-message.error {
	background: #fcf0f1;
	border: 1px solid #d63638;
	color: #d63638;
}

/* Mobile Responsive for Popup */
@media screen and (max-width: 782px) {
	.feedback-popup-container {
		width: 95%;
		max-height: 90vh;
		margin: 20px;
	}

	.feedback-popup-header {
		padding: 15px;
	}

	.feedback-popup-header h3 {
		font-size: 18px;
	}

	.feedback-popup-content {
		padding: 15px;
	}

	.feedback-reason-label {
		font-size: 13px;
	}

	.feedback-actions {
		flex-direction: column;
		gap: 8px;
	}

	.feedback-actions .button {
		width: 100%;
		text-align: center;
		font-size: 13px;
		padding: 10px;
	}
}

/* WordPress Admin Color Scheme Compatibility */
.wp-admin.admin-color-blue .feedback-actions .button-primary,
.wp-admin.admin-color-blue .notice-actions .button-primary {
	background: #096484;
	border-color: #096484;
}

.wp-admin.admin-color-coffee .feedback-actions .button-primary,
.wp-admin.admin-color-coffee .notice-actions .button-primary {
	background: #c7a589;
	border-color: #c7a589;
}

.wp-admin.admin-color-ectoplasm .feedback-actions .button-primary,
.wp-admin.admin-color-ectoplasm .notice-actions .button-primary {
	background: #a3b745;
	border-color: #a3b745;
}

.wp-admin.admin-color-midnight .feedback-actions .button-primary,
.wp-admin.admin-color-midnight .notice-actions .button-primary {
	background: #e14d43;
	border-color: #e14d43;
}

.wp-admin.admin-color-ocean .feedback-actions .button-primary,
.wp-admin.admin-color-ocean .notice-actions .button-primary {
	background: #627c83;
	border-color: #627c83;
}

.wp-admin.admin-color-sunrise .feedback-actions .button-primary,
.wp-admin.admin-color-sunrise .notice-actions .button-primary {
	background: #dd823b;
	border-color: #dd823b;
}

/* Animation for smooth transitions */
.feedback-reason-item {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-reason-details {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-popup-overlay {
	transition: opacity 0.3s ease;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.feedback-reason-item {
		border-width: 2px;
	}

	.feedback-actions .button,
	.notice-actions .button {
		border-width: 2px;
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	.feedback-popup-container {
		animation: none;
	}

	.loader-spinner {
		animation: none;
	}

	.feedback-reason-item,
	.feedback-reason-details,
	.feedback-popup-overlay {
		transition: none;
	}
}

/* Print styles */
@media print {
	.feedback-popup-overlay,
	.feedback-notice-content {
		display: none !important;
	}
}
