/* ============================================================================
   tema2.css — pele "camarim". Entra DEPOIS do tema.css e sobrescreve por cima.
   Regra: reusa os MESMOS nomes de variável do tema.css (--preto, --ambar, --raio…).
   Assim, no dia em que este arquivo for ligado no base.html, toda tela já muda —
   sem tocar em componente nenhum.
   ============================================================================ */

:root {
  /* fundo e superfícies (paleta do brief) */
  --preto:   #120A26;
  --veludo:  #1A1C2B;
  --veludo2: #212330;
  --linha:   #2C3040;
  --linha-forte: #404664;
  --linha-fina: rgba(255,255,255,.06);

  /* UM destaque: MAGENTA — o dourado é da MGC, então saímos dele.
     O nome antigo (--ambar) fica como apelido para o que já usava. */
  --accent:      #E0246E;
  --accent-fraco: rgba(224,36,110,.14);
  --accent-linha: rgba(224,36,110,.40);
  --accent-texto: #EF6EA6;   /* texto miúdo em destaque: 6,8:1 medido (o puro dá 4,2) */
  --ambar:       var(--accent);
  --ambar-fraco: var(--accent-fraco);
  --ambar-linha: var(--accent-linha);

  --rosa:    #E8457A;   /* só o 'eu' e o status ocupada */
  --coral:   #FF4646;   /* só erro e ação destrutiva */
  --marfim:  #ECEDF2;
  --mudo:    #A7AFC8;
  --mudo2:   #8A8294;   /* subiu de #6B6376: passava 3,4:1, agora passa AA */
  --verde:   #0EF68E;   /* só status livre */
  --accent-2:#FF4646;   /* só "ao vivo" */

  /* tipografia */
  --f-display: "bricolage", "Trebuchet MS", sans-serif;
  --f-texto:   "inter", system-ui, -apple-system, sans-serif;
  --f-num:     "jetbrains-mono", ui-monospace, monospace;
  --t1: 34px; --t2: 26px; --t3: 20px; --t4: 17px; --t5: 15px; --t6: 13px; --t7: 12px;

  /* ritmo e forma */
  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e5: 24px; --e6: 32px; --e7: 48px;
  --raio: 8px; --raio-g: 12px; --raio-p: 999px;

  /* movimento */
  --rapido: 160ms; --medio: 240ms; --curva: cubic-bezier(.22,.61,.36,1);
  --mola: cubic-bezier(.34,1.56,.64,1);   /* hover com mola (brief) */
}

@media (min-width: 620px) {
  :root { --t1: 44px; --t2: 32px; --t3: 24px; --t4: 19px; --t5: 16px; }
}

/* ---------- base ---------- */
body { background: var(--preto); color: var(--marfim); font-family: var(--f-texto); }
h1, h2, h3, .display { font-family: var(--f-display); line-height: 1.08; letter-spacing: -.015em; }
h1 { font-size: var(--t1); } h2 { font-size: var(--t2); } h3 { font-size: var(--t3); }
p { line-height: 1.55; }

:focus-visible { outline: 2px solid var(--ambar); outline-offset: 2px; border-radius: 4px; }

/* transição entre páginas (o site é multipágina; isto é barato e elegante) */
@view-transition { navigation: auto; }

/* entrada por scroll, escalonada. Item já visível NÃO anima. */
.entra { opacity: 0; transform: translateY(10px); transition: opacity var(--medio) var(--curva), transform var(--medio) var(--curva); }
.entra.ok { opacity: 1; transform: none; }

/* ---------- cartão de mulher (a foto é o produto) ---------- */
.mulher {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  border: 1px solid var(--linha-fina); border-radius: var(--raio-g); background: var(--veludo);
  transition: border-color var(--rapido) var(--curva), transform var(--rapido) var(--curva);
}
.mulher img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform var(--medio) var(--curva); }
.mulher .veu { position: absolute; inset: auto 0 0 0; height: 62%;
  background: linear-gradient(to top, rgba(10,9,16,.94) 0%, rgba(10,9,16,.6) 45%, transparent 100%); }
.mulher .pe { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--e3); display: grid; gap: 2px; }
.mulher .nome { font-family: var(--f-display); font-size: var(--t3); line-height: 1.1; }
.mulher .linha2 { display: flex; align-items: center; gap: var(--e2); font-size: var(--t6); color: var(--mudo); }
.mulher:hover { border-color: var(--ambar-linha); }
.mulher:hover img { transform: scale(1.03); }
.mulher:active { transform: scale(.99); }
.mulher .acao { position: absolute; left: var(--e3); right: var(--e3); bottom: var(--e3);
  opacity: 0; transform: translateY(6px); transition: all var(--rapido) var(--curva);
  background: var(--ambar); color: #120E08; font-weight: 600; text-align: center;
  padding: 11px; border-radius: var(--raio); font-size: var(--t6); }

/* selo de status: ponto aceso, não etiqueta colorida */
.ponto { width: 7px; height: 7px; border-radius: 50%; background: var(--verde);
  box-shadow: 0 0 0 3px rgba(63,212,138,.14); flex: none; }
.ponto.ocupada { background: var(--ambar); box-shadow: 0 0 0 3px var(--ambar-fraco); }
.ponto.fora { background: var(--mudo2); box-shadow: none; }

/* preço sempre no mesmo lugar, em mono alinhado */
.preco { font-family: var(--f-num); font-variant-numeric: tabular-nums; color: var(--ambar); font-size: var(--t6); }

/* luz de palco atrás do retrato */
.luz { position: relative; }
.luz::before { content: ""; position: absolute; inset: -12% -8% auto -8%; height: 62%;
  background: radial-gradient(58% 58% at 50% 22%, var(--ambar-fraco), transparent 72%); pointer-events: none; }

/* ---------- botões ---------- */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: var(--e2);
  min-height: 44px; padding: 0 var(--e5); border-radius: var(--raio);
  font-family: var(--f-texto); font-size: var(--t5); font-weight: 600; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: var(--marfim);
  transition: all var(--rapido) var(--curva); text-decoration: none; }
.bt:active { transform: scale(.985); }
.bt-p { background: var(--ambar); color: #120E08; }
.bt-p:hover { filter: brightness(1.08); }
.bt-s { border-color: var(--linha); }
.bt-s:hover { border-color: var(--ambar-linha); color: var(--ambar); }
.bt-g { color: var(--mudo); }
.bt-g:hover { color: var(--marfim); }
.bt[disabled], .bt.carregando { opacity: .6; pointer-events: none; }

/* ---------- chat ---------- */
.bolha { max-width: 84%; padding: 10px var(--e4); border-radius: var(--raio-g); font-size: var(--t5);
  line-height: 1.45; background: var(--veludo2); border: 1px solid var(--linha-fina); }
.bolha.eu { justify-self: end; background: var(--ambar-fraco); border-color: var(--ambar-linha); }
.bolha.voz { display: inline-flex; align-items: center; gap: var(--e3); font-family: var(--f-num); font-size: var(--t6); }
.pontos { display: inline-flex; gap: 3px; }
.pontos i { width: 4px; height: 4px; border-radius: 50%; background: var(--mudo); animation: onda 1s infinite ease-in-out; }
.pontos i:nth-child(2) { animation-delay: .15s; } .pontos i:nth-child(3) { animation-delay: .3s; }
@keyframes onda { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------- pacote de crédito ---------- */
.pacote { position: relative; border: 1px solid var(--linha); border-radius: var(--raio-g);
  padding: var(--e4); background: var(--veludo); display: grid; gap: var(--e1); }
.pacote.destaque { border-color: var(--ambar-linha); background: var(--veludo2); }
.pacote .cr { font-family: var(--f-num); font-size: var(--t4); }
.pacote .de { color: var(--mudo2); text-decoration: line-through; font-size: var(--t6); }

/* ---------- estados ---------- */
.esqueleto { border-radius: var(--raio); height: 14px;
  background: linear-gradient(90deg, var(--veludo) 25%, var(--veludo2) 37%, var(--veludo) 63%);
  background-size: 400% 100%; animation: brilho 1.4s linear infinite; }
@keyframes brilho { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.vazio { text-align: center; padding: var(--e7) var(--e4); color: var(--mudo); border: 1px dashed var(--linha); border-radius: var(--raio-g); }
.erro { border: 1px solid rgba(232,69,122,.4); background: rgba(232,69,122,.08); border-radius: var(--raio-g); padding: var(--e4); }

/* ---------- acessibilidade de movimento ---------- */
@media (hover: none) {
  /* celular não tem hover: a ação do cartão precisa estar visível sempre */
  .mulher .acao { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .entra { opacity: 1 !important; transform: none !important; }
}

/* ============================================================================
   Correções cirúrgicas: tirar a cara de template do que JÁ existe (app.css/tema.css)
   Medido na auditoria de 05/11/2026: 73 hex fora do token, glow rosa/âmbar em 7
   componentes, raio misturado e fonte abaixo de 13px. Aqui isso é neutralizado.
   ============================================================================ */

/* 1) brilho colorido difuso vira hairline — glow só no logo e no anel de foco */
.btn:hover, .acao:hover, .pacote:hover, .chamar:hover, .card:hover,
.neon, .nova, .selo-ia::before, .no-ar::before, .selo-status::before { box-shadow: none; }
.hero h1 em, .pagina-erro .codigo { text-shadow: none; }
.neon { border-color: var(--linha-forte); }

/* 2) hover é borda acesa + 2px de subida (não brilho) */
.card { transition: transform var(--rapido) var(--curva), border-color var(--rapido) var(--curva); }
.card:hover { border-color: var(--ambar-linha); transform: translateY(-2px); }
.btn:hover, .acao:hover { filter: brightness(1.06); }

/* 3) um raio só (o resto do site estava alternando pill, 10, 9 e 0) */
.btn, .acao, .chamar, .aviso, .erro, input, select, textarea, .pacote, .card { border-radius: var(--raio); }

/* 4) piso de 13px: nada de letra de 10px */
.selo-ia, .no-ar, .card .selo-status, .card .tema, .tags, .nova, .selo-status { font-size: 13px; }

/* 5) fundo com UMA luz (o rosa espalhado saía caro e brigava com o destaque) */
body { background-image: radial-gradient(80% 46% at 50% 0%, rgba(239,180,88,.055), transparent 72%); background-repeat: no-repeat; }

/* 6) erro usa coral, não o rosa do desejo */
.erro { color: var(--coral); }
