/**
 * Networking Quiz Styles
 * 
 * Clean, accessible, responsive styling for the quiz
 */

/* Container */
.pme-nq-container {
	max-width: 900px;
	margin: 2em auto;
	padding: 0 1em;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	line-height: 1.6;
	color: #333;
}

/* Introduction */
.pme-nq-intro {
	margin-bottom: 2.5em;
	padding: 1.5em;
	background: #f8f9fa;
	border-left: 4px solid #0073aa;
	border-radius: 4px;
}

.pme-nq-intro p {
	margin: 0 0 1em 0;
}

.pme-nq-intro p:last-child {
	margin-bottom: 0;
}

/* Category Sections */
.pme-nq-category {
	margin-bottom: 3em;
	padding-bottom: 2em;
	border-bottom: 1px solid #e0e0e0;
}

.pme-nq-category:last-of-type {
	border-bottom: none;
}

.pme-nq-category-title {
	font-size: 1.5em;
	margin: 0 0 0.5em 0;
	color: #0073aa;
	font-weight: 600;
}

.pme-nq-category-description {
	margin: 0 0 1.5em 0;
	color: #666;
	font-size: 0.95em;
	font-style: italic;
}

/* Questions */
.pme-nq-questions {
	margin-top: 1.5em;
}

.pme-nq-question {
	margin-bottom: 2em;
}

.pme-nq-fieldset {
	border: none;
	padding: 0;
	margin: 0;
}

.pme-nq-question-text {
	font-size: 1.1em;
	font-weight: 500;
	margin-bottom: 1em;
	color: #333;
	padding: 0;
}

/* Likert Scale */
.pme-nq-likert-scale {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-top: 0.5em;
}

.pme-nq-radio-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0.75em 1em;
	border: 2px solid #ddd;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	transition: all 0.2s ease;
	min-width: 100px;
	text-align: center;
}

.pme-nq-radio-label:hover {
	border-color: #0073aa;
	background: #f0f8ff;
}

.pme-nq-radio-label input[type="radio"] {
	margin: 0 0 0.5em 0;
	cursor: pointer;
}

.pme-nq-radio-label input[type="radio"]:checked + .pme-nq-radio-value {
	font-weight: bold;
	color: #0073aa;
}

.pme-nq-radio-label:has(input[type="radio"]:checked) {
	border-color: #0073aa;
	background: #e6f3ff;
}

.pme-nq-radio-value {
	font-size: 1.2em;
	font-weight: 600;
	margin-bottom: 0.25em;
	color: #333;
}

.pme-nq-radio-text {
	font-size: 0.85em;
	color: #666;
	line-height: 1.3;
}

/* Focus states for accessibility */
.pme-nq-radio-label:focus-within {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* Submit Button */
.pme-nq-submit-wrapper {
	margin-top: 3em;
	text-align: center;
}

.pme-nq-submit-button {
	background: #0073aa;
	color: #fff;
	border: none;
	padding: 1em 2.5em;
	font-size: 1.1em;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.pme-nq-submit-button:hover {
	background: #005a87;
}

.pme-nq-submit-button:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

.pme-nq-submit-button:active {
	background: #004a6f;
}

/* Results Container */
.pme-nq-results {
	margin-top: 3em;
	padding: 2em;
	background: #f8f9fa;
	border-radius: 8px;
}

.pme-nq-results-title {
	font-size: 2em;
	margin: 0 0 1.5em 0;
	color: #0073aa;
	text-align: center;
}

/* Chart Container */
.pme-nq-chart-container {
	position: relative;
	height: 450px;
	margin: 2.5em 0;
	background: #fff;
	padding: 2em 3em;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	display: flex;
	align-items: center;
	justify-content: center;
}

#pme-nq-radar-chart {
	max-width: 100%;
	height: auto;
}

/* Screen reader only text */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* Feedback */
.pme-nq-feedback {
	margin: 2.5em 0;
}

.pme-nq-interpretation {
	font-size: 1.1em;
	line-height: 1.8;
	color: #334155;
	margin-bottom: 2em;
	padding: 1.5em;
	background: #f8fafc;
	border-left: 3px solid #64748b;
	border-radius: 4px;
}

.pme-nq-interpretation p {
	margin: 0.75em 0;
}

.pme-nq-interpretation p:first-child {
	margin-top: 0;
}

.pme-nq-interpretation p:last-child {
	margin-bottom: 0;
}

.pme-nq-pattern-summary {
	margin: 2em 0;
	padding: 1.5em;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.pme-nq-strengths,
.pme-nq-gaps {
	margin: 1em 0;
	font-size: 1em;
	line-height: 1.6;
	color: #475569;
}

.pme-nq-strengths:first-child,
.pme-nq-gaps:first-child {
	margin-top: 0;
}

.pme-nq-strengths strong,
.pme-nq-gaps strong {
	color: #1e293b;
	font-weight: 600;
}

.pme-nq-next-step-panel {
	margin: 2.5em 0;
	padding: 1.5em;
	background: #f8fafc;
	border-radius: 4px;
	border: 1px solid #e2e8f0;
}

.pme-nq-next-step-title {
	margin: 0 0 0.75em 0;
	font-size: 1.25em;
	color: #1e293b;
	font-weight: 600;
}

.pme-nq-next-step-content {
	font-size: 1em;
	line-height: 1.7;
	color: #475569;
	margin-bottom: 1em;
}

.pme-nq-next-step-content p {
	margin: 0.5em 0;
}

.pme-nq-next-step-content p:first-child {
	margin-top: 0;
}

/* CTA Buttons */
.pme-nq-cta-buttons {
	display: flex;
	gap: 1em;
	margin-top: 2em;
	flex-wrap: wrap;
}

.pme-nq-cta-button {
	display: inline-block;
	padding: 1em 2em;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	text-align: center;
	transition: all 0.2s ease;
	flex: 1;
	min-width: 200px;
}

.pme-nq-cta-primary {
	background: #0073aa;
	color: #fff;
}

.pme-nq-cta-primary:hover {
	background: #005a87;
	color: #fff;
}

.pme-nq-cta-secondary {
	background: #fff;
	color: #0073aa;
	border: 2px solid #0073aa;
}

.pme-nq-cta-secondary:hover {
	background: #f0f8ff;
	color: #005a87;
	border-color: #005a87;
}

.pme-nq-cta-button:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* Actions */
.pme-nq-actions {
	text-align: center;
	margin-top: 2em;
}

.pme-nq-retake-button {
	background: transparent;
	color: #0073aa;
	border: 2px solid #0073aa;
	padding: 0.75em 2em;
	font-size: 1em;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.pme-nq-retake-button:hover {
	background: #0073aa;
	color: #fff;
}

.pme-nq-retake-button:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
	.pme-nq-container {
		padding: 0 0.75em;
	}
	
	.pme-nq-likert-scale {
		flex-direction: column;
	}
	
	.pme-nq-radio-label {
		width: 100%;
		flex-direction: row;
		justify-content: flex-start;
		text-align: left;
		padding: 0.75em;
	}
	
	.pme-nq-radio-value {
		margin: 0 1em 0 0;
		font-size: 1.1em;
	}
	
	.pme-nq-radio-text {
		font-size: 0.9em;
	}
	
	.pme-nq-chart-container {
		height: 300px;
		padding: 1.5em 2em;
	}
	
	.pme-nq-cta-buttons {
		flex-direction: column;
	}
	
	.pme-nq-cta-button {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.pme-nq-category-title {
		font-size: 1.25em;
	}
	
	.pme-nq-question-text {
		font-size: 1em;
	}
	
	.pme-nq-results-title {
		font-size: 1.5em;
	}
	
	.pme-nq-chart-container {
		height: 250px;
		padding: 1em 1.5em;
	}
}

/* Print Styles */
@media print {
	.pme-nq-submit-button,
	.pme-nq-retake-button,
	.pme-nq-cta-buttons {
		display: none;
	}
	
	.pme-nq-container {
		max-width: 100%;
	}
}
