/* Track Records - Sophisticated Minimal Design */

.section_track-records {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url('/attached_assets/Leadeerboard_1760018046580.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: white;
}

.section_track-records .text-style-tagline,
.section_track-records .heading-style-h3,
.section_track-records h2 {
  color: white;
}

/* Podium Container */
.podium-container {
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  border-radius: 24px 24px 0 0;
  padding: 2.5rem 1.5rem 3rem;
  margin-bottom: 0;
}

.podium-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Podium Positions */
.podium-position {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.podium-first {
  order: 2;
  margin-bottom: 20px;
}

.podium-second {
  order: 1;
  margin-bottom: 0;
}

.podium-third {
  order: 3;
  margin-bottom: -10px;
}

/* Crown for 1st place */
.podium-crown {
  font-size: 2.5rem;
  position: absolute;
  top: -40px;
  animation: floatCrown 2s ease-in-out infinite;
}

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

/* Avatar */
.podium-avatar {
  position: relative;
  margin-bottom: 0.75rem;
}

.podium-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  padding: 12px;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.podium-first .podium-avatar img {
  width: 100px;
  height: 100px;
  padding: 15px;
}

/* Medal Badge */
.podium-medal {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.medal-gold {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

.medal-silver {
  background: linear-gradient(135deg, #C0C0C0 0%, #A8A8A8 100%);
}

.medal-bronze {
  background: linear-gradient(135deg, #CD7F32 0%, #B8722C 100%);
}

/* Podium Text */
.podium-name {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  text-align: center;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-first .podium-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.podium-time {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.podium-first .podium-time {
  font-size: 1rem;
  font-weight: 700;
}

/* Leaderboard Columns */
.leaderboard-columns {
  background: white;
  border-radius: 0 0 24px 24px;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.leaderboard-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Leaderboard Row */
.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 12px;
  transition: all 0.2s ease;
  background: #f8f9fa;
}

.leaderboard-row:hover {
  background: #e9ecef;
  transform: translateX(2px);
}

/* Rank Number */
.leaderboard-rank {
  font-weight: 700;
  font-size: 1rem;
  color: #6c757d;
  min-width: 30px;
  text-align: center;
}

/* Avatar in List */
.leaderboard-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  padding: 6px;
  border: 2px solid #e9ecef;
  flex-shrink: 0;
}

.leaderboard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Info */
.leaderboard-info {
  flex: 1;
  min-width: 0;
}

.leaderboard-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #212529;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 2px;
}

.leaderboard-time {
  font-size: 0.8rem;
  color: #6c757d;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
}

/* Badge Indicators */
.leaderboard-badges {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.list-badge {
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.list-badge-youth {
  background: #10B981;
  color: white;
}

.list-badge-rookie {
  background: #3B82F6;
  color: white;
}

.list-badge-85 {
  background: #8B5CF6;
  color: white;
}

.list-badge-2stroke {
  background: #F59E0B;
  color: white;
}

/* Trend Indicators */
.leaderboard-trend {
  font-size: 0.75rem;
  color: #10B981;
}

.trend-up {
  color: #10B981;
}

.trend-down {
  color: #EF4444;
}

/* Empty State */
.leaderboard-empty {
  padding: 1.5rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
  font-style: italic;
}

/* Mobile Responsiveness */
@media screen and (max-width: 767px) {
  .podium-container {
    padding: 2rem 1rem 2.5rem;
  }
  
  .podium-wrapper {
    gap: 1rem;
  }
  
  .podium-avatar img {
    width: 60px;
    height: 60px;
    padding: 8px;
  }
  
  .podium-first .podium-avatar img {
    width: 75px;
    height: 75px;
    padding: 10px;
  }
  
  .podium-name {
    font-size: 0.85rem;
    max-width: 90px;
  }
  
  .podium-first .podium-name {
    font-size: 0.95rem;
  }
  
  .podium-time {
    font-size: 0.75rem;
  }
  
  .leaderboard-columns {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }
  
  .leaderboard-name {
    font-size: 0.85rem;
  }
  
  .leaderboard-time {
    font-size: 0.75rem;
  }
}

@media screen and (max-width: 479px) {
  .podium-medal {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .leaderboard-avatar {
    width: 35px;
    height: 35px;
  }
  
  .list-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
  }
}

/* Fade in animation */
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}