/* form/nc/nc-help/nc-help.css */
/* NC Help Component Styles */
/* Optimized for sidebar usage with small interface elements */

.nc-help {
	font-family: var(--nc-font-family, inherit);
	font-size: var(--nc-font-size, 14px);
	line-height: 1.4;
	color: var(--nc-text-color, #333);
}

/* Compact mode for sidebar */
.nc-help.nc-help-compact {
	padding: 8px;
	margin: 4px;
	border-radius: 6px;
	background: var(--nc-background-light, #f8f9fa);
	border: 1px solid var(--nc-border-color, #dee2e6);
}

.nc-help-compact .nc-help-header {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 8px;
	text-align: center;
}

.nc-help-compact .nc-help-content {
	font-size: 13px;
	line-height: 1.3;
}

/* Button styles for compact mode */
.nc-help-compact .nc-button {
	padding: 4px 8px;
	font-size: 12px;
	margin: 2px;
	min-height: 24px;
	border-radius: 4px;
}

/* Full mode styles */
.nc-help.nc-help-full {
	padding: 16px;
	margin: 8px;
	border-radius: 8px;
	background: var(--nc-background, #ffffff);
	border: 1px solid var(--nc-border-color, #dee2e6);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nc-help-full .nc-help-header {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 16px;
	text-align: center;
	color: var(--nc-primary-color, #007bff);
}

.nc-help-full .nc-help-content {
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 16px;
}

/* Player component styles */
.nc-help-player {
	background: var(--nc-background-light, #f8f9fa);
	border-radius: 6px;
	padding: 12px;
	margin-bottom: 12px;
}

.nc-help-player-compact {
	padding: 8px;
	margin-bottom: 8px;
}

.nc-help-step {
	margin-bottom: 12px;
}

.nc-help-step-title {
	font-weight: 600;
	color: var(--nc-primary-color, #007bff);
	margin-bottom: 6px;
}

.nc-help-step-content {
	color: var(--nc-text-color, #333);
	margin-bottom: 8px;
}

.nc-help-step-content h1,
.nc-help-step-content h2,
.nc-help-step-content h3,
.nc-help-step-content h4,
.nc-help-step-content h5,
.nc-help-step-content h6 {
	margin-top: 8px;
	margin-bottom: 4px;
	color: var(--nc-text-dark, #212529);
}

.nc-help-step-content p {
	margin-bottom: 6px;
}

.nc-help-step-content ul,
.nc-help-step-content ol {
	margin-left: 20px;
	margin-bottom: 6px;
}

.nc-help-step-content code {
	background: var(--nc-code-background, #e9ecef);
	padding: 2px 4px;
	border-radius: 3px;
	font-family: var(--nc-font-mono, 'Courier New', monospace);
	font-size: 0.9em;
}

.nc-help-step-content pre {
	background: var(--nc-code-background, #e9ecef);
	padding: 8px;
	border-radius: 4px;
	overflow-x: auto;
	font-family: var(--nc-font-mono, 'Courier New', monospace);
	font-size: 0.85em;
	line-height: 1.4;
}

/* Navigation controls */
.nc-help-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 12px;
	padding-top: 8px;
	border-top: 1px solid var(--nc-border-color, #dee2e6);
}

.nc-help-navigation-compact {
	margin-top: 8px;
	padding-top: 6px;
}

.nc-help-progress {
	flex: 1;
	margin: 0 12px;
}

.nc-help-progress-bar {
	height: 4px;
	background: var(--nc-progress-background, #e9ecef);
	border-radius: 2px;
	overflow: hidden;
}

.nc-help-progress-fill {
	height: 100%;
	background: var(--nc-primary-color, #007bff);
	transition: width 0.3s ease;
}

.nc-help-step-info {
	font-size: 12px;
	color: var(--nc-text-muted, #6c757d);
	text-align: center;
	margin-bottom: 4px;
}

/* Editor component styles */
.nc-help-editor {
	background: var(--nc-background-light, #f8f9fa);
	border-radius: 6px;
	padding: 12px;
	margin-bottom: 12px;
}

.nc-help-editor-compact {
	padding: 8px;
	margin-bottom: 8px;
}

.nc-help-editor-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.nc-help-editor-form-compact {
	gap: 8px;
}

.nc-help-form-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nc-help-form-group-compact {
	gap: 2px;
}

.nc-help-form-label {
	font-weight: 600;
	color: var(--nc-text-dark, #212529);
	font-size: 13px;
}

.nc-help-form-label-compact {
	font-size: 12px;
}

.nc-help-form-input,
.nc-help-form-select,
.nc-help-form-textarea {
	padding: 6px 8px;
	border: 1px solid var(--nc-border-color, #dee2e6);
	border-radius: 4px;
	font-size: 13px;
	background: var(--nc-background, #ffffff);
	color: var(--nc-text-color, #333);
}

.nc-help-form-input-compact,
.nc-help-form-select-compact,
.nc-help-form-textarea-compact {
	padding: 4px 6px;
	font-size: 12px;
}

.nc-help-form-textarea {
	min-height: 60px;
	resize: vertical;
}

.nc-help-form-textarea-compact {
	min-height: 40px;
}

/* Step list in editor */
.nc-help-step-list {
	border: 1px solid var(--nc-border-color, #dee2e6);
	border-radius: 4px;
	background: var(--nc-background, #ffffff);
	max-height: 200px;
	overflow-y: auto;
}

.nc-help-step-list-compact {
	max-height: 150px;
}

.nc-help-step-item {
	padding: 8px;
	border-bottom: 1px solid var(--nc-border-light, #f1f3f4);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nc-help-step-item:last-child {
	border-bottom: none;
}

.nc-help-step-item-compact {
	padding: 6px;
}

.nc-help-step-info {
	flex: 1;
	margin-right: 8px;
}

.nc-help-step-action {
	display: flex;
	gap: 4px;
}

.nc-help-step-action .nc-button {
	padding: 2px 6px;
	font-size: 11px;
	min-height: 20px;
}

/* Floating help popover */
.nc-help-popover {
	position: fixed;
	background: var(--nc-background, #ffffff);
	border: 1px solid var(--nc-border-color, #dee2e6);
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	padding: 12px;
	max-width: 300px;
	z-index: 1000;
}

.nc-help-popover-compact {
	padding: 8px;
	max-width: 250px;
}

.nc-help-popover-arrow {
	position: absolute;
	width: 0;
	height: 0;
	border-style: solid;
}

.nc-help-popover-arrow-top {
	bottom: -8px;
	left: 50%;
	transform: translateX(-50%);
	border-width: 8px 8px 0 8px;
	border-color: var(--nc-background, #ffffff) transparent transparent transparent;
}

.nc-help-popover-arrow-bottom {
	top: -8px;
	left: 50%;
	transform: translateX(-50%);
	border-width: 0 8px 8px 8px;
	border-color: transparent transparent var(--nc-background, #ffffff) transparent;
}

.nc-help-popover-arrow-left {
	right: -8px;
	top: 50%;
	transform: translateY(-50%);
	border-width: 8px 0 8px 8px;
	border-color: transparent transparent transparent var(--nc-background, #ffffff);
}

.nc-help-popover-arrow-right {
	left: -8px;
	top: 50%;
	transform: translateY(-50%);
	border-width: 8px 8px 8px 0;
	border-color: transparent var(--nc-background, #ffffff) transparent transparent;
}

/* Highlight effect for elements */
.nc-help-highlight {
	position: relative;
	outline: 2px solid var(--nc-warning-color, #ffc107);
	outline-offset: 2px;
	background-color: rgba(255, 193, 7, 0.1);
	border-radius: 4px;
	transition: all 0.3s ease;
}

.nc-help-highlight::before {
	content: '';
	position: absolute;
	top: -4px;
	left: -4px;
	right: -4px;
	bottom: -4px;
	border: 2px solid var(--nc-warning-color, #ffc107);
	border-radius: 6px;
	pointer-events: none;
	animation: nc-help-pulse 2s infinite;
}

@keyframes nc-help-pulse {
	0% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.7;
		transform: scale(1.02);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

/* Responsive design */
@media (max-width: 768px) {
	.nc-help {
		padding: 8px;
		margin: 4px;
	}

	.nc-help-full {
		padding: 12px;
	}

	.nc-help-player,
	.nc-help-editor {
		padding: 8px;
	}

	.nc-help-popover {
		max-width: 250px;
		padding: 8px;
	}
}

@media (max-width: 480px) {
	.nc-help {
		padding: 4px;
		margin: 2px;
	}

	.nc-help-full {
		padding: 8px;
	}

	.nc-help-player,
	.nc-help-editor {
		padding: 6px;
	}

	.nc-help-popover {
		max-width: 200px;
		padding: 6px;
	}

	.nc-help-navigation {
		flex-direction: column;
		gap: 8px;
	}

	.nc-help-progress {
		margin: 0;
		order: -1;
	}
}

/* Accessibility */
.nc-help:focus-within {
	outline: 2px solid var(--nc-focus-color, #80bdff);
	outline-offset: 2px;
}

.nc-help-button:focus {
	outline: 2px solid var(--nc-focus-color, #80bdff);
	outline-offset: 1px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
	.nc-help {
		border-width: 2px;
	}

	.nc-help-highlight {
		outline-width: 3px;
		background-color: rgba(255, 193, 7, 0.3);
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.nc-help-highlight::before {
		animation: none;
	}

	.nc-help-progress-fill {
		transition: none;
	}
}
