/* Painel de moderação de eventos (Pages/AdminEventos.razor). Visual do mockup
   "Gerenciar Eventos Admin.dc.html", adaptado aos tokens do app.css. */

.aev-wrap { max-width: 1120px; margin: 0 auto; padding: 34px 40px 60px; }

/* ── Cabeçalho ── */
.aev-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.aev-selo {
  display: inline-block;
  background: #2b2318; color: #f6f2e3;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  border-radius: 50px; padding: 4px 11px;
}
.aev-titulo { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--color-text); margin: 8px 0 0; }
.aev-sub { font-size: 14px; color: var(--color-text-muted); margin: 6px 0 0; }

/* ── Cards de resumo ── */
.aev-resumo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.aev-stat { background: var(--color-surface); border-radius: 16px; padding: 16px 18px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.aev-stat-num { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--color-text); }
.aev-stat-lbl { font-size: 12px; color: var(--color-text-muted); margin-top: 4px; }
.aev-stat.oculto .aev-stat-num { color: #4a5e72; }
.aev-stat.excluido .aev-stat-num { color: var(--color-danger); }
.aev-stat.oficial .aev-stat-num { color: #5c5e00; }

/* ── Filtros + busca ── */
.aev-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.aev-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.aev-chip {
  border: none; cursor: pointer; border-radius: 50px; padding: 9px 16px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  background: var(--color-surface); color: var(--color-text-secondary);
  box-shadow: 0 1px 8px rgba(0,0,0,0.05); transition: transform .12s, background .15s, color .15s;
}
.aev-chip:hover { transform: translateY(-1px); }
.aev-chip.on { background: var(--color-lavender); color: var(--color-text); box-shadow: none; }
.aev-busca { position: relative; flex: 1; min-width: 200px; max-width: 300px; margin-left: auto; }
.aev-busca input {
  width: 100%; background: var(--color-surface); border: none; border-radius: 50px;
  padding: 11px 14px; font-size: 13px; color: var(--color-text); box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.aev-busca input:focus { outline: 1.5px solid var(--color-lavender); }

/* ── Tabela ── */
.aev-tabela { background: var(--color-surface); border-radius: 18px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.aev-row {
  display: grid; grid-template-columns: 2.6fr 1fr 1.3fr 1fr 1.2fr 120px; gap: 12px;
  padding: 14px 20px; align-items: center; border-bottom: 1px solid rgba(132,153,183,0.10);
  transition: background .12s;
  position: relative;   /* base do z-index quando o menu de ações abre */
}
/* A linha com o menu ⋯ aberto sobe acima das linhas seguintes — senão o .aev-acoes
   (position:relative) das linhas de baixo, por virem depois no DOM, pinta sobre o popover. */
.aev-row.menu-aberta { z-index: 40; }
.aev-row.head { background: #faf7ee; border-bottom: 1.5px solid rgba(132,153,183,0.15); }
.aev-row.head > div { font-size: 11px; font-weight: 700; color: var(--color-text-muted); letter-spacing: 0.05em; text-transform: uppercase; }
.aev-row:not(.head):hover { background: #faf7ee; }
/* Linhas moderadas ficam esmaecidas — sinal visual de "fora do ar". */
.aev-row.moderada { opacity: 0.62; }

.aev-ev { display: flex; align-items: center; gap: 12px; min-width: 0; }
.aev-capa { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; overflow: hidden; }
.aev-nome { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aev-local { font-size: 12px; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aev-data { font-size: 13px; color: var(--color-text-secondary); }
.aev-preco { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--color-text); }

.aev-insc-num { font-size: 13px; color: var(--color-text); font-weight: 600; margin-bottom: 5px; }
.aev-barra { height: 5px; border-radius: 50px; background: #eee9dc; overflow: hidden; }
.aev-barra > div { height: 100%; border-radius: 50px; background: var(--color-olive); }

/* Chips de status/estado — reusa a base do .admin-chip (home.css) */
.aev-tags { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }

/* ── Ações ── */
.aev-acoes { display: flex; align-items: center; justify-content: flex-end; gap: 6px; position: relative; }
.aev-act {
  width: 34px; height: 34px; border-radius: 10px; background: #faf7ee; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .12s;
}
.aev-act:hover { background: var(--color-cream); }
.aev-menu {
  position: absolute; top: 40px; right: 0; background: var(--color-surface); border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16); padding: 6px; width: 184px; z-index: 30; text-align: left;
}
.aev-menu-i {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 8px; cursor: pointer;
  font-size: 13px; color: var(--color-text); background: none; border: none; width: 100%; text-align: left;
  transition: background .12s;
}
.aev-menu-i:hover { background: var(--color-cream); }
.aev-menu-i.perigo { color: var(--color-danger); }
.aev-menu-sep { height: 1px; background: rgba(132,153,183,0.15); margin: 4px 6px; }
/* Fecha o menu ao clicar em qualquer lugar fora dele. */
.aev-menu-backdrop { position: fixed; inset: 0; z-index: 20; background: transparent; }

.aev-vazio { padding: 44px 24px; text-align: center; }
.aev-paginacao { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; flex-wrap: wrap; gap: 10px; }

/* Modal de ação (motivo) reusa .rgc-modal-overlay/.rgc-modal do home.css. */
.aev-modal-motivo { width: 100%; min-height: 74px; margin-top: 8px; resize: vertical; }

/* ── Triagem de denúncias (Pages/AdminDenuncias.razor) — reusa .aev-wrap/.aev-head/.aev-chip/etc. ── */
.den-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  border-bottom: 1px solid rgba(132, 153, 183, 0.10); cursor: pointer; transition: background .12s;
}
.den-row:hover { background: #faf7ee; }
.den-ico { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.den-ico.evento { background: var(--color-lavender-light); }
.den-ico.usuaria { background: var(--color-orange-light); }
.den-row-main { flex: 1; min-width: 0; }
.den-alvo { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--color-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.den-sub { font-size: 12px; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.den-print { max-width: 100%; max-height: 280px; border-radius: 12px; margin-top: 8px; display: block; }
.den-campo { margin-top: 12px; }
.den-campo-lbl { font-size: 11px; font-weight: 700; color: var(--color-text-muted); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 3px; }
.den-campo-val { font-size: 14px; color: var(--color-text); line-height: 1.5; }
.den-link { color: var(--color-orange); font-weight: 600; cursor: pointer; text-decoration: underline; }
.den-link:hover { color: #d45800; }
@media (max-width: 820px) { .den-hide-mobile { display: none; } }

/* ── Mobile: tabela vira cards ── */
@media (max-width: 820px) {
  .aev-wrap { padding: 20px 16px 40px; }
  .aev-resumo { grid-template-columns: repeat(2, 1fr); }
  .aev-titulo { font-size: 24px; }
  .aev-busca { max-width: none; margin-left: 0; }
  .aev-row.head { display: none; }
  .aev-row { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 16px; }
  .aev-ev { grid-column: 1 / -1; }
  .aev-col-data, .aev-col-insc, .aev-col-preco { display: none; }   /* enxuga no celular */
  .aev-tags { flex-direction: row; grid-column: 1; }
  .aev-acoes { grid-column: 2; }
}
