/* Eventos e campeonatos (migração 013) — estilo AgoFlow integrado ao sistema visual do Tatame */
.ev-top-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ev-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ev-bar-tools { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 14px 0 10px; }
.ev-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ev-filters .search { flex: 1 1 210px; min-width: 0; }
.ev-filters select.input { flex: 0 1 175px; min-width: 135px; }

.ev-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 12px; }
.ev-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s; min-width: 0;
}
.ev-card:hover { border-color: var(--line-2); }
.ev-card.cancelled { opacity: .68; }
.ev-card-link { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.ev-card-top { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.ev-date-pill {
  flex: 0 0 50px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line);
  padding: 6px 4px; text-align: center; line-height: 1.1;
}
.ev-date-pill b { display: block; font-size: 18px; font-weight: 700; color: var(--text); }
.ev-date-pill span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 2px; }
.ev-card-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 15px; line-height: 1.25; }
.ev-card-meta { margin-top: 4px; line-height: 1.4; }
.ev-card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ev-card-acts { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }

.ev-occ { display: flex; flex-direction: column; gap: 5px; }
.ev-occ-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; }
.ev-occ-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.ev-occ-bar > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .2s; }
.ev-occ-bar > i.warn { background: var(--warn); }
.ev-occ-bar > i.bad { background: var(--bad); }

.ev-hero {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px;
}
.ev-hero-top { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.ev-hero-id { display: flex; gap: 12px; align-items: flex-start; min-width: 0; flex: 1 1 240px; }
.ev-hero-title { font-size: 20px; font-weight: 700; margin: 0; line-height: 1.2; }
.ev-hero-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ev-cancel-box {
  background: rgba(232, 84, 84, .1); border: 1px solid rgba(232, 84, 84, .35);
  border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--text);
}

.ev-status-draft { background: var(--surface-2); color: var(--muted); }
.ev-status-published { background: rgba(61, 190, 139, .14); color: var(--good); border-color: rgba(61, 190, 139, .35); }
.ev-status-closed { background: var(--accent-soft); color: var(--accent-fg); border-color: var(--accent-line); }
.ev-status-cancelled { background: rgba(232, 84, 84, .14); color: var(--bad); border-color: rgba(232, 84, 84, .35); }

.ev-part-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 11px 12px;
}
.ev-part-row.off { opacity: .65; }
.ev-part-main { flex: 1 1 180px; min-width: 0; }
.ev-part-name { font-weight: 600; font-size: 14px; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ev-part-name:hover { text-decoration: underline; }
.ev-part-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ev-chk-btn {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--muted); padding: 6px 11px; font-size: 12px; font-weight: 600;
  cursor: pointer; min-height: 34px; transition: all .15s;
}
.ev-chk-btn.on { background: rgba(61, 190, 139, .16); border-color: rgba(61, 190, 139, .5); color: var(--good); }
.ev-seed { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }

.ev-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.ev-cat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 13px; display: flex; flex-direction: column; gap: 9px; min-width: 0;
}
.ev-cat-crit { display: flex; gap: 6px; flex-wrap: wrap; }

.ev-podium-group { margin-bottom: 16px; }
.ev-podium-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ev-podium-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 12px; display: flex; align-items: center; gap: 10px; min-width: 0;
}
.ev-podium-card.p1 { border-color: rgba(245, 196, 81, .55); background: linear-gradient(135deg, rgba(245, 196, 81, .11), transparent 65%); }
.ev-podium-card.p2 { border-color: rgba(192, 200, 214, .45); background: linear-gradient(135deg, rgba(192, 200, 214, .09), transparent 65%); }
.ev-podium-card.p3 { border-color: rgba(212, 136, 84, .48); background: linear-gradient(135deg, rgba(212, 136, 84, .09), transparent 65%); }
.ev-medal {
  flex: 0 0 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; background: var(--surface-2); color: var(--text);
}
.ev-medal.p1 { background: rgba(245, 196, 81, .22); color: #f5c451; }
.ev-medal.p2 { background: rgba(192, 200, 214, .2); color: #d6dde8; }
.ev-medal.p3 { background: rgba(212, 136, 84, .22); color: #e29b67; }

.ev-medals-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.ev-medal-stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 10px 8px; text-align: center;
}
.ev-medal-stat b { display: block; font-size: 20px; font-weight: 700; }
.ev-medal-stat span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

.ev-timeline { display: flex; flex-direction: column; gap: 8px; }
.ev-tl-item { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); }
.ev-tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 5px; flex: 0 0 8px; }
.ev-tl-dot.cancelled { background: var(--bad); }
.ev-tl-dot.published { background: var(--good); }

.ev-entry { margin-bottom: 12px; text-decoration: none; color: inherit; }
.ev-belt-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ev-belt-opt {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--surface-2); font-size: 12px; cursor: pointer;
}
.ev-belt-opt input { margin: 0; }

@media (max-width: 720px) {
  .ev-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-cards, .ev-cat-grid, .ev-podium-list { grid-template-columns: minmax(0, 1fr); }
  .ev-medals-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-filters select.input { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .ev-part-acts { width: 100%; justify-content: flex-start; }
  .ev-hero-acts { width: 100%; }
}
