
/* ===== 과제 (학습자료 탭) ===== */
/* home-section 스타일 사용으로 별도 섹션 스타일 제거 */

.assignment-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.assignment-card {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}

.assignment-card:last-child {
  border-bottom: none;
  padding-bottom: 8px;
}

.assignment-card:active {
  background: var(--bg);
}

.assignment-card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.assignment-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.assignment-card-header .new-badge {
  order: -1;
  margin-right: auto;
}

.assignment-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
}

.assignment-card-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.assignment-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.btn-assignment-more {
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-assignment-more:active {
  transform: scale(0.96);
  background: var(--primary);
  color: white;
}

/* ===== 과제 상세 ===== */
.assignment-detail-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.assignment-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.assignment-detail-date {
  font-size: 13px;
  color: var(--text-muted);
}

.assignment-detail-content {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
}

.assignment-detail-content h1,
.assignment-detail-content h2,
.assignment-detail-content h3 {
  margin-top: 20px;
  margin-bottom: 12px;
  font-weight: 700;
}

.assignment-detail-content h1 { font-size: 24px; }
.assignment-detail-content h2 { font-size: 20px; }
.assignment-detail-content h3 { font-size: 18px; }

.assignment-detail-content p {
  margin-bottom: 12px;
}

.assignment-detail-content ul,
.assignment-detail-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.assignment-detail-content li {
  margin-bottom: 6px;
}

.assignment-detail-content a {
  color: var(--primary);
  text-decoration: underline;
}

.assignment-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
}

/* 과제 내 영상 플레이어 (Quill IframeVideoBlot) */
.assignment-detail-content .notice-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  margin: 16px 0;
  display: block;
}

.assignment-detail-content .notice-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===== v1.17.49: 과제 내 학습자료 영상 카드 ===== */
.assignment-video-card {
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-secondary);
}

.assignment-video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.assignment-video-card:active {
  transform: translateY(0);
}

.assignment-video-thumb {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.assignment-video-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.assignment-video-thumb .fallback-emoji {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.assignment-video-thumb .play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2); /* v1.17.51: 0.3 → 0.2로 더 투명하게 */
  transition: background 0.2s;
  pointer-events: none; /* 클릭 이벤트가 카드로 전달되도록 */
}

.assignment-video-card:hover .play-overlay {
  background: rgba(0, 0, 0, 0.3); /* hover 시에만 진하게 */
}

.assignment-video-thumb .play-overlay-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  transition: all 0.2s;
}

.assignment-video-card:hover .play-overlay-icon {
  transform: scale(1.1);
  background: white;
}

.assignment-video-info {
  padding: 12px 16px;
}

.assignment-video-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.assignment-video-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
