﻿/* content-screen.css — 소설 목차 화면 (모바일 우선) */
#content-screen.content-screen {
  padding: 20px 16px calc(60px + 24px + env(safe-area-inset-bottom, 0px));
  max-width: 480px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans KR', 'Noto Sans JP', sans-serif;
  color: #1f2937;
}

/* Hero */
.content-hero {
  background: linear-gradient(135deg, #FFB6C1 0%, #DDA0DD 100%);
  border-radius: 20px;
  padding: 24px 20px;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(221, 160, 221, 0.25);
}
.content-hero h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.3px;
}
.content-hero p {
  font-size: 14px;
  margin: 0;
  opacity: 0.95;
  line-height: 1.5;
}

/* 시즌 카드 */
.season-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
}
.season-card.locked {
  background: #f8f9fb;
  border-style: dashed;
}

.season-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.season-title {
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}
.season-locked-badge {
  font-size: 11px;
  background: #e2e8f0;
  color: #64748b;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.season-period {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 6px;
}
.season-description {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 12px;
}
.season-progress {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 12px;
  padding: 6px 10px;
  background: #f1f5f9;
  border-radius: 8px;
  display: inline-block;
}

/* 회차 리스트 */
.episode-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.episode-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f1f5f9;
}
.episode-item:last-child { border-bottom: none; }
.episode-item:hover { background: #f8fafc; }
.episode-item:active { background: #f1f5f9; }
.episode-item.locked {
  cursor: default;
  opacity: 0.55;
}
.episode-item.locked:hover { background: transparent; }

.episode-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}
.episode-info {
  flex: 1;
  min-width: 0;
}
.episode-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.episode-subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.episode-meta {
  font-size: 11px;
  color: #94a3b8;
  flex-shrink: 0;
  text-align: right;
}
.episode-badge {
  display: inline-block;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 3px;
}
.episode-badge.free { background: #dcfce7; color: #16a34a; }
.episode-badge.coming { background: #f1f5f9; color: #94a3b8; }
.episode-badge.new { background: #fef3c7; color: #d97706; }

/* 빈 상태 / 로딩 */
.content-loading,
.content-error {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: 14px;
}

/* 작은 화면 대응 */
@media (max-width: 360px) {
  .content-hero h1 { font-size: 20px; }
  .episode-title { font-size: 13px; }
  .episode-subtitle { font-size: 11px; }
}
/* ===== Stage 4-C: 진행률 UI ===== */

/* 회차 카드 배지 추가 색상 */
.episode-badge.reading {
  background: #ede9fe;
  color: #7c3aed;
}
.episode-badge.completed {
  background: #dbeafe;
  color: #1d4ed8;
}

/* 회차 카드 내 진행률 바 (배지 아래) */
.episode-progress-bar {
  width: 60px;
  height: 3px;
  background: #e5e7eb;
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}
.episode-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* 이어 읽기 카드 */
.continue-reading-card {
  margin: 12px 16px 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
  border: 1px solid #ddd6fe;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.continue-reading-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}
.continue-reading-card:active {
  transform: translateY(0);
}
.continue-label {
  font-size: 12px;
  font-weight: 600;
  color: #7c3aed;
  margin-bottom: 4px;
}
.continue-title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 10px;
  line-height: 1.4;
}
.continue-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.continue-progress-bar {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}
.continue-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #a855f7);
  border-radius: 3px;
  transition: width 0.3s ease;
}
.continue-percent {
  font-size: 12px;
  font-weight: 600;
  color: #7c3aed;
  min-width: 32px;
  text-align: right;
}
