/* RESET BÁSICO */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #164ccb;
  font-weight: 800;
  margin-top: 5px;   /* espaço para o header fixo */
  background: #f6f9fc;
}

/* HEADER/FOOTER COMO FAIXAS */
.site-header, .site-footer {
  position: sticky;
  left: 0; right: 0;
  background: repeating-radial-gradient(red);
  color: #fff;
  z-index: 10;
}
.site-header { top: 0; border-bottom: 4px solid #e5e7eb; }
.site-footer { bottom: 0; border-top: 4px solid #e5e7eb; }
.site-footer .container { padding: 16px 0; }
.container { max-width: 1100px; margin: 0 auto; padding: 10px 16px; }

/* MENU */
.menu { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.menu-links {background-color:rgba(179, 43, 43, 0.403); position: absolute; top: 60px;; font-weight: 1000; list-style: none; padding: 0; margin: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.menu-links li {margin: 0; align-items: left;padding: auto;}
.menu a { color: #e5e7eb; text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.menu a:hover { background: darkblue; color: #fff; }
.menu a.ativo { background: #3b4cca; color: #fff; }
.menu h2 { text-align: center; margin: 0; }
.redes { position: absolute; top: 15px; right: 20px; display: flex; gap: 15px; justify-content: flex-end; flex: 1; }
.redes a {color: white; font-size: 1.3em; transition: 0.3s; text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.redes a:hover {background: darkblue; color: #fff; transform: scale(1.2); }

/* BACKGROUND SEMI-TRANSPARENTE */
.bg-batalha::before, .landing::before, .doc::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('./imagens/fundo1.jpg') center/cover no-repeat;
  opacity: .35;            /* controla a transparência da imagem */
  z-index: -1;
  pointer-events: none;
}

/* LANDING */
.landing { padding: 24px 16px 120px; }
.lead { font-size: 1.1rem; opacity: .9; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; margin-top: 18px; }
.card-link { text-decoration: none; color: inherit; }
.card { background: #cfc0c0b3; border: 1.5px solid orange; border-radius: 14px; padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.card:hover { transform: translateY(-2px); transition: .2s; }

/* LAYOUT 3 COLUNAS (JOGO) */
.layout-3col { display: grid; grid-template-columns: 280px 1fr 300px; gap: 16px; padding: 90px 16px 140px; }
.painel { background: rgba(255,255,255,.9); border: 1px solid #e5e7eb; border-radius: 14px; padding: 12px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.painel-esq { min-height: 520px; }
.painel-dir { min-height: 520px; }

.label { font-weight: 600; display: block; margin-bottom: 6px; }
.input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #cbd5e1; }
.btn { border: 0; background: #3b4cca; color: #fff; padding: 10px 14px; border-radius: 12px; cursor: pointer; margin-top: 8px; }
.btn:hover { filter: brightness(.95); }
.btn.primario { background: #e11d48; }
.btn.perigo { background: #ef4444; }
.btn.sucesso { background: #16a34a; }
.btn.dado { background: #111827; font-size: 1.1rem; }
.btn:disabled {background: gray !important; cursor: not-allowed; opacity: 0.6;}
.btn-jogar-wrap{text-align: center;}
.btn-poke{ width: 25%; }

/* LISTBOX E TIPOS */
.listbox { width: 100%; height: 250px; border-radius: 10px; border: 1px solid #cbd5e1; padding: 6px;}
.mt { margin-top: 12px; }
.tipos-wrap { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tipo-chip { padding: 6px 10px; border-radius: 999px; font-size: .9rem; cursor: pointer; border: 1px solid #cbd5e1; background: #fff; }
.tipo-chip.ativo { outline: 2px solid #3b4cca; }

/* ARENA E CARDS */
.arena { display: flex; flex-direction: column; gap: 12px; }
.duplo-card { display: grid; grid-template-columns: repeat(2, minmax(280px, 1fr)); gap: 12px; }
.poke-card { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 10px; background: rgba(255,255,255,.92); border: 2px solid orange; border-radius: 16px; padding: 10px; min-height: 220px; }
.poke-card.vazio { opacity: .6; }
.foto-selo { width: 86px; height: 114px; border: 2px dashed #cbd5e1; border-radius: 10px; display: grid; place-items: center; font-size: .85rem; background: rgba(255,255,255,.6); }
.poke-conteudo h3 { margin: 0 0 4px; }
.tag-tipo { display: inline-block; margin: 4px 0; padding: 2px 8px; border-radius: 999px; font-weight: 700; color: #111827; background: #e5e7eb; }
.linhas { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; margin: 6px 0; }
.evolucoes, .forcafraca { font-size: .9rem; opacity: .9; }
.golpes h4 { margin: 8px 0 4px; }
.golpes-lista { display: flex; flex-wrap: wrap; gap: 6px; }
.golpe-btn { border: 1px solid #cbd5e1; background: #fff; border-radius: 10px; padding: 6px 10px; cursor: pointer; }

.acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.painel-resultado { min-height: 44px; font-weight: 700; }

/* ESTATÍSTICAS */
.stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.log { margin: 8px 0 0; padding-left: 18px; height: 260px; overflow: auto; }

/* LISTA */
.filtros-lista { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 14px 0; }
.ul-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 10px; }
.ul-lista li { background: #fff; border: 1px solid orange; border-radius: 10px; padding: 10px; }

/* DOCUMENTAÇÃO */
.doc { padding: 90px 16px 140px; }
.doc-form { display: flex; gap: 8px; }
.doc-grids { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 12px; margin-top: 12px; }
.pre { background: #0b1021; color: #e5e7eb; padding: 10px; border-radius: 10px; overflow: auto; }

/* CORES POR TIPO (para .tag-tipo e borda do card quando disponível) */
.type-bug{ --t:#9bcc50 } .type-dark{ --t:#000 } .type-dragon{ --t:#3c91ff }
.type-electric{ --t:#ffdb00 } .type-fairy{ --t:#f7a8f0 } .type-fighting{ --t:#7c0a02 }
.type-fire{ --t:#ff3b30 } .type-flying{ --t:#89c2ff } .type-ghost{ --t:#4b5563 }
.type-grass{ --t:#4caf50 } .type-ground{ --t:#8b5a2b } .type-ice{ --t:#7fd1c7 }
.type-normal{ --t:#9ca3af } .type-poison{ --t:#7b3fa1 } .type-psychic{ --t:#ff7a18 }
.type-rock{ --t:#a16c2d } .type-steel{ --t:#9aa0a6 } .type-water{ --t:#1e90ff }

.poke-card[class*="type-"] { border-color: var(--t, #e5e7eb); }
.poke-card .tag-tipo { background: color-mix(in srgb, var(--t, #e5e7eb) 45%, #ffffff 55%); }


.detalhe-card {
  margin-top: 2rem;
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  text-align: center;
}
.detalhe-card img {
  max-width: 200px;
  display: block;
  margin: 1rem auto;
}

/* RESPONSIVO */
@media (max-width: 960px){
  .layout-3col { grid-template-columns: 1fr; }
  .duplo-card { grid-template-columns: 1fr; }
}


