/* ==========================================================================
   TELA DE RECORDES & HALL DA FAMA — BCLWeb (UEFA / EA FC Premium Theme)
   ========================================================================== */

.recordes-wrap {
  padding: 24px 20px 80px 20px;
  max-width: 1240px;
  margin: 0 auto;
  color: #f1f5f9;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header Principal */
.recordes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.recordes-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.recordes-header-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(234, 179, 8, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.recordes-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.recordes-subtitle {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-top: 4px;
  font-weight: 500;
}

.recordes-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000000;
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.recordes-export-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.recordes-export-btn:active {
  transform: translateY(0);
}

/* Navegação por Abas (Tabs) */
.recordes-nav-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 28px;
  scrollbar-width: thin;
}

.recordes-tab-btn {
  padding: 10px 20px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recordes-tab-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.recordes-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.2), rgba(0, 245, 155, 0.15));
  border-color: #00d2ff;
  color: #00f59b;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.25);
}

.recordes-badge-count {
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 900;
}

/* ==========================================================================
   SEÇÃO 1: RECORDES EM JOGO (BATÍVEIS HOJE)
   ========================================================================== */

.bativeis-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(245, 158, 11, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 18px;
  padding: 18px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.bativeis-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bativeis-pulse-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 14px #ef4444;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.bativeis-banner-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
}

.bativeis-banner-subtitle {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* Grid de Cards de Duelo */
.duelos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.duelo-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(30, 41, 59, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.duelo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 210, 255, 0.4);
}

.duelo-card-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25), transparent 70%);
  pointer-events: none;
}

.duelo-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.duelo-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.duelo-badge.alta {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.duelo-badge.maxima {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.duelo-badge.media {
  background: rgba(0, 210, 255, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(0, 210, 255, 0.4);
}

.duelo-categoria {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
}

.duelo-titulo {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  line-height: 1.35;
}

/* Versus Arena */
.duelo-versus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.duelo-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 42%;
}

.duelo-avatar-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
}

.duelo-avatar-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.duelo-avatar-fallback {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #00d2ff;
}

.duelo-player.lider .duelo-avatar-img,
.duelo-player.lider .duelo-avatar-fallback {
  border-color: #fbbf24;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.4);
}

.duelo-player.desafiante .duelo-avatar-img,
.duelo-player.desafiante .duelo-avatar-fallback {
  border-color: #00f59b;
  box-shadow: 0 0 14px rgba(0, 245, 155, 0.4);
}

.duelo-crown-icon {
  position: absolute;
  top: -8px;
  right: -4px;
  font-size: 1rem;
}

.duelo-player-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.duelo-player-val {
  font-size: 1.35rem;
  font-weight: 900;
  color: #00f59b;
  margin-top: 2px;
}

.duelo-player.lider .duelo-player-val {
  color: #fbbf24;
}

.duelo-player-label {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
}

.duelo-vs-badge {
  font-weight: 900;
  font-size: 0.85rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 10px;
  border-radius: 12px;
}

.duelo-condicao {
  background: rgba(0, 210, 255, 0.06);
  border-left: 3px solid #00d2ff;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.45;
}

/* ==========================================================================
   SEÇÃO 2: HALL DA FAMA & TABELAS
   ========================================================================== */

.hall-subnav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 20px;
  padding-bottom: 8px;
}

.hall-pill-btn {
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.hall-pill-btn.active {
  background: #3b82f6;
  border-color: #60a5fa;
  color: #ffffff;
}

.hall-table-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hall-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.hall-table th {
  background: rgba(30, 41, 59, 0.8);
  padding: 14px 18px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hall-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  color: #e2e8f0;
}

.hall-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.hall-pos {
  font-weight: 900;
  font-size: 1rem;
  color: #94a3b8;
  width: 48px;
}

.hall-pos.pos-1 { color: #fbbf24; }
.hall-pos.pos-2 { color: #e2e8f0; }
.hall-pos.pos-3 { color: #f97316; }

.hall-player-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hall-thumb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hall-thumb-fallback {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #00d2ff;
  font-size: 0.85rem;
}

.hall-player-name {
  font-weight: 800;
  color: #ffffff;
}

.hall-player-pos {
  font-size: 0.75rem;
  color: #64748b;
}

.hall-val-highlight {
  font-weight: 900;
  font-size: 1.1rem;
  color: #00f59b;
}

/* ==========================================================================
   SEÇÃO 3: NOITES LENDÁRIAS (SINGLE NIGHT)
   ========================================================================== */

.noites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.noite-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.noite-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.noite-val-badge {
  background: linear-gradient(135deg, #00d2ff, #00f59b);
  color: #000000;
  font-weight: 900;
  font-size: 1.3rem;
  padding: 8px 14px;
  border-radius: 12px;
  min-width: 48px;
  text-align: center;
}

.noite-card-name {
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
}

.noite-card-date {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 2px;
}

/* ==========================================================================
   SEÇÃO 4: RADAR DE METAS (MILESTONES)
   ========================================================================== */

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.milestone-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  transition: transform 0.2s;
}

.milestone-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 245, 155, 0.35);
}

.milestone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.milestone-player-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.milestone-badge-resta {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
}

.milestone-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0;
}

.milestone-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d2ff, #00f59b);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.milestone-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.35;
}

/* ==========================================================================
   MODAL DE EXPORTAÇÃO DA IMAGEM
   ========================================================================== */

.recordes-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.recordes-modal {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.recordes-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.recordes-modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.recordes-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
}

.recordes-modal-body {
  padding: 20px;
  overflow-y: auto;
  text-align: center;
}

.recordes-modal-preview {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.recordes-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.recordes-btn-primary {
  padding: 12px 24px;
  background: linear-gradient(135deg, #00d2ff, #00a8ff);
  color: #000;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recordes-btn-secondary {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
  .recordes-wrap {
    padding: 16px 12px 90px 12px;
  }
  .duelos-grid {
    grid-template-columns: 1fr;
  }
  .recordes-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .recordes-export-btn {
    width: 100%;
    justify-content: center;
  }
  .hall-table th, .hall-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}
