/**
 * Tech Background - Estilo Segurança Cibernética
 * Background moderno com gradiente radial e efeito de profundidade
 * ATUALIZADO: Usando cores da marca (azul vibrante) em vez de cinza/preto
 */

/* Container do background */
#tech-particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: auto; /* Permite interação com mouse */
  
  /* Gradiente radial: usando cores da marca (azul vibrante) */
  background: radial-gradient(
    ellipse at center,
    var(--ss-dark-bg, #1a2565) 0%,
    #1e2a70 40%,
    #162055 70%,
    var(--ss-dark-bg, #1a2565) 100%
  );
  
  /* Fallback para navegadores antigos - azul da marca */
  background-color: var(--ss-dark-bg, #1a2565);
}

/* Canvas das partículas */
#tech-particles-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: auto; /* Canvas aceita eventos de mouse */
}

/* Efeito de brilho sutil no topo */
#tech-particles-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40%;
  background: radial-gradient(
    ellipse at top center,
    rgba(14, 42, 71, 0.3) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

/* Efeito de vinheta nas bordas - DESATIVADO para evitar overlay escuro
#tech-particles-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    transparent 60%,
    rgba(0, 4, 40, 0.4) 100%
  );
  pointer-events: none;
  z-index: 2;
}
*/

/* Responsividade */
@media (max-width: 768px) {
  #tech-particles-bg {
    /* Em mobile, usando cores da marca (azul vibrante) */
    background: radial-gradient(
      circle at center,
      var(--ss-dark-bg, #1a2565) 0%,
      #1e2a70 60%,
      var(--ss-dark-bg, #1a2565) 100%
    );
  }
}

/* Loading state */
#tech-particles-bg.loading {
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

#tech-particles-bg.loaded {
  opacity: 1;
}

/* Garantir que o conteúdo fique acima do background */
body {
  position: relative;
  z-index: 1;
}

/* Container principal do site - maior z-index e permite cliques */
.sharksales-container,
.ss-ativos-container,
.ss-checkout-wrapper,
.ss-minha-conta-wrapper {
  position: relative;
  z-index: 100;
  pointer-events: auto; /* Permite cliques nos elementos do site */
}

/* Elementos interativos devem permitir cliques */
.sharksales-container *,
.ss-ativos-container *,
.ss-checkout-wrapper *,
.ss-minha-conta-wrapper * {
  pointer-events: auto;
}
