/**
 * The public-facing stylesheet for the plugin.
 *
 * @package    InfoCheck99
 * @subpackage InfoCheck99/public
 * @author     Your Name <email@example.com>
 */

/* ================================================
   Container & Form Styles
   ================================================ */

.infocheck99-container {
	max-width: 800px;
	margin: 2rem auto;
	padding: 0 1rem;
}

.infocheck99-form {
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	padding: 2rem;
}

/* ================================================
   Input Group Styles
   ================================================ */

.infocheck99-input-group {
	margin-bottom: 1.5rem;
}

.infocheck99-label {
	display: block;
	font-size: 1.125rem;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 0.75rem;
}

.infocheck99-textarea {
	width: 100%;
	min-height: 200px;
	padding: 1rem;
	border: 2px solid #d1d5db;
	border-radius: 6px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: #1a1a1a;
	resize: vertical;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.infocheck99-textarea:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.infocheck99-textarea::placeholder {
	color: #9ca3af;
}

.infocheck99-char-count {
	text-align: right;
	font-size: 0.875rem;
	color: #6b7280;
	margin-top: 0.5rem;
}

.infocheck99-current-count {
	font-weight: 600;
	color: #1a1a1a;
}

/* ================================================
   Button Styles
   ================================================ */

.infocheck99-actions {
	margin-bottom: 1.5rem;
}

.infocheck99-btn {
	padding: 0.75rem 2rem;
	font-size: 1rem;
	font-weight: 600;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	display: inline-block;
}

.infocheck99-btn-primary {
	background-color: #3b82f6;
	color: #ffffff;
}

.infocheck99-btn-primary:hover {
	background-color: #2563eb;
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
	transform: translateY(-1px);
}

.infocheck99-btn-primary:active {
	background-color: #1d4ed8;
	transform: translateY(0);
}

.infocheck99-btn-primary:disabled {
	background-color: #9ca3af;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.infocheck99-btn-secondary {
	background-color: #6b7280;
	color: #ffffff;
	margin-left: 0.5rem;
}

.infocheck99-btn-secondary:hover {
	background-color: #4b5563;
}

/* ================================================
   Loading Spinner
   ================================================ */

.infocheck99-loading {
	text-align: center;
	padding: 2rem;
	background: #f3f4f6;
	border-radius: 6px;
	margin-bottom: 1.5rem;
}

.infocheck99-spinner {
	width: 40px;
	height: 40px;
	margin: 0 auto 1rem;
	border: 4px solid #e5e7eb;
	border-top-color: #3b82f6;
	border-radius: 50%;
	animation: infocheck99-spin 0.8s linear infinite;
}

@keyframes infocheck99-spin {
	to {
		transform: rotate(360deg);
	}
}

.infocheck99-loading p {
	color: #6b7280;
	font-size: 0.95rem;
	margin: 0;
}

/* ================================================
   Error Styles
   ================================================ */

.infocheck99-error {
	background-color: #fef2f2;
	border: 2px solid #fca5a5;
	border-radius: 6px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: flex-start;
}

.infocheck99-error-icon {
	font-size: 1.5rem;
	margin-right: 1rem;
	flex-shrink: 0;
}

.infocheck99-error-message {
	color: #991b1b;
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
}

/* ================================================
   Results Styles
   ================================================ */

.infocheck99-results {
	background: #f9fafb;
	border-radius: 6px;
	padding: 1.5rem;
	margin-top: 1.5rem;
}

.infocheck99-results-summary {
	background: #ffffff;
	border-radius: 6px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.infocheck99-summary-count {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.infocheck99-risk-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
}

.infocheck99-risk-high {
	background-color: #fee2e2;
	color: #991b1b;
}

.infocheck99-risk-medium {
	background-color: #fef3c7;
	color: #92400e;
}

.infocheck99-risk-low {
	background-color: #d1fae5;
	color: #065f46;
}

.infocheck99-results-items {
	margin-bottom: 1.5rem;
}

.infocheck99-result-item {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-left: 4px solid #3b82f6;
	border-radius: 6px;
	padding: 1rem;
	margin-bottom: 1rem;
	transition: box-shadow 0.3s ease;
}

.infocheck99-result-item:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.infocheck99-result-type {
	font-weight: 600;
	color: #3b82f6;
	margin-bottom: 0.5rem;
}

.infocheck99-result-value {
	color: #1a1a1a;
	margin-bottom: 0.5rem;
}

.infocheck99-result-position {
	font-size: 0.875rem;
	color: #6b7280;
	margin-bottom: 0.5rem;
}

.infocheck99-result-description {
	font-size: 0.9rem;
	color: #4b5563;
	margin: 0;
}

.infocheck99-ai-comment {
	background: #eff6ff;
	border-left: 4px solid #3b82f6;
	border-radius: 6px;
	padding: 1.25rem;
	margin-bottom: 1.5rem;
}

.infocheck99-ai-comment-title {
	font-weight: 600;
	color: #1e40af;
	margin-bottom: 0.5rem;
}

.infocheck99-ai-comment-text {
	color: #1e3a8a;
	margin: 0;
	line-height: 1.6;
}

.infocheck99-export-actions {
	display: flex;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

/* ================================================
   Empty State
   ================================================ */

.infocheck99-empty-state {
	text-align: center;
	padding: 2rem;
	background: #f0fdf4;
	border: 2px dashed #86efac;
	border-radius: 6px;
}

.infocheck99-empty-state-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
}

.infocheck99-empty-state-message {
	color: #166534;
	font-weight: 600;
	font-size: 1.125rem;
	margin: 0;
}

/* ================================================
   Responsive Styles
   ================================================ */

@media (max-width: 768px) {
	.infocheck99-container {
		margin: 1rem auto;
	}

	.infocheck99-form {
		padding: 1.5rem;
	}

	.infocheck99-textarea {
		min-height: 150px;
	}

	.infocheck99-export-actions {
		flex-direction: column;
	}

	.infocheck99-btn {
		width: 100%;
	}

	.infocheck99-btn-secondary {
		margin-left: 0;
		margin-top: 0.5rem;
	}
}

@media (max-width: 480px) {
	.infocheck99-form {
		padding: 1rem;
	}

	.infocheck99-label {
		font-size: 1rem;
	}

	.infocheck99-summary-count {
		font-size: 1.5rem;
	}
}
