/* ============================================================
   content-redesign.css — visual "Grimório" para o compêndio
   (feats.php, races.php, spells.php — mesmas classes).
   Aditivo: carregue DEPOIS de style.css. Valores literais.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* fundo quente (remove o glow azul "Cobalto" do style.css) */
body:not(.board-body){
  background-color:var(--bg);
  background-image:
    radial-gradient(1100px 720px at 50% -12%, rgba(197,154,76,.10), transparent 62%),
    radial-gradient(900px 680px at 8% 112%, rgba(176,74,58,.07), transparent 60%),
    radial-gradient(1200px 900px at 100% 100%, rgba(90,55,20,.35), transparent 55%);
  background-attachment:fixed;
}

/* ---------- TOPBAR ---------- */
body:not(.board-body) .topbar{
  background:linear-gradient(180deg,var(--panel-2),var(--panel));border-bottom:2px solid var(--accent);box-shadow:none
}
.topbar h1{font-family:'Cinzel',Georgia,serif;color:var(--gold);font-weight:700;letter-spacing:.01em}
.topbar h1 .back{color:var(--muted);text-decoration:none}
.topbar h1 .back:hover{color:var(--gold)}
.topbar .tag{background:var(--panel);border:1px solid var(--line);color:var(--muted);border-radius:999px;padding:3px 10px;font-size:11px;font-weight:700}
/* botões da topbar: pílulas escuras planas (sem o gradiente azul do Cobalto) */
body:not(.board-body) .topbar .controls .btn{
  font:inherit;font-size:13px;font-weight:400;border-radius:9px;padding:7px 13px;
  border:1px solid var(--line);background:var(--panel-2);color:var(--ink);box-shadow:none;text-decoration:none
}
body:not(.board-body) .topbar .controls .btn:hover{border-color:var(--accent);filter:none;transform:none}

/* ---------- CONTAINER + FILTROS ---------- */
.container{max-width:1080px;margin:0 auto;padding:26px 24px 60px}
.row-form.spell-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 16px}
.row-form.spell-filters select,
.row-form.spell-filters input[type=text],
.row-form.spell-filters input:not([type]){
  font:inherit;font-size:13px;padding:9px 11px;border-radius:9px;border:1px solid var(--line);background:var(--panel-2);color:var(--ink)
}
.row-form.spell-filters input{flex:1 1 220px;min-width:160px}
.row-form.spell-filters select:focus,.row-form.spell-filters input:focus{border-color:var(--accent);outline:none;box-shadow:none}
.row-form.spell-filters button{
  font:inherit;font-weight:700;color:var(--on-accent);background:linear-gradient(135deg,#b6402a,#8f2a17);
  border:1px solid rgba(90,55,20,.28);border-radius:9px;padding:9px 16px;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,246,224,.35)
}
.row-form.spell-filters button:hover{filter:brightness(1.05)}
.container > .muted, p.muted{color:var(--muted);font-size:13px}

/* ---------- LISTA (talentos / magias / raças) ---------- */
.spell-list{display:flex;flex-direction:column;gap:10px;max-width:none}
.spell{
  border:1px solid var(--line);border-radius:13px;overflow:hidden;
  background:linear-gradient(180deg,var(--panel),var(--panel));box-shadow:0 6px 18px rgba(90,55,20,.28)
}
.spell:hover{border-color:var(--line)}
.spell > summary{
  cursor:pointer;list-style:none;display:flex;align-items:center;flex-wrap:wrap;gap:9px;
  padding:12px 15px;color:var(--ink)
}
.spell > summary::-webkit-details-marker{display:none}
.spell > summary::before{content:'▸';color:var(--muted);font-size:12px;transition:transform .15s;flex:none}
.spell[open] > summary::before{transform:rotate(90deg);color:var(--accent)}
.spell[open] > summary{border-bottom:1px solid var(--line);background:var(--panel)}
.spell-name{font-family:'Cinzel',Georgia,serif;font-size:16px;font-weight:700;color:var(--gold);letter-spacing:.01em}
.spell > summary .muted{color:var(--muted);font-size:12.5px}
.pill{font-size:10px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;border-radius:999px;padding:3px 9px;background:var(--panel-2);color:var(--accent);border:1px solid var(--line)}

/* corpo do card (descrição) */
.spell-body{padding:13px 16px 15px;font-family:'EB Garamond',Georgia,serif;font-size:15px;line-height:1.62;color:var(--muted)}
.spell-body p{margin:0 0 11px}
.spell-body p:last-child{margin-bottom:0}
.spell-body strong{color:var(--ink);font-weight:600}
.spell-meta{display:flex;flex-wrap:wrap;gap:6px 18px;margin-bottom:11px;font-size:13px;color:var(--muted)}
.spell-meta strong{color:var(--muted);font-weight:600}
.spell-meta .pill,.spell-body .pill{vertical-align:middle}

/* ---------- botões gerais sem o azul "Cobalto" ---------- */
body:not(.board-body) .btn:not(.ghost):not(.danger){
  background:var(--panel-2);border:1px solid var(--line);color:var(--ink);box-shadow:none;font-weight:400
}
body:not(.board-body) .btn:not(.ghost):not(.danger):hover{border-color:var(--accent);transform:none;filter:none}
