/* =====================================================================================
   ATIVIDADES — complementos (nd-atividades.js)
   ===================================================================================== */

/* Botão Atividades em amarelo Simpsons (#FED90F), bem saturado, com a barra e o ponto em preto.
   Vale no modo claro e no escuro (o botão tem tema próprio: data-nd-claro). */
html body #activities-button:not(.nd-at) .n30-bt-gnome .g-pilula { fill: #fed90f !important; }
html body #activities-button:not(.nd-at) .n30-bt-gnome rect:not(.g-pilula) { fill: #000 !important; }
html body #activities-button:not(.nd-at) .n30-bt-gnome circle { fill: rgba(0, 0, 0, .45) !important; }
html body #activities-button.on:not(.nd-at) .n30-bt-gnome .g-pilula { fill: #f2cc00 !important; }
html body #activities-button:not(.nd-at):active .n30-bt-gnome .g-pilula { fill: #e5c000 !important; }
html body #activities-button:not(.nd-at):hover { background: transparent !important; }
/* celular e telas estreitas: o botão é a pílula com a barra e o ponto (sem o desenho) */
@media (max-width: 899.98px) {
  html body #activities-button, html body #activities-button.on, html body #activities-button[data-tema] { background: #fed90f !important; }
  html body #activities-button .n30-bt-barra, html body #activities-button.on .n30-bt-barra, html body #activities-button[data-tema] .n30-bt-barra { background: #000 !important; }
  html body #activities-button .n30-bt-ponto, html body #activities-button.on .n30-bt-ponto, html body #activities-button[data-tema] .n30-bt-ponto { background: rgba(0, 0, 0, .45) !important; }
}

/* ---------- sem barra de pesquisa (computador): o campo continua existindo, invisível, só para receber o que é digitado ---------- */
html:not([data-nd-tela="movel"]) #activities-overlay .n30-busca { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; opacity: 0 !important; pointer-events: none !important; box-shadow: none !important; }
html:not([data-nd-tela="movel"]) #activities-overlay #n30Res { display: none !important; }
html:not([data-nd-tela="movel"]) #activities-overlay .n30-apps { position: relative; }

/* apps que não combinam com o que foi digitado */
#activities-overlay .n30-app.nd-atv-fora { display: none !important; }
#activities-overlay .nd-atv-nada { margin: 28px 0 8px; text-align: center; font-size: 15px; color: var(--at-mu, #86868b); animation: ndAtvNada .3s ease-out both; }
@keyframes ndAtvNada { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- lente das setas ---------- */
#activities-overlay .nd-atv-lente { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 20px; pointer-events: none; opacity: 0;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 12px 28px -10px rgba(0, 0, 0, .24), 0 2px 6px -1px rgba(0, 0, 0, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform var(--nd-atv-mola-t, 420ms) var(--nd-atv-mola, cubic-bezier(.32, .72, 0, 1)), width var(--nd-atv-mola-t, 420ms) var(--nd-atv-mola, cubic-bezier(.32, .72, 0, 1)), height var(--nd-atv-mola-t, 420ms) var(--nd-atv-mola, cubic-bezier(.32, .72, 0, 1)), opacity .18s ease; }
#activities-overlay .nd-atv-lente::after { content: ""; position: absolute; inset: -3px; border-radius: 23px; border: 2px solid var(--at-az, #0a84ff); box-shadow: 0 0 0 4px rgba(10, 132, 255, .16); }
#activities-overlay .nd-atv-lente.on { opacity: 1; }
html.nd-escuro #activities-overlay .nd-atv-lente { background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 14px 30px -10px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .12); }
html.nd-escuro #activities-overlay .nd-atv-lente::after { border-color: #ffc700; box-shadow: 0 0 0 4px rgba(255, 199, 0, .18); }
#activities-overlay .n30-app.nd-atv-sel .n30-app-ic { transform: scale(1.08) translateY(-1px); box-shadow: 0 12px 24px -8px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform var(--nd-atv-mola2-t, 380ms) var(--nd-atv-mola2, cubic-bezier(.34, 1.4, .64, 1)), box-shadow .25s ease; }
@media (prefers-reduced-motion: reduce) {
  #activities-overlay .nd-atv-lente { transition: opacity .12s ease; }
  #activities-overlay .n30-app.nd-atv-sel .n30-app-ic { transition: none; }
}

/* prévias das janelas: aparecem no dobro da velocidade (o esmaecer era de 160 ms) */
#activities-overlay .n30-camada { transition-duration: 80ms !important; }
