/* ═══════════════════════════════════════════════════════════
   ARENA CROSS — V5 STYLES
   Conquistas, Ranking, Feed, Estação Facial
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════ BADGES ═══════════════ */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.badge-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg, #1f1f1f);
  padding: 14px;
  border-radius: 8px;
  transition: transform 0.15s;
}
.badge-card:hover { transform: translateY(-2px); }
.badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.badge-info { flex: 1; min-width: 0; }
.badge-name { font-weight: 700; margin-bottom: 2px; }
.badge-desc { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 4px; }
.badge-meta { font-size: 0.75rem; color: var(--text-muted); }

/* ═══════════════ RANKING ═══════════════ */
.podium {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 0;
  margin-bottom: 20px;
}
.podium-item {
  flex: 1;
  max-width: 180px;
  background: var(--card-bg, #1f1f1f);
  border-radius: 8px 8px 0 0;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  text-align: center;
}
.podium-medal { font-size: 2rem; }
.podium-name { font-size: 0.85rem; font-weight: 600; margin-top: 4px; }
.podium-value { font-size: 0.78rem; color: var(--accent); font-weight: 700; }

.ranking-list { display: flex; flex-direction: column; }
.ranking-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #2a2a2a);
  transition: background 0.1s;
}
.ranking-row:last-child { border-bottom: none; }
.ranking-row:hover { background: rgba(139, 63, 232,0.05); }
.ranking-row.is-me {
  background: rgba(139, 63, 232,0.1);
  border-left: 3px solid var(--accent);
}
.ranking-pos {
  font-family: var(--font-display, sans-serif);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-muted);
  min-width: 32px;
  text-align: center;
}
.ranking-avatar {
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  overflow: hidden;
  flex-shrink: 0;
}
.ranking-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ranking-value { text-align: right; }
.ranking-value strong { font-size: 1.1rem; }
.ranking-value small { display: block; color: var(--text-muted); font-size: 0.75rem; }

/* Toggle switch (aparecer no ranking) */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #444;
  border-radius: 26px;
  transition: 0.3s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}
input:checked + .slider { background-color: var(--accent); }
input:checked + .slider:before { transform: translateX(24px); }

/* ═══════════════ FEED ═══════════════ */
.feed-list { display: flex; flex-direction: column; gap: 10px; }
.feed-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card-bg, #1f1f1f);
  padding: 14px;
  border-radius: 8px;
}
.feed-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.feed-content { flex: 1; min-width: 0; }
.feed-title { font-size: 0.9rem; }
.feed-detail { font-size: 0.82rem; color: var(--text-muted); margin: 4px 0; }
.feed-time { font-size: 0.72rem; color: var(--text-muted); }

/* ═══════════════ ESTAÇÃO FACIAL ═══════════════ */
.checkin-station {
  padding: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.station-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.station-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .station-grid { grid-template-columns: 1fr; }
}
.station-camera {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.station-camera video { width: 100%; height: 100%; object-fit: cover; }
.station-status {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  z-index: 2;
}
.station-result {
  background: var(--card-bg, #1f1f1f);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  text-align: center;
}
.station-placeholder { color: var(--text-muted); }
.station-match h2 { margin: 0; }
.station-match h3 { margin: 0 0 4px; font-size: 1.4rem; }
.station-tools {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.new-badges-list {
  margin-top: 16px;
  padding: 12px;
  background: rgba(139, 63, 232,0.1);
  border-radius: 8px;
  font-size: 0.85rem;
}
.new-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 10px;
  border-radius: 14px;
  margin: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Slots de cadastro facial */
.enroll-slot {
  width: 40px;
  height: 40px;
  border: 2px dashed #555;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #777;
  transition: 0.3s;
}
.enroll-slot.filled {
  background: var(--success, #2ecc71);
  border-color: var(--success, #2ecc71);
  color: #fff;
}
.enroll-slot.filled::after { content: '✓'; }
.enroll-slot.filled { font-size: 0; }
.enroll-slot.filled::after { font-size: 1.2rem; }

/* Manual search */
.manual-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #2a2a2a);
  cursor: pointer;
}
.manual-row:hover { background: rgba(139, 63, 232,0.1); }
