/* Imperio Hybrid Layer — video + Direto ao Ponto + Modo Iniciante
   Injetado via index.html porque o fonte do dashboard nao esta neste repo. */

/* ---------- Video da aula ---------- */
#root .video-aula {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  margin: 20px 0 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
#root .video-aula iframe,
#root .video-aula video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Aprofundamento recolhivel (<details>) ---------- */
#root details {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  padding: 0;
  margin: 16px 0;
  overflow: hidden;
}
#root details summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-weight: 600;
  color: #334155;
  background: #f1f5f9;
  transition: background 0.15s;
  user-select: none;
}
#root details summary:hover { background: #e2e8f0; }
#root details summary::-webkit-details-marker { display: none; }
#root details summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 10px;
  color: #0d9488;
  transition: transform 0.15s;
}
#root details[open] summary::before { transform: rotate(90deg); }
#root details[open] summary { border-bottom: 1px solid #e2e8f0; }
#root details > *:not(summary) { padding-left: 18px; padding-right: 18px; }
#root details > p:last-child,
#root details > div:last-child { padding-bottom: 16px; }

/* ---------- Hero "Continue daqui" (home) ---------- */
#imperio-hero {
  border-radius: 18px;
  background: linear-gradient(120deg, #0f766e 0%, #0d9488 55%, #0891b2 100%);
  color: #fff;
  padding: 22px 24px;
  margin: 0 0 24px;
  font-family: Inter, system-ui, sans-serif;
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.25);
}
#imperio-hero .ih-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
#imperio-hero .ih-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
#imperio-hero h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 6px 0 2px;
  color: #fff;
}
#imperio-hero .ih-sub { font-size: 13px; opacity: 0.85; }
#imperio-hero .ih-cta {
  display: inline-block;
  margin-top: 14px;
  background: #fff;
  color: #0f766e;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.12s;
}
#imperio-hero .ih-cta:hover { transform: translateY(-1px); }
#imperio-hero .ih-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}
#imperio-hero .ih-toggle .ih-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fbbf24;
}
body.imperio-modo-iniciante #imperio-hero .ih-toggle .ih-dot { background: #4ade80; }

/* ---------- Modo Iniciante: esmaece trilhas avancadas na home ---------- */
body.imperio-modo-iniciante [data-imperio-home] a[href^="/trail/"]:not([href="/trail/comece-aqui"]) {
  opacity: 0.35;
  filter: grayscale(0.55);
  transition: opacity 0.2s, filter 0.2s;
}
body.imperio-modo-iniciante [data-imperio-home] a[href^="/trail/"]:not([href="/trail/comece-aqui"]):hover {
  opacity: 0.85;
  filter: grayscale(0);
}

@media (max-width: 640px) {
  #imperio-hero { padding: 18px; }
  #imperio-hero h2 { font-size: 17px; }
}
