/* ============================================================
   NATIVO AUTHENTIC — UPGRADE PATCH v1.0
   Adicione este arquivo DEPOIS do styles.css no seu HTML:
   <link rel="stylesheet" href="styles-upgrade.css">
   ============================================================ */

/* ============================================
   1. SCROLLBAR CUSTOMIZADA
   Substitui a barra de rolagem padrão do browser
   por uma versão com tema neon
   ============================================ */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink));
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--neon-cyan) var(--bg);
}

/* ============================================
   2. COR DE SELEÇÃO DE TEXTO
   Quando o usuário seleciona texto com o mouse
   ============================================ */

::selection {
  background: rgba(0, 245, 255, 0.25);
  color: #fff;
}

/* ============================================
   3. GRADIENTE DE FUNDO MAIS RICO
   Adiciona uma quarta camada sutil de profundidade
   ============================================ */

body {
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(191, 95, 255, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(0, 245, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 60% 50%, rgba(255, 45, 120, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 30% 50% at 10% 80%, rgba(0, 245, 255, 0.05) 0%, transparent 50%);
}

/* ============================================
   4. NAVEGAÇÃO — LINK COM UNDERLINE ANIMADO
   A linha neon aparece deslizando da esquerda
   ao passar o mouse nos links
   ============================================ */

.n-link {
  position: relative;
  padding-bottom: 4px;
}

.n-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 6px var(--neon-cyan);
}

.n-link:hover::after {
  width: 100%;
}

/* ============================================
   5. BOTÃO PRINCIPAL — EFEITO SHIMMER
   Um brilho desliza pelo botão ao passar o mouse,
   como reflexo de luz
   ============================================ */

.btn-y2k {
  isolation: isolate;
}

.btn-y2k::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.btn-y2k:hover::before {
  left: 160%;
}

.btn-y2k:hover {
  transform: translateY(-2px);
  filter: brightness(1.25);
  box-shadow: 0 6px 24px rgba(0, 245, 255, 0.4),
              0 0 0 1px rgba(0, 245, 255, 0.2);
}

.btn-y2k:active {
  transform: translateY(0);
}

/* ============================================
   6. BOTÃO GHOST — HOVER MAIS SUAVE
   ============================================ */

.btn-ghost2:hover {
  transform: translateY(-2px);
  background: rgba(0, 245, 255, 0.08);
  border-color: var(--neon-cyan);
  box-shadow: 0 6px 20px rgba(0, 245, 255, 0.2),
              0 0 0 1px rgba(0, 245, 255, 0.1);
}

.btn-ghost2:active {
  transform: translateY(0);
}

/* ============================================
   7. CARDS DE PRODUTOS — HOVER MAIS DRAMÁTICO
   Adiciona borda animada + sombra mais profunda
   ============================================ */

.p-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

.p-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 245, 255, 0.2),
    0 0 40px rgba(0, 245, 255, 0.08),
    inset 0 0 60px rgba(0, 245, 255, 0.02);
}

/* Linha de neon embaixo da imagem mais visível */
.p-img-glow {
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--neon-cyan) 30%,
    var(--neon-purple) 70%,
    transparent 100%
  );
  filter: blur(1px);
}

.p-card:hover .p-img-glow {
  opacity: 0.9;
}

/* Imagem: zoom suave ao hover */
.p-img img {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s ease;
}

.p-card:hover .p-img img {
  transform: scale(1.08);
}

/* ============================================
   8. BOTÃO INTERNO DO CARD — SHIMMER IGUAL AO PRINCIPAL
   ============================================ */

.btn-int {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-int::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 245, 255, 0.2),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.4s ease;
  pointer-events: none;
}

.btn-int:hover::before {
  left: 160%;
}

.btn-int:hover {
  transform: translateY(-1px);
  background: var(--neon-cyan);
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(0, 245, 255, 0.5);
}

/* ============================================
   9. MODAL — BORDA SUPERIOR ANIMADA (JÁ TINHA, MELHORA)
   + Entrada com spring mais elegante
   ============================================ */

@keyframes mIn {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.94);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.modal {
  animation: mIn 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   10. INPUTS — FOCUS COM GLOW MAIS SUAVE
   ============================================ */

.m-inp:focus,
.lk-inp:focus,
#ada-input:focus {
  border-color: var(--neon-cyan);
  box-shadow:
    0 0 0 3px rgba(0, 245, 255, 0.08),
    0 0 16px rgba(0, 245, 255, 0.12);
  outline: none;
}

/* ============================================
   11. FOOTER — LINHA SUPERIOR NEON ANIMADA
   ============================================ */

footer {
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--neon-cyan) 25%,
    var(--neon-purple) 50%,
    var(--neon-pink) 75%,
    transparent 100%
  );
  background-size: 200%;
  animation: borderFlow 4s linear infinite;
}

@keyframes borderFlow {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ============================================
   12. ADA BUTTON — PULSO COM CAMADAS
   Anel de ping duplo mais dinâmico
   ============================================ */

#ada-btn {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}

#ada-btn:hover {
  transform: scale(1.12);
  box-shadow:
    0 0 0 6px rgba(0, 245, 255, 0.1),
    0 0 40px rgba(0, 245, 255, 0.6);
}

/* ============================================
   13. SEÇÃO: TAG COM ÍCONE ANIMADO
   O ">" antes do sec-tag pisca suavemente
   ============================================ */

.sec-tag::before {
  color: var(--neon-pink);
  animation: blinkSoft 2s ease-in-out infinite;
}

@keyframes blinkSoft {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ============================================
   14. TICKER — PAUSA AO HOVER
   ============================================ */

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

/* ============================================
   15. TABELA ADMIN — ROW HOVER MAIS SUAVE
   ============================================ */

table tbody tr {
  transition: background 0.2s ease;
}

table tbody tr:hover {
  background: rgba(0, 245, 255, 0.06);
}

/* ============================================
   16. ADA BUBBLE — ENTRADA COM SPRING
   ============================================ */

@keyframes floatIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(16px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

/* ============================================
   17. ACESSIBILIDADE — RESPEITAR PREFERÊNCIA
   Usuários que preferem menos animação
   (configuração do sistema operacional)
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   18. CHIP DO HERO — BRILHO SUAVE PULSANTE
   ============================================ */

.h-chip {
  box-shadow: 0 0 0 0 rgba(0, 245, 255, 0.3);
  animation: fu 0.7s 0.2s forwards, chipGlow 3s 1s ease-in-out infinite;
}

@keyframes chipGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 245, 255, 0.1); }
  50%       { box-shadow: 0 0 18px rgba(0, 245, 255, 0.35); }
}

/* ============================================
   19. CARDS DE ESTATÍSTICAS DO ADMIN
   Entrada escalonada (um por um)
   ============================================ */

.st-box:nth-child(1) { animation-delay: 0.05s; }
.st-box:nth-child(2) { animation-delay: 0.15s; }
.st-box:nth-child(3) { animation-delay: 0.25s; }
.st-box:nth-child(4) { animation-delay: 0.35s; }

/* ============================================
   20. ÍCONES FLUTUANTES — VARIAÇÃO DE OPACIDADE
   Cada ícone tem brilho levemente diferente
   para parecer mais orgânico
   ============================================ */

.ico:nth-child(odd)  { opacity: 0.12; }
.ico:nth-child(even) { opacity: 0.18; }

/* ============================================
   FIM DO PATCH
   ============================================ */
