/**
 * Frontend Styles for LMS Course Single Template
 * 
 * Separated from template for better caching and maintainability.
 * Uses CSS variables aligned with admin styles for consistency.
 */

/* Load advanced course layout + local Inter font-face definitions */
@import url('acme-course-layout.css');

/* ============================================
   CSS VARIABLES - Acme LMS Design System
   (Strict Adherence: New Blue/Gold Palette & Fluid Type)
   ============================================ */
:root {
	/* 1. Color Palette (User Provided) */
	--acme-primary: #117DBC;
	/* Primary Blue */
	--acme-primary-hover: #093E70;
	/* Navy Blue */
	--acme-text-primary: #000C29;
	/* Darkest Blue (Text) */
	--acme-text-secondary: #093E70;
	/* Navy Blue (Subtext) */

	/* Badges & Accents */
	--acme-bg-badge: #DCAF73;
	/* Gold */
	--acme-white: #FFFFFF;

	/* Functional Mapping */
	--acme-text-dark: var(--acme-text-primary);
	--acme-text-medium: var(--acme-text-secondary);
	--acme-text-light: #3F91C6;
	/* Light Blue for very light text/accents */

	--acme-bg-white: var(--acme-white);
	--acme-bg-light: #F9FAFB;
	/* Keeping neutral light bg or mapping to white? User said "only use color from here". Strict: #FFFFFF */
	--acme-border: #3F91C6;
	/* Light Blue for borders */
	--acme-shadow: rgba(17, 125, 188, 0.15);
	/* Blue tint shadow */

	/* Button Colors */
	--acme-btn-primary: var(--acme-primary);
	--acme-btn-hover: var(--acme-primary-hover);
	--acme-btn-whatsapp: #3F91C6;
	/* Mapped to Light Blue */


	/* 2. Typography Strategy */
	--acme-font-sans: 'Acme', Arial, sans-serif;

	/* 3. Typography Scale (Strict Clamp Values) */

	/* H1 */
	--acme-text-4xl: clamp(1.5rem, 1.08rem + 1.8vw, 2.75rem);

	/* H2 */
	--acme-text-3xl: clamp(1.125rem, 0.9rem + 0.9vw, 1.75rem);

	/* H3 */
	--acme-text-2xl: clamp(0.875rem, 0.75rem + 0.6vw, 1.25rem);

	/* XL (modal headings; aligned with Udemy review title size) */
	--acme-text-xl: clamp(1.25rem, 0.37037vi + 1.16667rem, 1.5rem);

	/* Body */
	--acme-text-base: clamp(0.8125rem, 0.75rem + 0.3vw, 1rem);

	/* Small/Meta */
	--acme-text-sm: clamp(0.6875rem, 0.65rem + 0.2vw, 0.8125rem);

	/* Line Heights */
	--acme-leading-tight: 1.2;
	--acme-leading-normal: 1.6;
}

/* ============================================
   Scaffold & Utilities
   ============================================ */
.acme-lms-wrapper {
	font-family: var(--acme-font-sans);
	font-size: var(--acme-text-base);
	line-height: var(--acme-leading-normal);
	color: var(--acme-text-primary);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	background-color: var(--acme-bg-light);
	min-height: 100vh;
	overflow-x: hidden;
	/* Prevent horizontal scroll */
}

.acme-container {
	max-width: var(--acme-fluid-max-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}

.acme-img-responsive {
	display: block;
	width: 100%;
	height: auto;
}

/* Typography Utilities */
.acme-font-bold {
	font-weight: 700;
}

.acme-font-medium {
	font-weight: 500;
}

.acme-text-light {
	color: var(--acme-text-light);
}

.acme-text-4xl {
	font-size: var(--acme-text-4xl);
	line-height: var(--acme-leading-tight);
}

.acme-text-3xl {
	font-size: var(--acme-text-3xl);
	line-height: var(--acme-leading-tight);
}

/* 2xl mapping to lg per design system spec for subheadings? 
   No, the spec said "LG: lead / emphasized body", "XL: section headings".
   I used acme-text-3xl for H2. 
*/
.acme-text-2xl {
	font-size: var(--acme-text-2xl);
}

.acme-text-xl {
	font-size: var(--acme-text-xl);
}

.acme-text-lg {
	font-size: var(--acme-text-lg);
}

.acme-text-base {
	font-size: var(--acme-text-base);
}

.acme-text-sm {
	font-size: var(--acme-text-sm);
}

.acme-prose p {
	margin-bottom: 1rem;
}

/* ============================================
   Hero Section
   ============================================ */
.acme-course-hero {
	/* Darkest Blue from palette */
	background-color: #000C29;
	color: var(--acme-white);
	padding: 3rem 0;
}

.acme-course-hero__content {
	max-width: 800px;
}

.acme-breadcrumbs {
	margin-bottom: 1.5rem;
}

.acme-course-hero .acme-breadcrumbs a {
	color: #DCAF73 !important;
	/* Gold for links - Premium & Visible */
	text-decoration: none;
}

.acme-breadcrumbs .acme-breadcrumb-separator {
	color: rgba(255, 255, 255, 0.7);
}

.acme-breadcrumbs .acme-current {
	color: #ffffff;
	font-weight: 700;
}

.acme-course-hero__title {
	margin: 0 0 1rem;
	color: #ffffff !important;
	/* Pure White for Max Contrast */
}

.acme-course-hero__headline {
	margin-bottom: 2rem;
	max-width: 600px;
}

.acme-course-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: center;
}

.acme-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

/* Badges */
.acme-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	font-size: var(--acme-text-sm);
	background: var(--acme-bg-badge);
	color: var(--acme-text-primary);
}

.acme-badge--rating {
	background: transparent;
	/* Gold for stars context */
	color: #000;
	gap: 0.25rem;
}

/* ============================================
   Main Grid Layout
   ============================================ */
.acme-grid-layout {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 3rem;
	padding-top: 3rem;
	padding-bottom: 3rem;
	position: relative;
}

@media (max-width: 1024px) {
	.acme-grid-layout {
		grid-template-columns: 100%;
		/* Force single column */
		gap: 2rem;
	}

	/* Ensure sidebar drops to natural flow */
	.acme-course-card {
		position: static;
		/* No sticky on mobile/tablet to let it flow naturally */
		max-width: 400px;
		/* Constrain width when full width */
		margin: 0 auto;
	}
}

/* ============================================
   Sections
   ============================================ */
.acme-section {
	margin-bottom: 3rem;
	background: var(--acme-white);
	padding: 2rem;
	border-radius: 8px;
	border: 1px solid var(--acme-border);
}

.acme-section__title {
	margin-top: 0;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--acme-border);
}

/* Features List */
.acme-check-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	/* display: grid; removed */
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	/* Reduced min-width for mobile */
	gap: 1rem;
}

.acme-check-list__item {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
}

.acme-icon-wrapper {
	color: var(--acme-primary);
	flex-shrink: 0;
	margin-top: 2px;
}

/* Requirements & List */
.acme-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.acme-list li {
	margin-bottom: 0.5rem;
}

/* Tools Tags */
.acme-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.acme-tag {
	padding: 0.5rem 1rem;
	border: 1px solid var(--acme-border);
	border-radius: 50px;
	background: var(--acme-bg-light);
}

/* ============================================
   Sidebar Card
   ============================================ */
.acme-sidebar-wrapper {
	position: relative;
}

.acme-course-card {
	background: var(--acme-white);
	border: 1px solid var(--acme-border);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 10px 30px var(--acme-shadow);
	position: sticky;
	top: 2rem;
	z-index: 10;
}

.acme-course-card__media {
	position: relative;
	background: #000C29;
	aspect-ratio: 16/9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.acme-play-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50px;
	padding: 1rem 2rem;
	cursor: pointer;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: transform 0.2s;
}

.acme-play-overlay:hover {
	transform: translate(-50%, -50%) scale(1.05);
}

.acme-course-card__body {
	padding: 1.5rem;
}

.acme-price-group {
	margin-bottom: 1.5rem;
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
}

.acme-price {
	color: var(--acme-text-primary);
}

.acme-badge--discount {
	background: #6D2411;
	/* Brown from palette */
	color: #FFFFFF;
}

.acme-card-actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.acme-btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	padding: 0.75rem 1.5rem;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
	border: none;
}

.acme-btn--primary {
	background: var(--acme-btn-primary);
	color: var(--acme-white);
}

.acme-btn--primary:hover {
	background: var(--acme-btn-hover);
}

.acme-btn--outline {
	background: transparent;
	border: 1px solid var(--acme-primary);
	color: var(--acme-primary);
}

.acme-btn--outline:hover {
	background: var(--acme-bg-badge);
}

.acme-btn--block {
	width: 100%;
}

.acme-course-includes {
	margin-top: 1.5rem;
}

.acme-icon-list {
	list-style: none;
	padding: 0;
	margin: 0.5rem 0 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.acme-icon-list li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* ============================================
   Sticky Bar
   ============================================ */
.acme-sticky-bar {
	position: fixed;
	bottom: 0px;
	/* Default for mobile */
	left: 0;
	width: 100%;
	background: var(--acme-white);
	border-top: 1px solid var(--acme-border);
	padding: 1rem 0;
	z-index: 999;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
	transform: translateY(100%);
	transition: transform 0.3s ease;
}

/* Only show logic managed by JS class 'is-visible' */
.acme-sticky-bar.is-visible {
	transform: translateY(0);
}

@media (min-width: 768px) {
	.acme-sticky-bar {
		top: 0;
		bottom: auto;
		transform: translateY(-100%);
		border-bottom: 1px solid var(--acme-border);
		border-top: none;
	}
}

.acme-sticky-bar__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.acme-sticky-bar__info {
	display: flex;
	flex-direction: column;
}

.acme-sticky-bar__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
	.acme-sticky-bar {
		padding: 0.75rem 0;
	}

	.acme-sticky-bar__info {
		display: none;
		/* Hide Title/Rating on mobile to save space */
	}

	.acme-sticky-bar__inner {
		justify-content: space-between;
		width: 100%;
	}

	.acme-sticky-bar__actions {
		width: 100%;
		justify-content: space-between;
	}

	.acme-btn {
		padding: 0.6rem 1rem;
		font-size: 0.9rem;
	}

	.acme-section {
		padding: 1.5rem;
	}
}

/* ============================================
   Missing Utility Classes
   ============================================ */
.acme-text-primary {
	color: var(--acme-text-primary) !important;
}

/* ============================================
   Upcoming Batches (Mobile/Card Style)
   ============================================ */
.acme-batch-card {
	background: var(--acme-white);
	border: 1px solid var(--acme-border);
	border-radius: 8px;
	padding: 1rem;
	margin-bottom: 1rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.acme-batch-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
}

.acme-batch-name {
	font-weight: 700;
	color: var(--acme-text-primary);
	font-size: var(--acme-text-base);
}

.acme-batch-badge {
	font-size: 0.75rem;
	padding: 0.25rem 0.6rem;
	border-radius: 50px;
	background: var(--acme-bg-light);
	color: var(--acme-text-secondary);
	font-weight: 600;
	white-space: nowrap;
}

.acme-batch-badge.urgent {
	background: #FEF2F2;
	/* Light Red */
	color: #DC2626;
	/* Red */
	border: 1px solid #FECACA;
}

.acme-batch-details {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	/* Improved spacing */
}

.acme-batch-detail-item {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: var(--acme-text-sm);
	color: var(--acme-text-secondary);
}

.acme-batch-icon {
	color: var(--acme-primary);
	flex-shrink: 0;
}

.acme-text-urgent {
	color: #DC2626;
	font-weight: 700;
}

/* ============================================
   Related Courses Placeholders
   ============================================ */
.acme-related-card-placeholder {
	width: 100%;
	height: 100%;
	min-height: 140px;
	background-color: var(--acme-bg-light);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.acme-related-card-placeholder::before {
	content: '';
	display: block;
	width: 40px;
	height: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233F91C6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0.5;
}

/* ============================================
   Contact Buttons Overrides
   ============================================ */
.lms-contact-buttons a:hover,
.btn-whatsapp:hover,
.btn-map:hover {
	text-decoration: none !important;
}

/* ============================================
   Show More Button Overrides (Reviews)
   ============================================ */
.acme-review-read-more-btn {
	background: transparent !important;
	color: #000c29 !important;
	/* var(--acme-text-primary) */
	font-weight: 700 !important;
	text-decoration: none !important;
	padding: 0 !important;
	margin-top: 8px !important;
	box-shadow: none !important;
}

.acme-review-read-more-btn:hover,
.acme-review-read-more-btn:focus {
	background: transparent !important;
	color: #093e70 !important;
	/* var(--acme-text-secondary) */
	box-shadow: none !important;
}