/* My Courses 전용 스타일 */

/* 완료 뱃지 */
.cb-course-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(72, 187, 120, 0.95);
  color: white;
  padding: 0.5rem 0.875rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  z-index: 10;
}

.cb-badge-completed {
  background: rgba(72, 187, 120, 0.95);
}

/* 프로그레스 바 영역 */
.cb-course-progress {
  margin: 0.75rem 0;
}

/* 프로그레스 정보 */
.cb-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cb-progress-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #4a5568;
}

.cb-progress-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: #667eea;
}

/* 프로그레스 바 */
.cb-progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

/* 프로그레스 채움 */
.cb-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* 로딩 애니메이션 효과 */
.cb-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* 프로그레스 완료 시 스타일 */
.cb-progress-fill[style*="width: 100%"] {
  background: linear-gradient(90deg, #48bb78 0%, #38a169 100%);
}

/* 프로그레스가 0일 때 */
.cb-progress-fill[style*="width: 0%"] {
  background: #cbd5e0;
}

/* 강좌 이동 버튼 (외부 링크) */
.cb-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cb-btn-primary:hover {
  background: linear-gradient(135deg, #5568d3 0%, #653a8e 100%);
}

/* 빈 상태 */
.cb-courses-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #718096;
}

.cb-courses-empty svg {
  margin: 0 auto 1.5rem;
  opacity: 0.4;
  color: #a0aec0;
}

.cb-courses-empty h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2d3748;
  margin: 0 0 0.5rem 0;
}

.cb-courses-empty p {
  font-size: 1rem;
  color: #718096;
  margin: 0;
}
