/* =========================================================
   DataLurk — lurklab.css (miolo dos painéis do "em produção" do LurkLab)
   A base da página (horizonte, Lurkzinho, casca dos painéis, entrada) está em embreve.css.
   O laboratório se montando: uma célula de código que roda, uma aula em vídeo que toca
   e um experimento que enche. Rosa do LurkLab (--lurklab) como ponto de luz. Sem textos nem números.
   ========================================================= */

/* painéis entram "materializando", como algo saindo da bancada */
.lab { --sk-in: lb-in; }
@keyframes lb-in { from { opacity: 0; transform: translateY(18px) scale(.94); filter: blur(4px); } }

/* ---------- célula de código (esquerda) ---------- */
.cell { display: flex; gap: 12px; align-items: flex-start; }
.cell__run { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: #33373D; transition: background-color .4s; }
.cell__run svg { width: 10px; height: 10px; fill: var(--dl-muted-dark); transition: fill .4s; }
.sk.on .cell__run { background: var(--ac); }
.sk.on .cell__run svg { fill: var(--dl-graphite); }
.cell__lines { flex: 1; display: flex; flex-direction: column; gap: 9px; padding-top: 2px; }
.cell__lines b { transition: background-color .4s; }
.sk.on .cell__lines b { background: #464B53; }
.sk.on .cell__lines b:nth-child(2) { background: linear-gradient(90deg, var(--ac) 0 28%, #464B53 28%); transition-delay: .1s; } /* uma palavra acesa, como sintaxe */
.sk.on .cell__lines b:nth-child(3) { transition-delay: .2s; }
.sk.on .cell__lines b:nth-child(4) { transition-delay: .3s; }
.cell__out { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--dl-graphite-3); }
.cell__ok { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed #464B53; transition: border-color .4s, background-color .4s; }
.cell__ok svg { width: 11px; height: 11px; fill: none; stroke: var(--dl-graphite); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 12; stroke-dashoffset: 12; transition: stroke-dashoffset .4s ease .9s; }
.sk.on .cell__ok { border: 1px solid var(--ac); background: var(--ac); transition-delay: .8s; }
.sk.on .cell__ok svg { stroke-dashoffset: 0; }
.cell__out b { flex: 1; transform-origin: left; transform: scaleX(.2); transition: transform .8s var(--ease) .9s, background-color .4s .9s; }
.sk.on .cell__out b { transform: scaleX(1); background: #464B53; }

/* ---------- aula em vídeo (centro, a única no celular) ---------- */
.lab .sk--c { bottom: calc(100% - var(--hy) + 80px); }
.rec { display: inline-flex; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #33373D; justify-content: center; align-items: center; }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: #33373D; transition: background-color .4s; }
.sk.on .rec { border-color: var(--ac-33); }
.sk.on .rec i { background: var(--ac); animation: ls-pulse 1.6s ease-in-out infinite; } /* gravando */
.vid { position: relative; height: 72px; border-radius: 8px; background: var(--dl-graphite-3); border: 1px dashed #33373D; display: grid; place-items: center; overflow: hidden; transition: border-color .5s; }
.vid::before { /* linhas de "quadro" ao fundo, como um slide */
  content: ""; position: absolute; left: 14px; right: 66%; top: 14px; height: 8px; border-radius: 4px; background: #2A2E33;
  box-shadow: 0 16px 0 -1px #2A2E33; }
.sk.on .vid { border-style: solid; border-color: #3A3F46; }
.vid__play { position: relative; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #33373D; transform: scale(.86);
  transition: background-color .4s, transform .5s cubic-bezier(.2, 1.6, .4, 1); }
.vid__play svg { width: 16px; height: 16px; fill: var(--dl-muted-dark); transition: fill .4s; }
.sk.on .vid__play { background: var(--ac); transform: scale(1); box-shadow: 0 0 0 6px var(--ac-15); }
.sk.on .vid__play svg { fill: var(--dl-graphite); }
.vid__bar { position: relative; height: 4px; border-radius: 2px; background: #33373D; }
.vid__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 2px; background: var(--ac); transition: width 1.8s cubic-bezier(.3, .1, .3, 1) .3s; }
.vid__bar i::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--dl-offwhite); opacity: 0; transition: opacity .3s .3s; }
.sk.on .vid__bar i { width: 64%; }
.sk.on .vid__bar i::after { opacity: 1; }

/* ---------- experimento (direita) ---------- */
.exp { display: flex; align-items: center; gap: 16px; }
.flask { flex: none; width: 58px; height: 68px; overflow: visible; }
.flask__glass { fill: none; stroke: #4A4F57; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s; }
.sk.on .flask__glass { stroke: var(--dl-offwhite); }
.flask__liquid { fill: var(--ac); opacity: .9; transform: translateY(28px); transition: transform 1.2s cubic-bezier(.3, .1, .2, 1) .2s; }
.sk.on .flask__liquid { transform: translateY(0); }
.flask__bub { fill: var(--dl-graphite); opacity: 0; }
.sk.on .flask__bub { animation: lb-bub 1.8s ease-in infinite 1.2s; }
.sk.on .flask__bub:nth-of-type(2) { animation-delay: 1.7s; }
.sk.on .flask__bub:nth-of-type(3) { animation-delay: 2.2s; }
@keyframes lb-bub { 0% { opacity: 0; transform: translateY(0); } 20% { opacity: .5; } 100% { opacity: 0; transform: translateY(-20px); } }
.exp__steps { flex: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.exp__steps li { display: flex; align-items: center; gap: 8px; }
.exp__steps i { flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1px solid #464B53; transition: background-color .3s, border-color .3s; }
.exp__steps b { flex: 1; }
.sk.on .exp__steps i { background: var(--ac); border-color: var(--ac); }
.sk.on .exp__steps li:nth-child(1) i { transition-delay: .5s; }
.sk.on .exp__steps li:nth-child(2) i { transition-delay: .9s; }
.sk.on .exp__steps li:nth-child(3) i { transition-delay: 1.3s; }

@media (prefers-reduced-motion: reduce) {
  .sk.on .flask__bub, .sk.on .rec i { animation: none; }
}
