/* EDU Webinars — styles */

/* Access gate */
.edu-webinar-gate {
	max-width: 520px;
	margin: 40px auto;
	text-align: center;
	padding: 40px 32px;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #f8fafc;
}

.edu-webinar-gate-icon {
	font-size: 2.5rem;
	margin-bottom: 16px;
}

.edu-webinar-gate h2 {
	margin: 0 0 12px;
	font-size: 1.4rem;
	color: #0f172a;
}

.edu-webinar-gate p {
	color: #64748b;
	margin: 0 0 24px;
}

.edu-webinar-gate-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Webinar meta bar */
.edu-webinar-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e2e8f0;
}

.edu-webinar-course-link {
	font-weight: 600;
	text-decoration: none;
	color: #2563eb;
}

.edu-webinar-datetime {
	color: #64748b;
	font-size: .92rem;
}

/* Room layout */
.edu-webinar-room {
	display: grid;
	grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
	gap: 20px;
	margin: 20px 0 48px;
}

.edu-webinar-stage {
	position: relative;
	background: #0f172a;
	border-radius: 14px;
	overflow: hidden;
	aspect-ratio: 16/9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.edu-webinar-stage video#edu-webinar-remote-video {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #0f172a;
}

.edu-webinar-local-preview {
	position: absolute;
	width: 140px;
	height: 90px;
	right: 16px;
	bottom: 16px;
	border-radius: 8px;
	border: 2px solid rgba(255,255,255,.6);
	object-fit: cover;
	background: #000;
}

.edu-webinar-status {
	position: absolute;
	top: 16px;
	left: 16px;
	background: rgba(15,23,42,.75);
	color: #fff;
	padding: 8px 16px;
	border-radius: 30px;
	font-size: .85rem;
	font-weight: 600;
	z-index: 2;
}

.edu-webinar-host-controls {
	position: absolute;
	bottom: 16px;
	left: 16px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	z-index: 2;
}

.edu-btn-ghost-light {
	background: rgba(255,255,255,.12);
	color: #fff;
	border: 1px solid rgba(255,255,255,.35);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	font-size: .92rem;
	text-decoration: none;
	cursor: pointer;
}

.edu-btn-ghost-light:hover {
	background: rgba(255,255,255,.22);
}

.edu-btn-danger {
	background: #dc2626;
	color: #fff;
	border: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	font-size: .92rem;
	cursor: pointer;
}

.edu-btn-danger:hover {
	background: #b91c1c;
}

/* Chat panel */
.edu-webinar-chat {
	display: flex;
	flex-direction: column;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	max-height: 480px;
	min-width: 0;
}

.edu-webinar-chat-title {
	padding: 14px 18px;
	font-weight: 700;
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
}

.edu-webinar-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 240px;
}

.edu-webinar-chat-msg {
	font-size: .9rem;
	line-height: 1.4;
}

.edu-webinar-chat-msg .edu-chat-author {
	font-weight: 700;
	color: #2563eb;
	margin-right: 6px;
}

.edu-webinar-chat-msg.is-own .edu-chat-author {
	color: #16a34a;
}

.edu-webinar-chat-form {
	display: flex;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid #e2e8f0;
}

.edu-webinar-chat-form .edu-btn {
	flex-shrink: 0;
	white-space: nowrap;
	padding: 10px 16px;
}

.edu-webinar-chat-form input {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: .9rem;
}

.edu-webinar-chat-form input:focus {
	outline: none;
	border-color: #2563eb;
}

/* Course webinars list */
.edu-webinars-list {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	margin-bottom: 24px;
}

.edu-webinar-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	border-bottom: 1px solid #e2e8f0;
}

.edu-webinar-item:last-child {
	border-bottom: none;
}

.edu-webinar-item.is-live {
	background: #fef2f2;
}

.edu-webinar-item-info {
	flex: 1;
}

.edu-webinar-item-info h4 {
	margin: 0 0 4px;
	font-size: 1rem;
}

.edu-webinar-item-date {
	font-size: .85rem;
	color: #64748b;
}

.edu-badge-live {
	background: #fee2e2;
	color: #b91c1c;
	animation: edu-pulse 1.6s infinite;
}

@keyframes edu-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .55; }
}

/* Countdown widget (homepage) */
.edu-webinar-countdown {
	max-width: 480px;
	margin: 0 auto;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 16px;
	padding: 28px 32px;
	text-align: center;
	color: #fff;
	backdrop-filter: blur(4px);
}

.edu-webinar-countdown-label {
	font-size: .82rem;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: rgba(255,255,255,.7);
	margin-bottom: 10px;
}

.edu-webinar-countdown-title {
	margin: 0 0 4px;
	font-size: 1.3rem;
}

.edu-webinar-countdown-course {
	margin: 0 0 18px;
	color: rgba(255,255,255,.7);
	font-size: .9rem;
}

.edu-webinar-countdown-timer {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-bottom: 20px;
}

.edu-countdown-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 56px;
}

.edu-countdown-num {
	font-size: 1.8rem;
	font-weight: 800;
	background: rgba(255,255,255,.12);
	border-radius: 10px;
	padding: 8px 4px;
	width: 100%;
	text-align: center;
}

.edu-countdown-label {
	font-size: .72rem;
	color: rgba(255,255,255,.65);
	margin-top: 6px;
	text-transform: uppercase;
}

.edu-webinar-countdown-btn {
	display: inline-flex;
}

.edu-webinar-item-countdown {
	display: inline-block;
	margin-left: 14px;
	font-size: .85rem;
	color: #b45309;
	background: #fffbeb;
	border: 1px solid #fde68a;
	padding: 3px 10px;
	border-radius: 20px;
}

.edu-webinar-item-countdown strong {
	font-variant-numeric: tabular-nums;
}

/* Countdown inside webinar room page (light context) */
.edu-webinar-countdown.edu-webinar-countdown-room {
	max-width: none;
	margin: 0 0 20px;
	background: #0f172a;
	border: none;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	text-align: left;
}

.edu-webinar-countdown-room .edu-webinar-countdown-label {
	margin-bottom: 0;
	font-size: .95rem;
	text-transform: none;
	letter-spacing: 0;
	color: rgba(255,255,255,.85);
	font-weight: 600;
}

.edu-webinar-countdown-room .edu-webinar-countdown-timer {
	margin-bottom: 0;
	gap: 10px;
}

.edu-webinar-countdown-room .edu-countdown-block {
	min-width: 48px;
}

.edu-webinar-countdown-room .edu-countdown-num {
	font-size: 1.3rem;
	padding: 6px 4px;
	background: rgba(255,255,255,.14);
}

.edu-webinar-countdown-room .edu-countdown-label {
	font-size: .65rem;
	margin-top: 4px;
}

@media (max-width: 782px) {
	.edu-webinar-room {
		grid-template-columns: 1fr;
	}
	.edu-webinar-chat {
		max-height: 360px;
	}
}
