/* Pagina: portal/aluno/events.html */

* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, sans-serif; }

.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: 268px; display: flex; flex-direction: column;
  overflow-y: auto; z-index: 1050;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; text-decoration: none; color: inherit; }
.sidebar-brand img { width: 40px; height: 40px; border-radius: 12px; object-fit: contain; }
.sidebar-brand h5 { margin: 0; font-weight: 900; }
.sidebar-brand small { opacity: .7; }
.sidebar-menu { flex: 1; padding-bottom: 16px; }
.sidebar-menu a i { width: 22px; text-align: center; }
.sidebar-footer { padding: 14px 18px; font-size: .75rem; opacity: .75; }

.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 1055;
}
.sidebar-overlay.visivel { opacity: 1; pointer-events: auto; }

.main-content { margin-left: 268px; min-height: 100vh; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 22px; position: sticky; top: 0; z-index: 1040;
}
.page-title { display: flex; align-items: center; gap: 12px; }
.page-title h4 { margin: 0; font-weight: 900; }
.page-title small { opacity: .7; }
#menuButton { display: none; background: none; border: 0; }

.app-content { padding: 24px 20px 90px; }

.filtro-abas { display: flex; gap: 10px; margin-bottom: 18px; }
.aba {
  border: 1px solid var(--aya-borda, rgba(0,0,0,.16));
  background: transparent; color: inherit;
  border-radius: 999px; padding: 8px 18px; font-weight: 800; cursor: pointer;
}
.aba.ativa { background: var(--aya-menu, #90EE90); color: #04220f; border-color: transparent; }

#listaEventos { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin: 0 auto; }

.card-evento {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; align-items: center;
  padding: 16px; border-radius: 18px;
  background: var(--aya-cartao, #fff);
  border: 1px solid var(--aya-borda, rgba(0,0,0,.14));
  box-shadow: var(--aya-sombra, 0 6px 20px rgba(0,0,0,.08));
}
.card-evento.passado { opacity: .72; }

.data-box {
  width: 74px; height: 74px; border-radius: 16px;
  background: var(--aya-menu, #90EE90); color: #04220f;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.data-box b { font-size: 1.5rem; line-height: 1; }
.data-box span { text-transform: uppercase; font-size: .7rem; font-weight: 900; }

.info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.info .chip {
  align-self: flex-start; font-size: .64rem; font-weight: 900; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  background: var(--aya-hover, rgba(0,0,0,.08));
}
.info h3 { margin: 0; font-size: 1.05rem; font-weight: 900; }
.info .meta { margin: 0; font-size: .82rem; opacity: .85; }
.info .desc { margin: 0; font-size: .86rem; opacity: .75; }

.capa { width: 120px; height: 84px; object-fit: cover; border-radius: 12px; }

.estado-vazio {
  text-align: center; padding: 60px 20px;
  border: 2px dashed var(--aya-borda, rgba(0,0,0,.2)); border-radius: 18px;
}
.estado-vazio i { display: block; font-size: 2rem; margin-bottom: 10px; }

@media (max-width: 1023.98px) {
  .main-content { margin-left: 0; }
  #menuButton { display: inline-flex; }
  .capa { display: none; }
  .card-evento { grid-template-columns: 64px 1fr; }
  .data-box { width: 64px; height: 64px; }
}
