/* Webinar Manager - frontend styles */

.wm-webinars {
	display: grid;
	gap: 24px;
}

.wm-webinars.wm-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wm-webinars.wm-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wm-webinars.wm-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.wm-webinar {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 22px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wm-webinar__title {
	margin: 4px 0 0;
	font-size: 1.2em;
	line-height: 1.3;
}

.wm-webinar__title a {
	color: inherit;
	text-decoration: none;
}

.wm-webinar__title a:hover {
	text-decoration: underline;
}

.wm-webinar__exam {
	margin: 6px 0 0;
	color: #475569;
	font-size: 0.92em;
}

.wm-webinar__meta {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wm-webinar__meta li {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-size: 0.95em;
	color: #334155;
}

.wm-webinar__meta .wm-label {
	font-weight: 600;
	color: #1e293b;
}

.wm-sep {
	margin: 0 2px;
	color: #94a3b8;
}

.wm-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	align-self: flex-start;
}

.wm-badge--upcoming { background: #dbeafe; color: #1d4ed8; }
.wm-badge--live     { background: #dcfce7; color: #15803d; }
.wm-badge--past     { background: #f1f5f9; color: #64748b; }

.wm-webinar__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
	padding-top: 8px;
}

.wm-btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 0.95em;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.wm-btn--register {
	background: #1d4ed8;
	color: #fff;
}

.wm-btn--register:hover {
	background: #1e40af;
	color: #fff;
}

.wm-btn--join {
	background: #059669;
	color: #fff;
}

.wm-btn--join:hover {
	background: #047857;
	color: #fff;
}

.wm-empty {
	padding: 18px;
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	color: #64748b;
	text-align: center;
}

/* Single webinar details */
.wm-details {
	margin-top: 32px;
	padding: 24px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
}

.wm-details__heading {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	font-size: 1.3em;
}

.wm-details__table {
	width: 100%;
	border-collapse: collapse;
}

.wm-details__table th,
.wm-details__table td {
	padding: 10px 12px;
	border-bottom: 1px solid #f1f5f9;
	text-align: left;
	vertical-align: top;
}

.wm-details__table tr:last-child th,
.wm-details__table tr:last-child td {
	border-bottom: 0;
}

.wm-details__table th {
	width: 40%;
	color: #475569;
	font-weight: 600;
}

.wm-details__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

@media (max-width: 782px) {
	.wm-webinars.wm-columns-2,
	.wm-webinars.wm-columns-3,
	.wm-webinars.wm-columns-4 {
		grid-template-columns: 1fr;
	}
}