/* Improved layout and spacing for Futevolei ranking system */

/* Main container spacing */
.container.py-4 {
  max-width: 1200px;
}

/* Table cell spacing and alignment */
.jogos-table td {
  vertical-align: middle;
  padding: 0.75rem 0.7rem;
}

/* Position column styling */
.position-column {
  width: 60px;
  position: relative;
  font-weight: 500;
}

.position-number {
  font-size: 1rem;
  font-weight: 600;
  color: #34495e;
}

/* Trend column styling */
.trend-column {
  width: 70px;
}

/* Ensure player name gets enough space */
.col-player {
  min-width: 150px;
}

/* Emphasize points column */
.points-column {
  font-size: 1.05rem;
  font-weight: 600;
  position: relative;
  background-color: rgba(52, 152, 219, 0.05);
  width: 90px;
}

.points-column strong {
  position: relative;
  z-index: 1;
}

.points-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, 
                rgba(52, 152, 219, 0.01) 0%, 
                rgba(52, 152, 219, 0.05) 100%);
  z-index: 0;
}

/* Alternating row background for better readability */
.compact-row:nth-child(even) {
  background-color: rgba(236, 240, 241, 0.5);
}

/* Top positions highlighting */
.compact-row:nth-child(1) {
  background-color: rgba(255, 215, 0, 0.05);
}

.compact-row:nth-child(2) {
  background-color: rgba(192, 192, 192, 0.05);
}

.compact-row:nth-child(3) {
  background-color: rgba(205, 127, 50, 0.05);
}

/* History column dots */
.jogos-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  padding: 3px;
}

.jogo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
}

.jogo-dot.win {
  background: linear-gradient(145deg, #27ae60, #2ecc71);
  box-shadow: 0 2px 3px rgba(46, 204, 113, 0.3);
}

.jogo-dot.loss {
  background: linear-gradient(145deg, #c0392b, #e74c3c);
  box-shadow: 0 2px 3px rgba(231, 76, 60, 0.3);
}

/* Table header styling - Gradiente único */
.jogos-table thead {
  background: linear-gradient(135deg, #2c3e50, #3497da);
  background-image: linear-gradient(135deg, #2c3e50, #3497da);
}

.jogos-table thead th {
  font-size: 0.8rem;
  padding: 0.75rem 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.95);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Legends section styling */
.legenda-card {
  border-radius: 8px;
  background-color: white;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
  margin-top: 25px;
}

/* Statistics Cards Styling */
.stats-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.stat-icon.bg-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.bg-success {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-icon.bg-warning {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon.bg-info {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stats-card h4 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0;
  color: #2c3e50;
}

.stats-card .small {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Avatar inicial styling */
.avatar-inicial {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .jogos-table th i, 
  .jogos-table th span {
    display: block;
    margin: 0 auto 3px auto;
    text-align: center;
  }
  
  .jogos-table th {
    text-align: center;
    font-size: 0.7rem;
    padding: 0.6rem 0.4rem;
  }
  
  /* Removido: display: none das colunas para que apareçam no mobile */
  
  .col-player {
    min-width: 100px;
  }
  
  .col-history {
    min-width: 100px;
  }
  
  .position-column {
    width: 40px;
  }
  
  .trend-column {
    width: 45px;
  }
  
  .jogo-dot {
    width: 8px;
    height: 8px;
  }
  
  .points-column {
    width: 60px;
  }

  .stats-card h4 {
    font-size: 1.5rem;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
