/* LMS 강의 목록 페이지 - Figma 디자인 정확히 일치 */

/* 페이지 컨테이너 */
.student-new .lms-list-container {
  width: 100%;
  max-width: 858px;
  margin: 0 auto;
  padding: 60px 0;
}

/* 검색 영역 */
.student-new .lms-search {
  margin-bottom: 40px;
}

.student-new .lms-search form {
  display: flex;
  width: 100%;
  height: 48px;
  background: var(--color-gray-8);
  border: 1px solid var(--color-gray-6);
  border-radius: 8px;
  overflow: hidden;
}

.student-new .lms-search-input {
  flex: 1;
  padding: 0 20px;
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
}

.student-new .lms-search-input::placeholder {
  color: var(--color-gray-4);
}

.student-new .lms-search-button {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
}

.student-new .lms-search-button:hover {
  background: var(--color-primary-dark);
}

.student-new .lms-search-button svg {
  width: 20px;
  height: 20px;
  color: var(--color-white);
}

/* 강의 목록 */
.student-new .lms-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 강의 아이템 */
.student-new .lms-item {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.student-new .lms-item-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.student-new .lms-item-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
}

/* 썸네일 */
.student-new .lms-thumbnail {
  width: 104px;
  height: 104px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.student-new .lms-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 강의 콘텐츠 */
.student-new .lms-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  width: 424px;
}

.student-new .lms-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.student-new .lms-title {
  flex: 1;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: -0.48px;
  margin: 0;
}

/* 차시 뱃지 */
.student-new .lms-chapter {
  display: flex;
  padding: 3px 10px;
  align-items: center;
  gap: 4px;
  border-radius: 100px;
  background: #292929;
}

.student-new .chapter-current {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.39px;
}

.student-new .chapter-divider,
.student-new .chapter-total,
.student-new .chapter-text {
  color: var(--color-white);
  font-size: 13px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.39px;
}

/* 강의 정보 */
.student-new .lms-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.student-new .lms-meta {
  display: flex;
  align-items: flex-start;
  gap: 58px;
}

.student-new .lms-period {
  flex: 1;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: -0.39px;
}

.student-new .lms-progress-row {
  display: flex;
  justify-content: flex-end;
}

.student-new .lms-progress-percent {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: -0.48px;
}

/* 진행률 바 */
.student-new .lms-progress-bar {
  width: 100%;
  height: 6px;
  background: #292929;
  border-radius: 20px;
  overflow: hidden;
}

.student-new .lms-progress-fill {
  height: 100%;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

/* 액션 버튼들 */
.student-new .lms-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 234px;
}

.student-new .lms-btn-primary {
  display: flex;
  height: 40px;
  padding: 10px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 4px;
  background: var(--color-primary);
  border: none;
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: -0.39px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.student-new .lms-btn-primary.lecture-buy-btn {
  height: 48px;
}

.student-new .lms-btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.student-new .lms-btn-group {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: stretch;
}

.student-new .lms-btn-secondary {
  display: flex;
  width: 111px;
  height: 40px;
  padding: 10px 12px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  background: #292929;
  border: none;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: -0.42px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.student-new .lms-btn-secondary:hover {
  background: #333;
}

.student-new .lms-btn-secondary:disabled {
  color: #5c595f;
  cursor: not-allowed;
}

/* 구분선 */
.student-new .lms-divider {
  height: 1px;
  background: #333;
  align-self: stretch;
}

/* 종료된 강의 */
.student-new .lms-item.completed .lms-thumbnail {
  position: relative;
}

.student-new .lms-item.completed .lms-thumbnail::after {
  content: '종료';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-white);
  font-size: 20px;
  font-weight: 700;
  line-height: 140%;
}

/* 라이브 강의 */
.student-new .lms-item.live .lms-period {
  color: #666;
}

.student-new .lms-item.live .lms-progress-percent {
  color: #5c595f;
}

/* D-Day 뱃지 */
.student-new .lms-dday {
  display: flex;
  height: 40px;
  padding: 10px 12px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 4px;
  background: #292929;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 700;
  line-height: 140%;
  letter-spacing: -0.42px;
}

/* 검색 결과 없음 */
.student-new .lms-no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--color-gray-3);
}

.student-new .lms-no-results-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  opacity: 0.5;
}

.student-new .lms-no-results-text {
  font-size: 18px;
  font-weight: 500;
  line-height: 140%;
}

/* 페이지네이션 */
.student-new .lms-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
}

.student-new .lms-pagination a,
.student-new .lms-pagination span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: var(--color-gray-3);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.student-new .lms-pagination a:hover {
  background: var(--color-gray-7);
  color: var(--color-white);
}

.student-new .lms-pagination .active {
  background: var(--color-primary);
  color: var(--color-white);
}

/* 반응형 */
@media (max-width: 768px) {
  .student-new .lms-list-container {
    padding: 40px 20px;
  }

  .student-new .lms-btn-primary.lecture-buy-btn {
    height: 44px;
  }

  .student-new .lms-item-link {
    flex-direction: column;
    gap: 20px;
  }

  .student-new .lms-item-left {
    width: 100%;
  }

  .student-new .lms-content {
    width: 100%;
  }

  .student-new .lms-actions {
    width: 100%;
  }

  .student-new .lms-btn-group {
    flex-direction: column;
  }

  .student-new .lms-btn-secondary {
    width: 100%;
  }
}
