/**
 * VidoLMS Frontend CSS - Clean & Simple Design
 */

/* Course Archive */
.vidolms-course-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	margin: 30px 0;
}

.vidolms-course-card {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vidolms-course-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.vidolms-course-thumbnail {
	position: relative;
	padding-top: 56.25%; /* 16:9 */
	overflow: hidden;
	background: #f0f0f0;
}

.vidolms-course-thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vidolms-course-content {
	padding: 20px;
}

.vidolms-course-title {
	font-size: 20px;
	font-weight: bold;
	margin: 0 0 10px;
	line-height: 1.4;
}

.vidolms-course-meta {
	display: flex;
	gap: 15px;
	font-size: 14px;
	color: #666;
	margin-bottom: 15px;
}

.vidolms-course-meta span {
	display: flex;
	align-items: center;
	gap: 5px;
}

.vidolms-course-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #555;
	margin-bottom: 15px;
}

.vidolms-course-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 15px;
	border-top: 1px solid #e5e5e5;
}

.vidolms-course-price {
	font-size: 20px;
	font-weight: 700;
	color: #2271b1;
}

.vidolms-course-price.free {
	color: #00a32a;
}

/* Single Course */
.vidolms-single-course-wrapper {
	max-width: 100%;
	margin: 0 auto;
	padding: 20px 0;
}

.vidolms-course-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 40px;
}

/* ===== MAIN CONTENT ===== */
.vidolms-course-main {
	min-width: 0;
}

/* Media (Video/Thumbnail) */
.vidolms-course-media {
	margin-bottom: 30px;
	border-radius: 8px;
	overflow: hidden;
	background: #000;
}

.vidolms-video-wrapper {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
}

.vidolms-video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.vidolms-course-thumbnail {
	width: 100%;
	height: auto;
	display: block;
}

/* Course Content */
.vidolms-course-content {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.vidolms-course-title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 20px;
	color: #1a1a1a;
}

/* Meta Info */
.vidolms-course-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e5e5e5;
}

.vidolms-meta-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #666;
}

.vidolms-meta-item svg {
	flex-shrink: 0;
}

/* Description */
.vidolms-course-description {
	font-size: 16px;
	line-height: 1.7;
	color: #333;
}

.vidolms-course-description p {
	margin-bottom: 15px;
}

.vidolms-course-description h2,
.vidolms-course-description h3 {
	margin-top: 25px;
	margin-bottom: 15px;
}

/* ===== SIDEBAR ===== */
.vidolms-course-sidebar {
	position: sticky;
	top: 20px;
	height: fit-content;
}

/* Enrollment Card */
.vidolms-enrollment-card {
	background: #fff;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
}

.vidolms-price {
	margin-bottom: 20px;
	text-align: center;
}

.vidolms-price-free {
	display: inline-block;
	font-size: 24px;
	font-weight: 700;
	color: #00a32a;
	padding: 10px 20px;
	background: #e8f5e9;
	border-radius: 6px;
}

.vidolms-price-paid {
	display: inline-block;
	font-size: 20px;
	font-weight: 600;
	color: #2271b1;
	padding: 10px 20px;
	background: #e5f3ff;
	border-radius: 6px;
}

.vidolms-note {
	text-align: center;
	color: #666;
	font-size: 14px;
	margin: 0;
	line-height: 1.5;
}

/* Curriculum Card */
.vidolms-curriculum-card {
	background: #fff;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vidolms-curriculum-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 20px;
	color: #1a1a1a;
}

.vidolms-curriculum-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vidolms-curriculum-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f0;
}

.vidolms-curriculum-item:last-child {
	border-bottom: none;
}

.vidolms-lesson-number {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f0f0;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 600;
	color: #666;
}

.vidolms-lesson-link {
	flex: 1;
	color: #2271b1;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.4;
	transition: color 0.2s;
}

.vidolms-lesson-link:hover {
	color: #135e96;
	text-decoration: underline;
}

.vidolms-lesson-locked {
	flex: 1;
	color: #999;
	font-size: 14px;
	line-height: 1.4;
}

.vidolms-lesson-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #999;
	flex-shrink: 0;
}

.vidolms-lock-icon {
	opacity: 0.6;
}

.vidolms-curriculum-item.locked .vidolms-lesson-number {
	background: #fafafa;
	color: #ccc;
}

/* Buttons */
.vidolms-btn {
	display: inline-block;
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	line-height: 1;
}

.vidolms-btn-primary {
	background: #2271b1;
	color: #fff;
}

.vidolms-btn-primary:hover {
	background: #135e96;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.vidolms-btn-block {
	display: block;
	width: 100%;
}

.vidolms-btn:disabled {
	background: #ddd;
	color: #999;
	cursor: not-allowed;
	transform: none;
}

/* Lesson Viewer */
.vidolms-lesson-viewer {
  max-width: 1000px;
  margin: 0 auto;
}

.vidolms-lesson-content {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 30px;
}

.vidolms-lesson-video {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

.vidolms-lesson-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.vidolms-lesson-body {
  padding: 30px;
}

.vidolms-lesson-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
}

.vidolms-lesson-navigation .button {
  flex: 1;
}

/* Progress Bar */
.vidolms-progress-bar {
  position: relative;
  height: 30px;
  background: #e0e0e0;
  border-radius: 15px;
  overflow: hidden;
}

.vidolms-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #46b450 0%, #5bc560 100%);
  transition: width 0.3s ease;
}

.vidolms-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  color: #333;
}

/* Notifications */
.vidolms-notification {
  padding: 20px;
  border-radius: 6px;
  margin: 20px 0;
}

.vidolms-notification.vidolms-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.vidolms-notification.vidolms-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Buttons */
.vidolms-button {
  display: inline-block;
  padding: 12px 24px;
  background: #1e73be;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.vidolms-button:hover {
  background: #155a8a;
  color: #fff;
}

.vidolms-button.secondary {
  background: #46b450;
}

.vidolms-button.secondary:hover {
  background: #3a9c42;
}

.vidolms-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 992px) {
	.vidolms-course-container {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.vidolms-course-sidebar {
		position: static;
	}
}

@media (max-width: 768px) {
	.vidolms-course-grid {
		grid-template-columns: 1fr;
	}

	.vidolms-course-container {
		padding: 0 15px;
	}

	.vidolms-course-content {
		padding: 20px;
	}

	.vidolms-course-title {
		font-size: 22px;
	}

	.vidolms-course-meta {
		flex-direction: column;
		gap: 10px;
		align-items: flex-start;
	}

	.vidolms-enrollment-card,
	.vidolms-curriculum-card {
		padding: 20px;
	}

	.vidolms-lesson-viewer {
		padding: 0 15px;
	}
}
