/* TOP 3 LEADERBOARD CARDS */
@font-face {
    font-family: 'Baloo 2';
    src: url("../fonts/Baloo2-VariableFont_wght.ttf") format('truetype');
    font-weight: 400 800;
    font-display: swap;
}
@font-face {
    font-family: 'Itim';
    src: url("../fonts/Itim-Regular.ttf") format('truetype');
    font-weight: 100;
    font-display: normal;
}
.top3-hero-section {
  width: 100%;
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(26, 30, 58, 0.95) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.top3-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #16f1d3, transparent);
}

.top3-hero-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.top3-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 20px;
}

.top3-title {
  font-family: 'Baloo 2', sans-serif;
  font-size: 3.0rem;
  font-weight: 700;
  color: #e6f1fb;
  text-shadow: 0 0 20px rgba(22, 241, 211, 0.5);
  margin: 0;
}

/* Cards Grid */
.top3-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 10px;
}

/* Individual Card */
.top3-card {
  position: relative;
  background: rgba(26, 30, 58, 0.8);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.top3-card:hover {
  transform: translateY(-10px);
}

/* Glowing border effect */
.top3-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 3px;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Card Inner Content */
.top3-card-inner {
  position: relative;
  z-index: 1;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

/* Medal */
.top3-medal {
  font-size: 4rem;
  line-height: 1;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.4));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Photo Wrapper */
.top3-photo-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, rgba(22, 241, 211, 0.4), rgba(22, 241, 211, 0.1));
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(22, 241, 211, 0.2);
}

.top3-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(10, 14, 39, 0.95);
}

/* Player Name */
.top3-name {
  font-family: 'Baloo 2', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #e6f1fb;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  word-break: break-word;
}

/* Points */
.top3-points {
  font-family: 'Itim', cursive, sans-serif;
  font-size: 3rem;
  font-weight: 800;
  text-shadow: 0 0 20px currentColor;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4));
}

/* No Data Message */
.no-data-message {
  text-align: center;
  padding: 60px 20px;
  color: #a6d5cf;
  font-size: 1.125rem;
  opacity: 0.7;
}

/* MOBILE RESPONSIVE */
@media (max-width: 991.98px) {
  .top3-hero-section {
    padding: 60px 0;
  }

  .top3-title {
    font-size: 2rem;
  }

  .top3-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .top3-card-inner {
    padding: 30px 20px;
    gap: 15px;
  }

  .top3-medal {
    font-size: 3rem;
  }

  .top3-photo-wrapper {
    width: 100px;
    height: 100px;
  }

  .top3-name {
    font-size: 1.125rem;
  }

  .top3-points {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  /* STACK VERTICALLY ON MOBILE */
  .top3-cards-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    max-width: 400px;
    margin: 0 auto 40px;
  }

  .top3-card-inner {
    padding: 50px 30px;
    gap: 25px;
  }

  .top3-medal {
    font-size: 5rem;
  }

  .top3-photo-wrapper {
    width: 160px;
    height: 160px;
  }

  .top3-name {
    font-size: 2.0rem;
  }

  .top3-points {
    font-size: 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .top3-hero-section {
    padding: 50px 0;
  }

  .top3-title {
    font-size: 1.75rem;
  }

  .top3-header {
    margin-bottom: 40px;
  }

  .top3-card-inner {
    padding: 40px 25px;
  }

  .top3-medal {
    font-size: 4.5rem;
  }

  .top3-photo-wrapper {
    width: 140px;
    height: 140px;
  }

  .top3-name {
    font-size: 2.0rem;
  }

  .top3-points {
    font-size: 2.5rem;
  }
}

/* RANK-SPECIFIC ENHANCEMENTS */
.top3-card[data-rank="1"]:hover {
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.4);
}

.top3-card[data-rank="2"]:hover {
  box-shadow: 0 20px 60px rgba(192, 192, 192, 0.4);
}

.top3-card[data-rank="3"]:hover {
  box-shadow: 0 20px 60px rgba(205, 127, 50, 0.4);
}

