/* ── Nexus Webinar Frontend Styles ───────────────────────────────────────── */

:root {
	--nwbr-primary:   #0073aa;
	--nwbr-accent:    #00a0d2;
	--nwbr-success:   #15803d;
	--nwbr-danger:    #dc2626;
	--nwbr-text:      #1a1a1a;
	--nwbr-muted:     #6c757d;
	--nwbr-border:    #e2e8f0;
	--nwbr-bg:        #f8fafc;
	--nwbr-card:      #ffffff;
	--nwbr-radius:    10px;
	--nwbr-shadow:    0 2px 10px rgba(0,0,0,.08);
	--nwbr-shadow-lg: 0 8px 28px rgba(0,0,0,.14);
	--nwbr-trans:     .2s ease;
}

/* ── Listing: wrapper ─────────────────────────────────────────────────────── */
.nwbr-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 16px;
}

/* ── Filter bar ───────────────────────────────────────────────────────────── */
.nwbr-filter-bar {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}
.nwbr-filter-btn {
	background: var(--nwbr-bg);
	border: 1px solid var(--nwbr-border);
	border-radius: 20px;
	padding: 7px 20px;
	font-size: 13px;
	font-weight: 600;
	color: var(--nwbr-muted);
	cursor: pointer;
	transition: background var(--nwbr-trans), color var(--nwbr-trans), border-color var(--nwbr-trans);
}
.nwbr-filter-btn:hover,
.nwbr-filter-active {
	background: var(--nwbr-primary);
	border-color: var(--nwbr-primary);
	color: #fff;
}

/* ── Webinar grid ─────────────────────────────────────────────────────────── */
.nwbr-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
@media (max-width: 900px) { .nwbr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .nwbr-grid { grid-template-columns: 1fr; } }

/* ── Webinar card ─────────────────────────────────────────────────────────── */
.nwbr-card {
	background: var(--nwbr-card);
	border: 1px solid var(--nwbr-border);
	border-radius: var(--nwbr-radius);
	overflow: hidden;
	box-shadow: var(--nwbr-shadow);
	display: flex;
	flex-direction: column;
	transition: box-shadow var(--nwbr-trans), transform var(--nwbr-trans);
}
.nwbr-card:hover {
	box-shadow: var(--nwbr-shadow-lg);
	transform: translateY(-4px);
}

.nwbr-card-thumb {
	position: relative;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}
.nwbr-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.nwbr-card:hover .nwbr-card-thumb img { transform: scale(1.05); }

.nwbr-card-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
}
.nwbr-card-thumb-placeholder svg { width: 48px; height: 48px; }

.nwbr-type-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #fff;
}
.nwbr-type-free { background: #16a34a; }
.nwbr-type-paid { background: #d97706; }

.nwbr-card-body {
	padding: 16px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nwbr-card-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--nwbr-text);
	margin: 0;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nwbr-card-speaker {
	font-size: 13px;
	color: var(--nwbr-primary);
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 5px;
}
.nwbr-card-speaker svg { width: 14px; height: 14px; flex-shrink: 0; }

.nwbr-card-date {
	font-size: 12px;
	color: var(--nwbr-muted);
	display: flex;
	align-items: center;
	gap: 5px;
}
.nwbr-card-date svg { width: 13px; height: 13px; flex-shrink: 0; }

.nwbr-card-excerpt {
	font-size: 13px;
	color: var(--nwbr-muted);
	line-height: 1.5;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nwbr-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 6px;
	padding-top: 12px;
	border-top: 1px solid var(--nwbr-border);
}

.nwbr-card-price {
	font-size: 15px;
	font-weight: 800;
	color: var(--nwbr-text);
}
.nwbr-card-price.free { color: #16a34a; }

.nwbr-card-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	font-weight: 700;
	color: var(--nwbr-primary);
	text-decoration: none;
	transition: gap var(--nwbr-trans);
}
.nwbr-card-link:hover { gap: 9px; }
.nwbr-card-link svg { width: 14px; height: 14px; }

/* ── Loader / empty ───────────────────────────────────────────────────────── */
.nwbr-loader {
	display: flex;
	justify-content: center;
	padding: 40px 0;
}
.nwbr-spinner {
	width: 38px;
	height: 38px;
	border: 3px solid var(--nwbr-border);
	border-top-color: var(--nwbr-primary);
	border-radius: 50%;
	animation: nwbr-spin .7s linear infinite;
}
@keyframes nwbr-spin { to { transform: rotate(360deg); } }
.nwbr-empty {
	text-align: center;
	color: var(--nwbr-muted);
	padding: 48px 0;
	font-size: 15px;
}
.nwbr-more-wrap { display: flex; justify-content: center; margin-top: 32px; }
.nwbr-btn-more {
	padding: 11px 36px;
	background: transparent;
	border: 2px solid var(--nwbr-primary);
	border-radius: 8px;
	color: var(--nwbr-primary);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background var(--nwbr-trans), color var(--nwbr-trans);
}
.nwbr-btn-more:hover { background: var(--nwbr-primary); color: #fff; }

/* ── Single webinar ───────────────────────────────────────────────────────── */
.nwbr-single { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }

.nwbr-hero {
	position: relative;
	max-height: 440px;
	overflow: hidden;
	border-radius: 0 0 12px 12px;
	margin: 0 -16px 32px;
}
.nwbr-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nwbr-hero-overlay { position: absolute; top: 16px; left: 16px; }
.nwbr-hero .nwbr-type-badge { position: static; }

.nwbr-single-body {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 36px;
	align-items: start;
}
@media (max-width: 860px) { .nwbr-single-body { grid-template-columns: 1fr; } }

.nwbr-meta-top { margin-bottom: 12px; }
.nwbr-meta-top .nwbr-type-badge { position: static; }

.nwbr-title {
	font-size: clamp(22px, 4vw, 36px);
	font-weight: 800;
	line-height: 1.25;
	margin: 0 0 20px;
	color: var(--nwbr-text);
}

/* ── Meta bar ─────────────────────────────────────────────────────────────── */
.nwbr-meta-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 28px;
	padding: 16px;
	background: var(--nwbr-bg);
	border: 1px solid var(--nwbr-border);
	border-radius: var(--nwbr-radius);
}
.nwbr-meta-item {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	color: var(--nwbr-text);
	font-weight: 500;
}
.nwbr-icon { width: 16px; height: 16px; color: var(--nwbr-primary); flex-shrink: 0; }
.nwbr-gcal-link {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: var(--nwbr-primary);
	text-decoration: none;
	font-weight: 500;
	margin-left: auto;
}
.nwbr-gcal-link:hover { text-decoration: underline; }

/* ── Description ──────────────────────────────────────────────────────────── */
.nwbr-description {
	font-size: 16px;
	line-height: 1.75;
	color: var(--nwbr-text);
	margin-bottom: 32px;
}
.nwbr-description h2,
.nwbr-description h3 { margin-top: 24px; }
.nwbr-description img { max-width: 100%; border-radius: 8px; }
.nwbr-description a  { color: var(--nwbr-primary); }

/* ── Speaker card ─────────────────────────────────────────────────────────── */
.nwbr-speaker-card {
	background: var(--nwbr-bg);
	border: 1px solid var(--nwbr-border);
	border-radius: var(--nwbr-radius);
	padding: 20px;
	margin-top: 8px;
}
.nwbr-speaker-heading {
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--nwbr-muted);
	margin: 0 0 14px;
}
.nwbr-speaker-inner { display: flex; gap: 16px; align-items: flex-start; }
.nwbr-speaker-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	border: 3px solid var(--nwbr-border);
}
.nwbr-speaker-info { display: flex; flex-direction: column; gap: 4px; }
.nwbr-speaker-name {
	font-size: 16px;
	font-weight: 700;
	color: var(--nwbr-text);
}
.nwbr-speaker-des {
	font-size: 13px;
	color: var(--nwbr-primary);
	font-weight: 500;
}
.nwbr-speaker-bio {
	font-size: 13px;
	color: var(--nwbr-muted);
	line-height: 1.55;
	margin: 4px 0 0;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.nwbr-sidebar { display: flex; flex-direction: column; gap: 20px; }

.nwbr-price-card {
	background: var(--nwbr-primary);
	color: #fff;
	border-radius: var(--nwbr-radius);
	padding: 20px;
	text-align: center;
}
.nwbr-price-amount {
	font-size: 36px;
	font-weight: 900;
	line-height: 1;
	margin-bottom: 4px;
}
.nwbr-price-amount.nwbr-price-free { font-size: 28px; }
.nwbr-price-label { font-size: 13px; opacity: .85; }

/* ── Panels (register + credentials) ─────────────────────────────────────── */
.nwbr-register-panel,
.nwbr-credentials-panel {
	background: var(--nwbr-card);
	border: 1px solid var(--nwbr-border);
	border-radius: var(--nwbr-radius);
	padding: 20px;
	box-shadow: var(--nwbr-shadow);
}

.nwbr-panel-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--nwbr-text);
	margin: 0 0 14px;
	display: flex;
	align-items: center;
	gap: 7px;
}
.nwbr-panel-icon { width: 17px; height: 17px; color: var(--nwbr-primary); }

.nwbr-creds-hint {
	font-size: 12px;
	color: var(--nwbr-muted);
	margin: -6px 0 14px;
	line-height: 1.5;
}

/* ── Form fields ──────────────────────────────────────────────────────────── */
.nwbr-field { margin-bottom: 12px; }
.nwbr-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--nwbr-text);
	margin-bottom: 5px;
}
.nwbr-field input,
.nwbr-field textarea {
	width: 100%;
	padding: 9px 13px;
	border: 1px solid var(--nwbr-border);
	border-radius: 7px;
	font-size: 14px;
	color: var(--nwbr-text);
	background: #fff;
	box-sizing: border-box;
	transition: border-color var(--nwbr-trans), box-shadow var(--nwbr-trans);
}
.nwbr-field input:focus {
	outline: none;
	border-color: var(--nwbr-primary);
	box-shadow: 0 0 0 3px rgba(0,115,170,.12);
}

.nwbr-payment-notice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	background: #fffbeb;
	border: 1px solid #fcd34d;
	border-radius: 7px;
	padding: 10px 12px;
	font-size: 12px;
	color: #92400e;
	line-height: 1.5;
	margin-bottom: 12px;
}
.nwbr-payment-notice svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }

.nwbr-form-error,
.nwbr-form-success {
	padding: 9px 12px;
	border-radius: 7px;
	font-size: 13px;
	margin-bottom: 10px;
}
.nwbr-form-error   { background: #fef2f2; border: 1px solid #fecaca; color: var(--nwbr-danger); }
.nwbr-form-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--nwbr-success); }

.nwbr-btn-primary {
	width: 100%;
	padding: 12px;
	background: var(--nwbr-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background var(--nwbr-trans);
}
.nwbr-btn-primary:hover    { background: var(--nwbr-accent); }
.nwbr-btn-primary:disabled { opacity: .65; cursor: default; }

.nwbr-btn-secondary {
	width: 100%;
	padding: 11px;
	background: transparent;
	border: 2px solid var(--nwbr-primary);
	border-radius: 8px;
	color: var(--nwbr-primary);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	transition: background var(--nwbr-trans), color var(--nwbr-trans);
}
.nwbr-btn-secondary svg { width: 15px; height: 15px; }
.nwbr-btn-secondary:hover    { background: var(--nwbr-primary); color: #fff; }
.nwbr-btn-secondary:disabled { opacity: .65; cursor: default; }

/* ── Credentials display ──────────────────────────────────────────────────── */
.nwbr-creds-display {
	margin-top: 16px;
	padding: 16px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
}
.nwbr-creds-display h4 {
	font-size: 14px;
	font-weight: 700;
	color: var(--nwbr-success);
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.nwbr-cred-row {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin-bottom: 10px;
}
.nwbr-cred-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--nwbr-muted);
}
.nwbr-cred-value {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--nwbr-border);
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 500;
	word-break: break-all;
}
.nwbr-cred-value a { color: var(--nwbr-primary); text-decoration: none; }
.nwbr-cred-value a:hover { text-decoration: underline; }
.nwbr-cred-copy {
	margin-left: auto;
	flex-shrink: 0;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--nwbr-muted);
	padding: 2px;
	transition: color var(--nwbr-trans);
}
.nwbr-cred-copy:hover { color: var(--nwbr-primary); }
.nwbr-cred-copy svg  { width: 16px; height: 16px; display: block; }
.nwbr-join-btn {
	display: block;
	text-align: center;
	margin-top: 10px;
	padding: 10px;
	background: var(--nwbr-success);
	color: #fff;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: filter var(--nwbr-trans);
}
.nwbr-join-btn:hover { filter: brightness(1.1); color: #fff; }
