/* Academia Course Detail Page Styles */

.course-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 40px 20px;
}

.course-header-container {
  max-width: 1200px;
  margin: 0 auto;
}

.course-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.course-header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.course-progress-header {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
}

.course-progress-header .progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(102, 126, 234, 0.2);
  border-radius: 6px;
  overflow: hidden;
}

.course-progress-header .progress-fill {
  height: 100%;
  background: #667eea;
  transition: width 0.3s;
}

.course-progress-header .progress-text {
  color: #2d3748;
  font-weight: 600;
  margin-top: 8px;
  font-size: 0.9rem;
}

.course-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.enroll-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 30px;
}

.enroll-section h2 {
  color: #2d3748;
  margin-bottom: 15px;
}

.enroll-section p {
  color: #718096;
  margin-bottom: 20px;
}

.btn-enroll {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-enroll:hover {
  transform: scale(1.05);
}

.lessons-list h2 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.lesson-item {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.lesson-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.lesson-checkbox {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid #cbd5e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
}

.lesson-checkbox.completed {
  background: #38a169;
  border-color: #38a169;
}

.lesson-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.lesson-content {
  flex: 1;
}

.lesson-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 5px;
}

.lesson-description {
  font-size: 0.9rem;
  color: #718096;
}

.lesson-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a0aec0;
  font-size: 0.85rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #667eea;
  text-decoration: none;
  margin-bottom: 20px;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #718096;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .course-header h1 {
    font-size: 1.5rem;
  }

  .lesson-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
