/* ============================================================
   LEADERBOARD STYLING - Dark Theme Design (Mobile First)
   ============================================================ */

.sm-lb {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  border-radius: 1.25rem;
  padding: 2rem 1rem;
  margin: 2rem auto;
  max-width: 75rem;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.sm-lb::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="grad" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,215,0,0.1);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,215,0,0);stop-opacity:0" /></radialGradient></defs><circle cx="50" cy="50" r="50" fill="url(%23grad)" /></svg>') center/cover;
  pointer-events: none;
  z-index: 1;
}

.sm-lb * {
  position: relative;
  z-index: 2;
}

/* Title Styling */
.sm-lb .section-title {
  text-align: center !important;
  color: #FFD700;
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1875rem;
  margin-bottom: 2rem;
  text-shadow: 
    0 0 0.625rem rgba(255, 215, 0, 0.5),
    0 0 1.25rem rgba(255, 215, 0, 0.3),
    0 0 1.875rem rgba(255, 215, 0, 0.2);
}

/* Top 3 Podium - Mobile First */
.sm-lb__podium {
  display: flex;
  flex-direction: row;
  align-items: end;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.sm-lb__podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  flex: 1;
  max-width: 6rem;
}

.sm-lb__podium-item--1st {
  order: 2;
  transform: scale(1.5);
}

.sm-lb__podium-item--2nd {
  order: 1;
}

.sm-lb__podium-item--3rd {
  order: 3;
}

.sm-lb__medal {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  position: relative;

}

.sm-lb__medal--1st {
  background: url('../img/first.png') center/cover;
  border-color: #FFD700;
  
}

.sm-lb__medal--2nd {
  background: url('../img/second.png') center/cover;
  border-color: #C0C0C0;
  
}

.sm-filter{
margin-top: 2rem;
}

.sm-lb__medal--3rd {
  background: url('../img/third.png') center/cover;
  border-color: #CD7F32;

}

.sm-lb__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 0.125rem solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.sm-lb__avatar:hover {
  transform: scale(1.2);
  border-color: rgba(255, 215, 0, 0.8);
  box-shadow: 0 0 1rem rgba(255, 215, 0, 0.5);
}

#page-home .sm-lb__avatar {
  width: 55px;
  height: 55px;
}

.sm-lb__podium-name {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.25rem;
  text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.sm-lb__podium-tickets {
  color: #FFD700;
  font-size: 0.625rem;
  font-weight: 600;
  margin-top: 0.125rem;
}

/* Remaining Players List - Mobile First */
.sm-lb__list {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0.9375rem;
  padding: 1rem;
  backdrop-filter: blur(0.625rem);
}

.sm-lb__row {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-bottom: 0.625rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.625rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.sm-lb__row:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(0.3125rem);
}

.sm-lb__rank {
  color: #FFD700;
  font-size: 1.125rem;
  font-weight: 900;
  width: 2.5rem;
  text-align: center;
  flex-shrink: 0;
}

.sm-lb__user {
  display: flex;
  align-items: center;
  flex: 1;
  margin-left: 0.75rem;
  min-width: 0;
}

.sm-lb__user .sm-lb__avatar {
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.sm-lb__user .username {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sm-lb__tickets {
  color: #FFD700;
  font-size: 0.875rem;
  font-weight: 700;
  text-align: right;
  min-width: 4rem;
  flex-shrink: 0;
}

/* Show More Button - Mobile First */
.sm-lb__show-more {
  text-align: center;
  margin-top: 1.875rem;
}

.sm-lb__show-more .btn {
  background: linear-gradient(135deg, #FF4444 0%, #CC0000 100%);
  border: none;
  color: #fff;
  padding: 0.75rem 1.875rem;
  border-radius: 1.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.0625rem;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.sm-lb__show-more .btn:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.625rem 1.5625rem rgba(255, 68, 68, 0.4);
}

/* Tablet and Desktop Responsive Design */
@media (min-width: 768px) {
  .sm-lb {
    padding: 2.5rem 1.25rem;
    margin: 2.5rem auto;
  }
  
  .sm-lb .section-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
  }
  
  .sm-lb__podium {
    flex-direction: row;
    align-items: end;
    gap: 1.25rem;
    padding: 0 1.25rem;
  }
  
  .sm-lb__podium-item--1st {
    order: 2;
    transform: scale(1.4);
  }
  
  .sm-lb__podium-item--2nd {
    order: 1;
  }
  
  .sm-lb__podium-item--3rd {
    order: 3;
  }
  
  .sm-lb__medal {
    width: 7.5rem;
    height: 7.5rem;
  }
  
  .sm-lb__avatar {
    width: 5rem;
    height: 5rem;
  }
  
  .sm-lb__podium-name {
    font-size: 1.125rem;
  }
  
  .sm-lb__list {
    padding: 1.25rem;
  }
  
  .sm-lb__row {
    padding: 0.9375rem 1.25rem;
  }
  
  .sm-lb__rank {
    font-size: 1.25rem;
    width: 3.75rem;
  }
  
  .sm-lb__user {
    margin-left: 1.25rem;
  }
  
  .sm-lb__user .sm-lb__avatar {
    width: 3.125rem;
    height: 3.125rem;
    margin-right: 0.9375rem;
  }
  
  .sm-lb__user .username {
    font-size: 1rem;
  }
  
  .sm-lb__tickets {
    font-size: 1rem;
    min-width: 7.5rem;
  }
  
  .sm-lb__show-more .btn {
    padding: 0.9375rem 2.1875rem;
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .sm-lb {
    padding: 3.75rem 2.5rem;
  }
  
  .sm-lb .section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
  }
  
  .sm-lb__podium {
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
  }
  
  .sm-lb__medal {
    width: 5rem;
    height: 5rem;
  }
  
  .sm-lb__avatar {
    width: 6rem;
    height: 6rem;
  }
  
  .sm-lb__podium-name {
    font-size: 0.75rem;
  }
  
  .sm-lb__podium-tickets {
    font-size: 0.4rem;
  }
}
