/* ========== Pencil 01Jo1: Theory Main Page ========== */

.theory-hero {
  padding: 120px 0; /* Pencil: [120,140] handled by .container */
  background: var(--color-bg-primary);
  position: relative;
}

.theory-hero-title {
  font-size: 56px;
  font-weight: bold;
  line-height: 1.1;
  text-align: center;
  color: var(--color-text-primary);
}

.theory-hero-subtitle {
  font-size: 24px;
  font-weight: normal;
  text-align: center;
  color: var(--color-text-secondary);
  margin-top: 32px;
}

/* Hero main content: gap 32, left flex + right 400 */
.hero-main-content {
  margin-top: 32px;
  display: flex;
  gap: 32px;
  position: relative;
}
.hero-left-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px; /* Pencil: heroLeftPanel gap 32 */
  position: relative;
  z-index: 1;
}
.hero-right-panel {
  width: 400px; /* Pencil heroRightPanel width 400 */
  position: relative;
  z-index: 1;
}

.hero-card {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07); /* approximate #00000012 blur16 */
  padding: 36px 32px; /* Pencil: [36,32] for heroContinueCard */
}

.hero-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
}

.hero-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.hero-card-link {
  font-size: 13px;
  font-weight: 800;
  color: #2563EB;
}

.hero-continue-main .hero-continue-k {
  font-size: 12px;
  color: #64748B;
  font-weight: 600;
}
.hero-continue-main .hero-continue-v {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  margin-top: 6px;
}
.hero-continue-main .hero-continue-sub {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #64748B;
}
.hero-continue-meta {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.meta-pill {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 12px;
}

.hero-progress-preview {
  padding: 20px 18px; /* close to some Pencil small cards */
}
.progress-preview-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 10px;
}
.progress-preview-num {
  font-size: 28px;
  font-weight: 900;
  color: #2563EB;
}
.progress-preview-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
}

.hero-side-card {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  padding: 32px;
}
.hero-side-title {
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 12px;
}
.hero-side-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
}
.hero-side-item .k {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 4px;
}
.hero-side-item .v {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
}

/* heroMusicBg: opacity 0.05 */
.hero-music-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
}
.hero-music-bg .bg-note {
  position: absolute;
}
.hero-music-bg .bg1 { width: 140px; height: 140px; right: 90px; top: 40px; }
.hero-music-bg .bg2 { width: 90px; height: 90px; right: 30px; top: 130px; }
.hero-music-bg .bg3 { width: 110px; height: 110px; right: 120px; top: 220px; }

/* Overview section: padding 80/140 */
.theory-overview {
  padding: 80px 0;
  background: var(--color-bg-primary);
}
.overview-stack {
  display: flex;
  flex-direction: column;
  gap: 48px; /* Pencil: theoryOverviewSection gap 48 */
}
.overview-card {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
  padding: 36px 40px; /* Pencil progress card padding [36,40] */
}
.overview-title {
  font-size: 22px;
  font-weight: 700;
  color: #18181B;
}
.overview-subtitle {
  margin-top: 8px;
  font-size: 15px;
  color: #64748B;
}
.overview-progress-main {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}
.overview-progress-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #EFF6FF;
  border-radius: 16px;
  padding: 24px 32px;
  min-width: 180px;
}
.overview-progress-total .num {
  font-size: 32px;
  font-weight: 700;
  color: #2563EB;
}
.overview-progress-total .label {
  margin-top: 4px;
  font-size: 14px;
  color: #64748B;
}
.overview-chapters {
  display: flex;
  gap: 16px;
  flex: 1;
  flex-wrap: wrap;
}
.chapter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
}
.chapter-pill.done {
  background: #ECFDF5;
  color: #065F46;
}
.chapter-pill.doing {
  background: #EFF6FF;
  color: #1D4ED8;
}
.chapter-pill.todo {
  background: #F1F5F9;
  color: #475569;
}
.chapter-pill .icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.overview-path {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.overview-path .path-node {
  background: #EFF6FF;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
}
.overview-path .path-node.active {
  color: #2563EB;
}
.overview-path .badge {
  margin-left: 8px;
}

/* Chapters (Pencil: theoryChaptersSection padding [120,160], list gap 56) */
.theory-chapters {
  padding: 120px 0;
  background: var(--color-bg-primary);
}
.theory-chapters .container {
  padding-left: 160px;
  padding-right: 160px;
}
.theory-chapters-list {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.theory-chapter {
  background: #fff;
  border-radius: 32px;
  padding: 64px 72px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.chapter--1 { box-shadow: 0 12px 32px rgba(14, 165, 233, 0.125); } /* #0EA5E920 */
.chapter--2 { box-shadow: 0 12px 32px rgba(6, 182, 212, 0.125); }  /* #06B6D420 */
.chapter--3 { box-shadow: 0 12px 32px rgba(245, 158, 11, 0.125); } /* #F59E0B20 */
.chapter--4 { box-shadow: 0 12px 32px rgba(139, 92, 246, 0.125); } /* #8B5CF620 */

.chapter-title-wrapper {
  padding-bottom: 64px;
}
.chapter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.chapter-header-left {
  display: flex;
  align-items: center;
  gap: 28px;
}
.chapter-title-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chapter-title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: #18181B;
}
.chapter-desc {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: #64748B;
}
.chapter-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.chapter-progress-text {
  font-size: 16px;
  font-weight: 400;
  color: #64748B;
}
.chapter-progress-bar {
  width: 140px;
  height: 10px;
  border-radius: 999px;
  background: #E4E4E7;
}

.chapter-locked-badge {
  gap: 12px;
}
.chapter-locked-badge .lock-text {
  font-size: 16px;
  font-weight: 600;
  color: #9CA3AF;
}
.chapter-locked-badge .lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chapter-content-wrapper {
  padding: 20px 0;
}

/* Lessons grid (Pencil: card width 320, gap 36) */
.chapter-lessons {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}
.lesson-card {
  width: 320px;
  border-radius: 28px;
  padding: 36px 32px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.0706); /* #00000012 */
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.lesson-card:hover {
  transform: translateY(-1px);
}
.lesson-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lesson-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #18181B;
}
.lesson-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: #64748B;
}

/* Accent lesson cards (Pencil: colored shadow) */
.lesson-card--accent-red { box-shadow: 0 6px 16px rgba(231, 20, 81, 0.145); }  /* #E7145125 */
.lesson-card--accent-cyan { box-shadow: 0 6px 16px rgba(6, 182, 212, 0.145); }  /* #06B6D425 */
.lesson-card--accent-blue { box-shadow: 0 6px 16px rgba(37, 99, 235, 0.145); }  /* #2563EB25 */

/* Chapter 4 lock overlay (Pencil: chapter4LockOverlay) */
.chapter-lock-overlay {
  border-radius: 24px;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  margin-bottom: 36px;
}
.chapter-lock-overlay .overlay-title {
  font-size: 28px;
  font-weight: 700;
  color: #18181B;
}
.chapter-lock-overlay .overlay-desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #64748B;
  max-width: 820px;
}
.overlay-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}
.overlay-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  border-radius: 28px;
  background: #F59E0B;
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 600;
}
.overlay-qr {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.overlay-qr-text {
  font-size: 14px;
  font-weight: 400;
  color: #9CA3AF;
  text-align: center;
}

/* Locked lesson cards (Pencil: fill #F9FAFB, opacity 0.6, shadow #0000000D blur 12 y4) */
.chapter-lessons--locked {
  pointer-events: none;
}
.lesson-card--locked {
  background: #F9FAFB;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.051);
  opacity: 0.6;
}
.lesson-card--locked .lesson-title,
.lesson-card--locked .lesson-desc {
  color: #9CA3AF;
}

@media (max-width: 1200px) {
  .theory-chapters .container {
    padding-left: 80px;
    padding-right: 80px;
  }
}

@media (max-width: 1024px) {
  .hero-main-content {
    flex-direction: column;
  }
  .hero-right-panel {
    width: 100%;
  }
  .theory-chapters .container {
    padding-left: 40px;
    padding-right: 40px;
  }
  .theory-chapter {
    padding: 40px 24px;
  }
  .chapter-title {
    font-size: 32px;
  }
  .chapter-desc {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .theory-hero {
    padding: 80px 0 60px;
  }
  .theory-hero-title {
    font-size: 36px;
  }
  .theory-hero-subtitle {
    font-size: 18px;
  }
  .hero-card {
    padding: 24px 20px;
  }
  .overview-progress-main {
    flex-direction: column;
  }
  .theory-chapters {
    padding: 80px 0;
  }
  .theory-chapters .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .chapter-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .chapter-title-wrapper {
    padding-bottom: 32px;
  }
  .chapter-lock-overlay {
    padding: 40px 20px;
  }
  .lesson-card {
    width: 100%;
  }
}

