/* Player Stats Card Enhancements */
.stats-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  height: 100%;
  position: relative;
  border-top: 3px solid #3498db;
}

.stats-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%233498db' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.stats-card-title {
  background: linear-gradient(145deg, #1a5276, #3498db);
  color: #fff;
  padding: 14px 18px;
  font-size: 1.2rem;
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
}

.stats-card-title i {
  margin-right: 6px;
  font-size: 1.1rem;
  opacity: 0.9;
  position: relative;
  top: -1px;
}

.stats-list {
  padding: 10px 0;
}

.stats-item {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  transition: background-color 0.2s;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.stats-item:last-child {
  border-bottom: none;
}

.stats-item:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

.player-rank {
  min-width: 28px;
  height: 28px;
  background: #f8f9fa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #1a5276;
  font-size: 0.9rem;
  margin-right: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.stats-item:nth-child(1) .player-rank {
  background: linear-gradient(145deg, #f4d03f, #f39c12);
  color: #fff;
  border: none;
  box-shadow: 0 2px 5px rgba(243, 156, 18, 0.3);
}

.stats-item:nth-child(2) .player-rank {
  background: linear-gradient(145deg, #bdc3c7, #95a5a6);
  color: #fff;
  border: none;
  box-shadow: 0 2px 5px rgba(149, 165, 166, 0.3);
}

.stats-item:nth-child(3) .player-rank {
  background: linear-gradient(145deg, #d35400, #e67e22);
  color: #fff;
  border: none;
  box-shadow: 0 2px 5px rgba(230, 126, 34, 0.3);
}

.player-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.player-image {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.player-details {
  display: flex;
  flex-direction: column;
}

.player-name {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.player-team {
  font-size: 0.8rem;
  color: #7f8c8d;
}

.stats-value {
  font-weight: 700;
  font-size: 1.2rem;
  color: #3498db;
  min-width: 35px;
  text-align: center;
}

.btn-view-all {
  display: block;
  text-align: center;
  padding: 10px;
  background: #f8f9fa;
  color: #3498db;
  text-decoration: none;
  margin: 10px 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid rgba(52, 152, 219, 0.2);
}

.btn-view-all:hover {
  background: #3498db;
  color: #fff;
}

/* For the top assists section */
.stats-card:nth-of-type(2) {
  border-top-color: #27ae60;
}

.stats-card:nth-of-type(2) .stats-card-title {
  background: linear-gradient(145deg, #196f3d, #27ae60);
}

.stats-card:nth-of-type(2) .stats-value {
  color: #27ae60;
}

.stats-card:nth-of-type(2) .btn-view-all {
  color: #27ae60;
  border-color: rgba(39, 174, 96, 0.2);
}

.stats-card:nth-of-type(2) .btn-view-all:hover {
  background: #27ae60;
  color: #fff;
}

.stats-card:nth-of-type(2) .stats-item:hover {
  background-color: rgba(39, 174, 96, 0.05);
}

.stats-card:nth-of-type(2) .player-rank {
  color: #196f3d;
}

/* For the clean sheets section (3rd card) */
.stats-card:nth-of-type(3) {
  border-top-color: #8e44ad;
}

.stats-card:nth-of-type(3) .stats-card-title {
  background: linear-gradient(145deg, #6c3483, #8e44ad);
}

.stats-card:nth-of-type(3) .stats-value {
  color: #8e44ad;
}

.stats-card:nth-of-type(3) .btn-view-all {
  color: #8e44ad;
  border-color: rgba(142, 68, 173, 0.2);
}

.stats-card:nth-of-type(3) .btn-view-all:hover {
  background: #8e44ad;
  color: #fff;
}

.stats-card:nth-of-type(3) .stats-item:hover {
  background-color: rgba(142, 68, 173, 0.05);
}

.stats-card:nth-of-type(3) .player-rank {
  color: #6c3483;
}

/* For the suspended players section (4th card) */
.stats-card:nth-of-type(4) {
  border-top-color: #e74c3c;
}

.stats-card:nth-of-type(4) .stats-card-title {
  background: linear-gradient(145deg, #c0392b, #e74c3c);
}

.stats-card:nth-of-type(4) .stats-value {
  color: #e74c3c;
}

.stats-card:nth-of-type(4) .btn-view-all {
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.2);
}

.stats-card:nth-of-type(4) .btn-view-all:hover {
  background: #e74c3c;
  color: #fff;
}

.stats-card:nth-of-type(4) .stats-item:hover {
  background-color: rgba(231, 76, 60, 0.05);
}

.stats-card:nth-of-type(4) .player-rank {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.stats-card:nth-of-type(4) .player-rank .fas {
  font-size: 12px;
}

.stats-card:nth-of-type(4) .stats-value .badge {
  font-size: 0.75rem;
  padding: 5px 10px;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .player-name {
    font-size: 0.85rem;
  }

  .player-team {
    font-size: 0.75rem;
  }

  .player-image {
    width: 36px;
    height: 36px;
  }

  .stats-value {
    font-size: 1rem;
  }

  .stats-card-title {
    font-size: 1.1rem;
    padding: 12px 15px;
  }
}
