/* === LESSON PAGE === */

.lesson-hero {
  background: linear-gradient(135deg, #05051a, #0a1030);
  padding: 100px 40px 40px;
  text-align: center;
}

.lesson-hero h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.lesson-hero p { color: var(--gray); font-size: 1rem; }

/* BODY */
.lesson-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 70vh;
  background: var(--bg-dark);
}

/* SIDEBAR */
.lesson-sidebar {
  background: #060620;
  border-right: 1px solid var(--border);
  padding: 30px 20px;
  position: sticky;
  top: 60px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.lesson-sidebar h3 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  color: var(--teal);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.topic-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }

.topic-list li a {
  display: block;
  padding: 10px 14px;
  color: var(--gray);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 4px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
}

.topic-list li a:hover,
.topic-list li a.active {
  color: var(--teal);
  background: rgba(0,229,200,0.05);
  border-left-color: var(--teal);
}

/* CONTENT */
.lesson-content {
  padding: 40px;
}

.content-box h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.content-box p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 1rem;
}

.content-box h3 {
  color: var(--purple-light);
  margin: 24px 0 12px;
  font-size: 1.2rem;
}

.content-box ul {
  margin: 0 0 16px 20px;
  color: var(--text);
  line-height: 1.8;
}

.content-box code {
  display: block;
  background: #0a0a2e;
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  padding: 20px;
  border-radius: 4px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  color: #e2e8f0;
  white-space: pre;
  overflow-x: auto;
  margin: 16px 0;
  line-height: 1.6;
}

.content-box .tag { color: #e06c75; }
.content-box .attr { color: #d19a66; }
.content-box .val { color: #98c379; }
.content-box .comment { color: #5c6370; font-style: italic; }

@media (max-width: 768px) {
  .lesson-body { grid-template-columns: 1fr; }
  .lesson-sidebar { position: static; max-height: 250px; }
  .lesson-content { padding: 20px; }
}
