/**
 * Public styles for Conference Manager
 */

/* Base styles */
.cm-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Event display */
.cm-event-container {
	background: #fff;
	border-radius: 8px;
	padding: 30px;
	margin: 20px 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cm-event-title {
	color: #1f2937;
	font-size: 2.25rem;
	font-weight: 700;
	margin-bottom: 15px;
	line-height: 1.2;
}

.cm-event-description {
	color: #4b5563;
	font-size: 1.125rem;
	line-height: 1.6;
	margin-bottom: 30px;
}

.cm-event-details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
	padding: 20px;
	background: #f9fafb;
	border-radius: 6px;
}

.cm-event-detail {
	display: flex;
	align-items: center;
}

.cm-event-detail .icon {
	width: 20px;
	height: 20px;
	margin-right: 10px;
	color: #6b7280;
}

.cm-event-detail .label {
	font-weight: 600;
	color: #374151;
	margin-right: 8px;
}

.cm-event-detail .value {
	color: #1f2937;
}

/* Lineup display */
.cm-lineup-container {
	background: #fff;
	border-radius: 8px;
	padding: 30px;
	margin: 20px 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cm-lineup-title {
	color: #1f2937;
	font-size: 1.875rem;
	font-weight: 700;
	margin-bottom: 20px;
}

.cm-lineup-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.cm-lineup-item {
	display: flex;
	align-items: flex-start;
	padding: 20px;
	margin-bottom: 10px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.cm-lineup-item:hover {
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.cm-lineup-item.active {
	border-color: #10b981;
	background-color: #f0fdf4;
	position: relative;
}

.cm-lineup-item.active::before {
	content: "LIVE";
	position: absolute;
	top: 10px;
	right: 10px;
	background: #10b981;
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.cm-lineup-time {
	font-weight: 700;
	color: #374151;
	font-size: 1.125rem;
	min-width: 100px;
	margin-right: 20px;
	text-align: center;

	border-radius: 4px;
}

.cm-lineup-content {
	flex: 1;
}

.cm-lineup-content h4 {
	color: #1f2937;
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 5px 0;
}

.cm-presenter {
	color: #6b7280;
	font-weight: 500;
	margin: 5px 0;
}

.cm-description {
	color: #4b5563;
	margin: 10px 0 0 0;
	line-height: 1.5;
}

/* Current presentation display */
.cm-current-presentation {
	background: linear-gradient(135deg, #de53e0 0%, #bf53ed 100%);
	color: white;
	border-radius: 12px;
	padding: 40px;
	margin: 20px 0;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.cm-current-presentation::before {
	content: "";
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(
		circle,
		rgba(255, 255, 255, 0.1) 0%,
		transparent 70%
	);
	animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
	0%,
	100% {
		transform: scale(1);
		opacity: 0.7;
	}
	50% {
		transform: scale(1.1);
		opacity: 0.3;
	}
}

.cm-current-presentation h3 {
	font-size: 1.5rem;
	margin-bottom: 10px;
	opacity: 0.9;
}

.cm-current-presentation h4 {
	font-size: 2.5rem;
	font-weight: 700;
	margin: 0 0 15px 0;
	position: relative;
}

.cm-current-presentation .cm-presenter {
	font-size: 1.25rem;
	opacity: 0.9;
	margin-bottom: 15px;
}

.cm-current-presentation .cm-presentation-description {
	font-size: 1.125rem;
	opacity: 0.8;
	max-width: 800px;
	margin: 0 auto;
}

.cm-presentation-time {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.2);
	padding: 8px 12px;
	border-radius: 20px;
	font-size: 14px;
	backdrop-filter: blur(10px);
}

/* Quiz display */
.cm-quiz-container {
	background: #fff;
	border-radius: 8px;
	padding: 30px;
	margin: 20px 0;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.cm-quiz-title {
	color: #1f2937;
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 15px;
	text-align: center;
}

.cm-quiz-description {
	color: #4b5563;
	font-size: 1.125rem;
	text-align: center;
	margin-bottom: 30px;
}

.cm-question {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 25px;
	margin-bottom: 25px;
}

.cm-question h4 {
	color: #1f2937;
	font-size: 1.25rem;
	font-weight: 600;
	margin-bottom: 20px;
	line-height: 1.4;
}

.cm-question label {
	display: flex;
	align-items: center;
	padding: 12px;
	margin-bottom: 8px;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.cm-question label:hover {
	background: #f3f4f6;
	border-color: #9ca3af;
}

.cm-question input[type="radio"],
.cm-question input[type="checkbox"] {
	margin-right: 12px;
	width: 16px;
	height: 16px;
}

.cm-submit-quiz {
	background: #3b82f6;
	color: white;
	border: none;
	border-radius: 6px;
	padding: 12px 30px;
	font-size: 1.125rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: block;
	margin: 30px auto 0;
}

.cm-submit-quiz:hover {
	background: #2563eb;
	transform: translateY(-1px);
}

.cm-submit-quiz:disabled {
	background: #9ca3af;
	cursor: not-allowed;
	transform: none;
}

/* Quiz results */
.cm-quiz-results {
	background: #fff;
	border-radius: 8px;
	padding: 30px;
	margin: 20px 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cm-quiz-results h3 {
	color: #1f2937;
	font-size: 1.875rem;
	font-weight: 700;
	margin-bottom: 20px;
	text-align: center;
}

.cm-result-item {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e5e7eb;
}

.cm-result-question {
	color: #374151;
	font-weight: 600;
	margin-bottom: 15px;
	font-size: 1.125rem;
}

.cm-result-answers {
	display: grid;
	gap: 10px;
}

.cm-result-answer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 15px;
	border-radius: 4px;
	background: #f9fafb;
}

.cm-result-answer.correct {
	background: #d1fae5;
	border-left: 4px solid #10b981;
}

.cm-result-count {
	font-weight: 600;
	color: #6b7280;
}

/* Timer display */
.cm-timer {
	background: #1f2937;
	color: white;
	padding: 20px;
	border-radius: 8px;
	text-align: center;
	font-family: "Courier New", monospace;
	font-size: 1.5rem;
	font-weight: 700;
	margin: 20px 0;
	position: sticky;
	top: 20px;
}

.cm-timer.urgent {
	background: #ef4444;
	animation: blink 1s infinite;
}

@keyframes blink {
	0%,
	50% {
		opacity: 1;
	}
	51%,
	100% {
		opacity: 0.5;
	}
}

/* Loading states */
.cm-loading {
	position: relative;
	opacity: 0.6;
	pointer-events: none;
}

.cm-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 32px;
	height: 32px;
	margin: -16px 0 0 -16px;
	border: 3px solid #f3f4f6;
	border-top: 3px solid #3b82f6;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

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

/* Responsive design */
@media (max-width: 768px) {
	.cm-event-details {
		grid-template-columns: 1fr;
	}

	.cm-lineup-item {
		flex-direction: column;
		text-align: center;
	}

	.cm-lineup-time {
		margin: 0 0 15px 0;
		min-width: auto;
	}

	.cm-current-presentation {
		padding: 30px 20px;
	}

	.cm-current-presentation h4 {
		font-size: 2rem;
	}

	.cm-presentation-time {
		position: static;
		display: block;
		margin: 15px auto 0;
		width: fit-content;
	}

	.cm-quiz-container {
		padding: 20px;
		margin: 10px;
	}

	.cm-question {
		padding: 20px;
	}
}

@media (max-width: 480px) {
	.cm-event-title {
		font-size: 1.875rem;
	}

	.cm-quiz-title {
		font-size: 1.5rem;
	}

	.cm-current-presentation h4 {
		font-size: 1.5rem;
	}
}
