/* Mestres Play · extensões da área do aluno (v22): abas da aula, aviso de bloqueio e telas novas.
   Usa as variáveis do app.css (--accent, --glass, --stroke, --radius, --text-mid). */
.p-ext { margin-top: 18px; }
.p-ext[hidden] { display: none; }
.pext-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--stroke);
}
.pext-tab {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-mid);
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.pext-tab:hover { color: var(--text); border-color: var(--stroke-bright); }
.pext-tab.on { color: #10160a; background: var(--accent); border-color: var(--accent); }
.pext-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pext-body { padding-top: 16px; min-height: 60px; }
.pext-vazio { color: var(--text-mid); font-size: 14px; padding: 12px 0; }

.pext-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 6, 10, .72);
  backdrop-filter: blur(8px);
}
.pext-modal.show { display: flex; }
.pext-modal-box {
  width: min(440px, 100%);
  padding: 28px 26px 24px;
  text-align: center;
  background: rgba(22, 22, 30, .96);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pext-modal-box h3 { font-size: 20px; margin: 6px 0 8px; text-wrap: balance; }
.pext-modal-box p { color: var(--text-mid); font-size: 14.5px; line-height: 1.5; }
.pext-cadeado { font-size: 30px; }
.pext-modal-acoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.pext-modal-acoes a { text-decoration: none; }

/* telas novas (#/rota): mesmo respiro das outras telas */
#view-ext { padding-top: 28px; padding-bottom: 40px; }
/* No celular a barra de baixo continua com as 4 abas de hoje: as telas novas ficam como botões no perfil (ext-aluno.js) */
.profile-actions .pext-perfil-link { display: none; text-decoration: none; }
@media (max-width: 800px) {
  .navtabs .navtab-ext { display: none; }
  .profile-actions .pext-perfil-link { display: inline-block; }
}
@media (prefers-reduced-motion: reduce) {
  .pext-tab { transition: none; }
}
