/**
 * Academy Core — Zoom Live Sessions Styling
 * Matches Minh Tri Thanh e-learning design & LearnDash Focus Mode
 */

/* ==========================================================================
   1. INSTRUCTOR BAR
   ========================================================================== */
.academy-zoom-container {
	margin-bottom: 28px;
	font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.academy-zoom-instructor-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
	padding: 4px 0;
}

.academy-zoom-instructor-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.academy-zoom-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #e2e8f0;
}

.academy-zoom-avatar-placeholder {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #0284c7;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
}

.academy-zoom-instructor-meta {
	display: flex;
	flex-direction: column;
}

.academy-zoom-instructor-title {
	font-size: 12px;
	color: #64748b;
	font-weight: 500;
	text-transform: capitalize;
}

.academy-zoom-instructor-name {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
}

.academy-zoom-rating {
	display: flex;
	align-items: center;
	gap: 4px;
	background: #fffbeb;
	border: 1px solid #fef3c7;
	padding: 4px 10px;
	border-radius: 20px;
}

.academy-star-icon {
	color: #f59e0b;
	font-size: 14px;
}

.academy-rating-text {
	font-size: 13px;
	font-weight: 600;
	color: #b45309;
}

/* ==========================================================================
   2. EMBEDDED ZOOM WEB CLIENT (PURE DEFAULT) & HERO CARD
   ========================================================================== */
#academy-zoom-sdk-client-root {
	margin-bottom: 24px;
}

/* Hide meeting info button (icon khiên xanh) & security popup */
[aria-label*="Thông tin Cuộc họp"],
[aria-label*="Meeting Info"],
[aria-label*="Meeting info"],
[title*="Thông tin Cuộc họp"],
[title*="Meeting Info"],
[title*="Meeting info"],
.meeting-info-icon,
.meeting-info-container,
.meeting-info-wrapper {
	display: none !important;
}

.academy-zoom-status-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 50px 24px;
	background: #0f172a;
	min-height: 480px;
	color: #ffffff;
}

.academy-zoom-status-icon {
	font-size: 48px;
	margin-bottom: 16px;
	line-height: 1;
}

.academy-zoom-status-box h3 {
	font-size: 20px;
	font-weight: 700;
	color: #f8fafc;
	margin: 0 0 10px 0;
	max-width: 540px;
}

.academy-zoom-status-box p {
	font-size: 14.5px;
	color: #94a3b8;
	margin: 0 0 24px 0;
	max-width: 480px;
	line-height: 1.5;
}

.academy-btn-reload {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #2563eb;
	color: #ffffff !important;
	border: 1px solid #1d4ed8;
	padding: 10px 22px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
	transition: all 0.2s ease;
}

.academy-btn-reload:hover {
	background: #1d4ed8;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.academy-zoom-live-status-card {
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 14px;
	padding: 24px 28px;
	max-width: 540px;
	margin: 16px auto 0 auto;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.academy-zoom-hero-card {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background-color: #0d2f52;
	background-size: cover;
	background-position: center;
	box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
	min-height: 380px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	padding: 40px 24px;
	text-align: center;
}

.academy-zoom-hero-card.no-banner {
	background: linear-gradient(135deg, #0b3259 0%, #17528a 50%, #0d2f52 100%);
}

.academy-zoom-hero-content {
	max-width: 680px;
	width: 100%;
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.academy-zoom-live-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 6px 14px;
	border-radius: 30px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #ffffff;
	margin-bottom: 16px;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.academy-pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #ef4444;
	box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
	animation: academy-pulse 1.8s infinite;
}

@keyframes academy-pulse {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
	}
	70% {
		transform: scale(1.1);
		box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
	}
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
	}
}

.academy-zoom-lesson-title {
	font-size: 26px;
	font-weight: 800;
	color: #ffffff !important;
	margin: 0 0 14px 0;
	line-height: 1.35;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.academy-zoom-time-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: #f1f5f9;
	margin-bottom: 24px;
	background: rgba(0, 0, 0, 0.3);
	padding: 6px 16px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   3. ACTION BUTTONS & COUNTDOWN
   ========================================================================== */
.academy-zoom-action-zone {
	margin-top: 10px;
	width: 100%;
}

.academy-zoom-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 32px;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	transition: all 0.25s ease;
	border: none;
	cursor: pointer;
}

/* Live button */
.academy-btn-live {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	color: #ffffff !important;
	box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
	animation: academy-bounce-gentle 2s infinite;
}

.academy-btn-live:hover {
	background: linear-gradient(135deg, #059669 0%, #047857 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

@keyframes academy-bounce-gentle {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-4px);
	}
}

/* Ended button (matching Minh Tri Thanh red button) */
.academy-btn-ended {
	background-color: #e11d48;
	color: #ffffff !important;
	cursor: not-allowed;
	opacity: 0.95;
	box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
}

/* Upcoming button */
.academy-btn-upcoming {
	background: rgba(255, 255, 255, 0.2);
	color: #f8fafc !important;
	font-size: 14px;
	font-weight: 500;
	cursor: not-allowed;
	border: 1px solid rgba(255, 255, 255, 0.25);
	margin-top: 16px;
}

/* Countdown Grid */
.academy-zoom-countdown-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.academy-countdown-label {
	font-size: 14px;
	font-weight: 600;
	color: #cbd5e1;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.academy-countdown-grid {
	display: flex;
	align-items: center;
	gap: 8px;
}

.academy-cd-item {
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 10px;
	padding: 8px 12px;
	min-width: 58px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.academy-cd-num {
	font-size: 24px;
	font-weight: 800;
	color: #ffffff;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.academy-cd-unit {
	font-size: 11px;
	color: #94a3b8;
	font-weight: 500;
	margin-top: 4px;
	text-transform: uppercase;
}

.academy-cd-sep {
	font-size: 20px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.5);
	margin-top: -12px;
}

/* ==========================================================================
   4. SIDEBAR & COURSE CONTENT BADGES
   ========================================================================== */
.academy-zoom-sidebar-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 4px;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	transition: all 0.2s ease;
	text-decoration: none !important;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.academy-zoom-sidebar-badge .academy-zoom-badge-icon {
	display: flex;
	align-items: center;
}

/* 1. Ended badge: Soft gray/slate */
.academy-zoom-sidebar-badge.academy-status-ended {
	background-color: #f1f5f9 !important;
	color: #475569 !important;
	border: 1px solid #cbd5e1 !important;
}

/* 2. Live badge: Soft vibrant green + pulse */
.academy-zoom-sidebar-badge.academy-status-live {
	background-color: #dcfce7 !important;
	color: #15803d !important;
	border: 1px solid #86efac !important;
	animation: academy-pulse 1.8s infinite;
}

/* 3. Upcoming badge: Soft red/coral */
.academy-zoom-sidebar-badge.academy-status-upcoming {
	background-color: #fee2e2 !important;
	color: #dc2626 !important;
	border: 1px solid #fecaca !important;
}

/* Ensure LearnDash link hover doesn't override badge text color */
.ld-item-name:hover .academy-zoom-sidebar-badge.academy-status-ended,
.ld-item-name .academy-zoom-sidebar-badge.academy-status-ended {
	color: #475569 !important;
}

.ld-item-name:hover .academy-zoom-sidebar-badge.academy-status-live,
.ld-item-name .academy-zoom-sidebar-badge.academy-status-live {
	color: #15803d !important;
}

.ld-item-name:hover .academy-zoom-sidebar-badge.academy-status-upcoming,
.ld-item-name .academy-zoom-sidebar-badge.academy-status-upcoming {
	color: #dc2626 !important;
}

/* Override within LearnDash Focus Sidebar */
.ld-focus-sidebar .academy-zoom-sidebar-badge {
	margin-left: 2px;
}

/* ==========================================================================
   5. REPLAY RECORDING BOX
   ========================================================================== */
.academy-zoom-replay-box {
	margin-top: 24px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.academy-zoom-replay-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.academy-replay-icon {
	background: #ef4444;
	color: #ffffff;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

.academy-zoom-replay-header h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
}

.academy-zoom-video-player-wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
	border-radius: 10px;
	background: #000000;
}

.academy-zoom-video-player-wrapper iframe,
.academy-zoom-video-player-wrapper video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ==========================================================================
   6. RESPONSIVE OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 768px) {
	.academy-zoom-hero-card {
		min-height: 320px;
		padding: 28px 16px;
	}

	.academy-zoom-lesson-title {
		font-size: 20px;
	}

	.academy-zoom-time-badge {
		font-size: 13px;
		padding: 4px 12px;
	}

	.academy-cd-item {
		min-width: 46px;
		padding: 6px 8px;
	}

	.academy-cd-num {
		font-size: 18px;
	}

	.academy-cd-unit {
		font-size: 10px;
	}

	.academy-zoom-btn {
		width: 100%;
		font-size: 15px;
		padding: 12px 20px;
	}
}

/* ==========================================================================
   7. FOCUS MODE HEADER & UX ENHANCEMENTS
   ========================================================================== */
.academy-focus-header-nav {
	display: flex;
	align-items: center;
	margin-left: 8px;
}

.academy-focus-back-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #235af3 !important;
	color: #ffffff !important;
	padding: 8px 18px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none !important;
	border: 1px solid #1a48c9 !important;
	box-shadow: 0 2px 6px rgba(35, 90, 243, 0.25);
	transition: all 0.2s ease;
}

.academy-focus-back-btn svg {
	stroke: #ffffff !important;
}

.academy-focus-back-btn:hover {
	background: #1947cb !important;
	color: #ffffff !important;
	border-color: #143aa6 !important;
	box-shadow: 0 4px 12px rgba(35, 90, 243, 0.35);
	transform: translateX(-2px);
}
}

/* Clean up duplicate H1 in Focus Mode when Hero Card is present */
.ld-focus-content > h1:first-child,
.learndash-wrapper.learndash-focus-mode .ld-focus-content > h1 {
	font-size: 24px;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 12px;
}

/* Refine LearnDash Focus Mode alert boxes */
.ld-focus-content .ld-alert-success {
	background: #f0fdf4 !important;
	border: 1px solid #bbf7d0 !important;
	color: #166534 !important;
	border-radius: 12px !important;
	margin-bottom: 20px !important;
	padding: 12px 18px !important;
}

.ld-focus-content .ld-breadcrumbs {
	margin-bottom: 18px !important;
	background: #f8fafc;
	padding: 8px 16px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}

