/* Estilo compartilhado das páginas de aula do Material de Estudo */

.lesson-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #58a6ff;
  text-decoration: none;
  font-weight: 500;
  margin: 100px 0 0 24px;
  transition: color 0.2s;
}
.lesson-back-link:hover { color: #79c0ff; }

.lesson-container {
  max-width: 760px;
  margin: 24px auto 60px;
  background: rgba(22, 27, 34, 0.95);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 40px 32px;
  border: 1px solid rgba(88, 166, 255, 0.2);
}

.lesson-eyebrow {
  display: inline-block;
  color: #58a6ff;
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid rgba(88, 166, 255, 0.3);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.lesson-container h1 {
  font-size: 2.1rem;
  color: #f0f6fc;
  margin-bottom: 10px;
}

.lesson-meta {
  color: #8b949e;
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.lesson-intro {
  font-size: 1.1rem;
  color: #c9d1d9;
  margin-bottom: 28px;
}

.lesson-objectives {
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.25);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 28px;
}
.lesson-objectives h2 {
  color: #58a6ff;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.lesson-objectives ul { margin-left: 20px; color: #c9d1d9; }
.lesson-objectives li { margin-bottom: 6px; }

.lesson-section { margin-bottom: 28px; }
.lesson-section h2 {
  color: #58a6ff;
  font-size: 1.3rem;
  margin-bottom: 12px;
  border-bottom: 1px solid #30363d;
  padding-bottom: 8px;
}
.lesson-section h3 {
  color: #79c0ff;
  font-size: 1.05rem;
  margin: 16px 0 8px;
}
.lesson-section p { color: #c9d1d9; margin-bottom: 12px; }
.lesson-section ul, .lesson-section ol { margin: 0 0 12px 22px; color: #c9d1d9; }
.lesson-section li { margin-bottom: 6px; }
.lesson-section strong { color: #f0f6fc; }
.lesson-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 16px;
  font-size: 0.95rem;
}
.lesson-section th, .lesson-section td {
  border: 1px solid #30363d;
  padding: 8px 10px;
  text-align: left;
  color: #c9d1d9;
}
.lesson-section th { color: #58a6ff; background: rgba(88, 166, 255, 0.06); }

.callout {
  border-radius: 10px;
  padding: 18px 20px;
  margin: 20px 0;
  border: 1px solid;
}
.callout h3 { margin-bottom: 8px; font-size: 1rem; }
.callout p, .callout li { color: #c9d1d9; }
.callout ul { margin-left: 20px; }
.callout.example {
  background: rgba(0, 255, 127, 0.06);
  border-color: rgba(0, 255, 127, 0.3);
}
.callout.example h3 { color: #00ff7f; }
.callout.warning {
  background: rgba(255, 193, 7, 0.08);
  border-color: rgba(255, 193, 7, 0.35);
}
.callout.warning h3 { color: #ffc107; }
.callout.danger {
  background: rgba(255, 71, 87, 0.08);
  border-color: rgba(255, 71, 87, 0.35);
}
.callout.danger h3 { color: #ff4757; }

.lesson-summary {
  background: rgba(64, 224, 208, 0.07);
  border: 1px solid rgba(64, 224, 208, 0.3);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 32px 0 8px;
}
.lesson-summary h2 { color: #40e0d0; font-size: 1.05rem; margin-bottom: 10px; }
.lesson-summary ul { margin-left: 20px; color: #c9d1d9; }
.lesson-summary li { margin-bottom: 6px; }

.lesson-resources {
  background: rgba(88, 166, 255, 0.05);
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 18px 22px;
  margin: 24px 0;
}
.lesson-resources h2 {
  color: #58a6ff;
  font-size: 1rem;
  margin-bottom: 10px;
}
.lesson-resources ul { margin-left: 20px; }
.lesson-resources li { margin-bottom: 8px; color: #c9d1d9; }
.lesson-resources a { color: #79c0ff; text-decoration: none; }
.lesson-resources a:hover { text-decoration: underline; }
.lesson-resources .resource-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: #6e7681;
  margin-left: 6px;
}

.lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #30363d;
  flex-wrap: wrap;
}
.lesson-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  font-size: 0.95rem;
}
.lesson-nav .prev {
  color: #8b949e;
  border: 1px solid #30363d;
}
.lesson-nav .prev:hover { border-color: #58a6ff; color: #58a6ff; }
.lesson-nav .next {
  color: #fff;
  background: linear-gradient(135deg, #58a6ff, #1f6feb);
  margin-left: auto;
}
.lesson-nav .next:hover { background: linear-gradient(135deg, #1f6feb, #0d419d); }

@media (max-width: 768px) {
  .lesson-container { margin: 16px 16px 40px; padding: 24px 18px; }
  .lesson-back-link { margin: 90px 0 0 16px; }
  .lesson-container h1 { font-size: 1.6rem; }
}
