@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Roboto:wght(300;400;500;700&family=Poppins:wght@300;400;500;600;700&display=swap");
@font-face {
  font-family: "Signord";
  src: url("../assets/fonts/signord.otf") format("opentype");
  font-weight: normal;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ffffff;
  --secondary-color: #cccccc;
  --accent-color: #7b7777;
  --background-color: #0a0a0a;
  --background-light: #1a1a1a;
  --background-lighter: #2a2a2a;
  --gradient-start: rgba(10, 10, 10, 0.9);
  --gradient-end: rgba(10, 10, 10, 0.7);
  --gold: #ffd700;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
  --table-border: rgba(255, 255, 255, 0.1);
  --table-hover: rgba(255, 255, 255, 0.03);
}

/* Page Header Styles */
.page-header {
  background-color: var(--background-color);
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(10, 10, 12, 0.7) 0%,
    rgb(10, 10, 12) 100%
  );
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-header h1 {
  font-family: "Signord", sans-serif;
  font-size: clamp(1.8rem, 4vw, 4rem);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.page-header p {
  font-family: "Roboto", sans-serif;
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.refresh-info {
  font-family: "Roboto", sans-serif;
  color: var(--accent-color);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.refresh-info i {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Button */
.btn {
  display: inline-block;
  background-color: #00aaff;
  color: var(--primary-color);
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}

.btn:hover {
  background-color: #0080c0;
  transform: translateY(-3px);
}

/* ===== INDEX.HTML LEADERBOARD PREVIEW STYLES ===== */

/* Leaderboard Sections */
.leaderboard-preview {
  background-color: rgb(10, 10, 12);
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.leaderboard-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(10, 10, 12, 0.7) 0%,
    rgb(10, 10, 12) 100%
  );
  z-index: 1;
}

.leaderboard-preview .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Constrain table width and center it */
.leaderboard-container {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

/* Enhanced Table Styling for Index.html */
.leaderboard-table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.leaderboard-table thead {
  position: relative;
}

.leaderboard-table thead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0)
  );
}

.leaderboard-table th {
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--secondary-color);
  font-family: "Signord", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 18px 20px;
  text-align: left;
  position: relative;
}

.leaderboard-table th:first-child {
  width: 20%;
  text-align: center;
}

.leaderboard-table th:last-child {
  width: 20%;
  text-align: right;
}

.leaderboard-table td {
  padding: 16px 20px;
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  color: var(--primary-color);
  border-bottom: 1px solid var(--table-border);
  transition: all 0.3s ease;
}

.leaderboard-table td:first-child {
  text-align: center;
  font-weight: 700;
}

.leaderboard-table td:last-child {
  text-align: right;
  font-weight: 700;
}

/* Top 3 Rank Styling for Index.html */
.leaderboard-table tr:nth-child(1) td {
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.05),
    rgba(255, 215, 0, 0.01)
  );
  border-left: 3px solid var(--gold);
}

.leaderboard-table tr:nth-child(2) td {
  background: linear-gradient(
    90deg,
    rgba(192, 192, 192, 0.05),
    rgba(192, 192, 192, 0.01)
  );
  border-left: 3px solid var(--silver);
}

.leaderboard-table tr:nth-child(3) td {
  background: linear-gradient(
    90deg,
    rgba(205, 127, 50, 0.05),
    rgba(205, 127, 50, 0.01)
  );
  border-left: 3px solid var(--bronze);
}

/* Rank Badges for Index.html */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
}

.gold-badge {
  background: linear-gradient(135deg, #ffd700, #ffb700);
  color: #000;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.silver-badge {
  background: linear-gradient(135deg, #e0e0e0, #c0c0c0);
  color: #000;
  box-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.bronze-badge {
  background: linear-gradient(135deg, #cd7f32, #a05a2c);
  color: #000;
  box-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

/* Hover Effects for Index.html */
.leaderboard-table tbody tr {
  position: relative;
  transition: all 0.3s ease;
}

.leaderboard-table tbody tr:hover {
  background-color: var(--table-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.leaderboard-table tbody tr:hover td {
  color: #fff;
}

/* Points Styling for Index.html */
.points-cell {
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
  color: #fff;
  position: relative;
}

.points-cell::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
}

/* View Full Leaderboard Button */
.view-full-leaderboard {
  text-align: center;
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.view-full-leaderboard .btn {
  font-family: "Signord", sans-serif;
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff, #a0a0a0);
  color: #000;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  display: inline-block;
}

.view-full-leaderboard .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.5s;
}

.view-full-leaderboard .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.view-full-leaderboard .btn:hover::before {
  left: 100%;
}

@keyframes buttonPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  }
}

/* ===== FULL LEADERBOARD PAGE STYLES (leaderboard.html) ===== */

/* Modern Card-Based Leaderboard */
.modern-leaderboard {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Fix the leaderboard header positioning */
.leaderboard-header {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px 15px 0 0;
  padding: 20px 30px;
  margin-bottom: 0;
  position: relative; /* Change from sticky to relative */
  z-index: 10;
}

.leaderboard-header-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.header-rank {
  font-family: "Signord", sans-serif;
  font-size: 0.9rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

.header-participant {
  font-family: "Signord", sans-serif;
  font-size: 0.9rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

.header-points {
  font-family: "Signord", sans-serif;
  font-size: 0.9rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

/* Add some space between header and first item */
.leaderboard-list {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: none;
  border-radius: 0 0 15px 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-top: 0; /* Ensure no gap between header and list */
}

/* Ensure proper z-index for items */
.leaderboard-item {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 5;
}

.leaderboard-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.02),
    transparent
  );
  transition: 0.5s;
}

.leaderboard-item:hover::before {
  left: 100%;
}

.leaderboard-item:hover {
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.leaderboard-item:last-child {
  border-bottom: none;
}

/* Rank Section */
.rank-section {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.rank-number {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  min-width: 40px;
  text-align: center;
}

.rank-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  position: relative;
}

.rank-medal.gold {
  background: linear-gradient(135deg, #ffd700, #ffb700);
  color: #000;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  animation: goldGlow 2s ease-in-out infinite alternate;
}

.rank-medal.silver {
  background: linear-gradient(135deg, #e0e0e0, #c0c0c0);
  color: #000;
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.4);
  animation: silverGlow 2s ease-in-out infinite alternate;
}

.rank-medal.bronze {
  background: linear-gradient(135deg, #cd7f32, #a05a2c);
  color: #000;
  box-shadow: 0 0 20px rgba(205, 127, 50, 0.4);
  animation: bronzeGlow 2s ease-in-out infinite alternate;
}

@keyframes goldGlow {
  0% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  }
  100% {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
  }
}

@keyframes silverGlow {
  0% {
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.4);
  }
  100% {
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.6);
  }
}

@keyframes bronzeGlow {
  0% {
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.4);
  }
  100% {
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.6);
  }
}

/* Participant Section */
.participant-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  text-align: center;
}

.participant-info {
  flex: 1;
  text-align: center;
}

.participant-name {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 2px;
  transition: all 0.3s ease;
  text-align: center;
}

.participant-details {
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  color: var(--accent-color);
  font-weight: 300;
}

/* Points Section */
.points-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.points-value {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2px;
  text-align: center;
  width: 100%;
}

.points-label {
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
  text-align: center;
  width: 100%;
}

/* Special styling for top 3 */
.leaderboard-item.top-1 {
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.03),
    rgba(255, 215, 0, 0.01)
  );
  border-left: 4px solid var(--gold);
}

.leaderboard-item.top-2 {
  background: linear-gradient(
    90deg,
    rgba(192, 192, 192, 0.03),
    rgba(192, 192, 192, 0.01)
  );
  border-left: 4px solid var(--silver);
}

.leaderboard-item.top-3 {
  background: linear-gradient(
    90deg,
    rgba(205, 127, 50, 0.03),
    rgba(205, 127, 50, 0.01)
  );
  border-left: 4px solid var(--bronze);
}

/* Vector Background Styles */
.vector-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.vector-shape {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  animation: float 20s linear infinite;
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 5%;
  animation-delay: 0s;
  border-color: rgba(255, 255, 255, 0.03);
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation-delay: -5s;
  border-color: rgba(255, 255, 255, 0.04);
}

.shape-3 {
  width: 100px;
  height: 100px;
  top: 30%;
  right: 20%;
  animation-delay: -10s;
  border-color: rgba(255, 255, 255, 0.02);
}

.shape-4 {
  width: 250px;
  height: 250px;
  bottom: 20%;
  left: 15%;
  animation-delay: -15s;
  border-color: rgba(255, 255, 255, 0.03);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-5 {
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  animation-delay: -8s;
  border-color: rgba(255, 255, 255, 0.025);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

/* Leaderboard Section Vector Background */
.leaderboard-vector-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border-radius: 50%;
  animation: floatSlow 25s ease-in-out infinite;
}

.element-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -10%;
  animation-delay: 0s;
  border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
}

.element-2 {
  width: 200px;
  height: 200px;
  top: 50%;
  right: -5%;
  animation-delay: -10s;
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
}

.element-3 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 20%;
  animation-delay: -20s;
  border-radius: 59% 41% 52% 48% / 44% 59% 41% 56%;
}

/* Enhanced Responsive styles */
@media (max-width: 1024px) {
  .leaderboard-container {
    max-width: 90%;
  }

  .section-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .leaderboard-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .leaderboard-preview {
    padding: 2rem 1rem;
  }

  .leaderboard-container {
    max-width: 95%;
    padding: 15px;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .vector-shape {
    opacity: 0.3;
    transform: scale(0.7);
  }

  /* Improved mobile adjustments for modern leaderboard */
  .leaderboard-header-content,
  .leaderboard-item {
    grid-template-columns: 50px 1fr 80px;
    gap: 8px;
    padding: 12px;
  }

  .header-rank,
  .header-participant,
  .header-points {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
  }
  .header-points {
    text-align: right;
  }
  .points-label {
    text-align: left;
  }

  .participant-name {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .points-value {
    font-size: 1.1rem;
    text-align: left;
  }

  .participant-details {
    font-size: 0.75rem;
  }

  .btn-modern {
    padding: 12px 25px;
    font-size: 0.8rem;
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 80px 0 30px;
    margin-top: 30px;
  }

  .page-header .container {
    padding: 0 1rem;
  }

  .page-header h1 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    letter-spacing: 0.05rem;
    padding: 0 0.5rem;
    word-break: break-word;
  }

  .page-header p {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  .refresh-info {
    font-size: 0.75rem;
  }

  .leaderboard-stats {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .leaderboard-container {
    margin: 0 0.5rem;
    padding: 10px;
  }

  /* Optimized mobile layout */
  .leaderboard-header-content,
  .leaderboard-item {
    grid-template-columns: 40px 1fr 70px;
    gap: 6px;
    padding: 10px 8px;
  }

  .header-rank,
  .header-participant,
  .header-points {
    font-size: 0.65rem;
    letter-spacing: 0.3px;
  }

  .header-points {
    text-align: right;
  }
  .points-label {
    text-align: left;
  }

  .rank-number {
    font-size: 0.9rem;
  }

  .rank-medal {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .participant-name {
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .participant-details {
    font-size: 0.7rem;
  }

  .points-value {
    font-size: 1rem;
    text-align: left;
  }

  .points-label {
    font-size: 0.65rem;
  }

  /* Improved preview styles for mobile */
  .leaderboard-preview-container {
    margin: 0 0.5rem;
    border-radius: 12px;
  }

  .leaderboard-header-preview {
    padding: 12px 10px;
  }

  .leaderboard-header-preview .header-content,
  .leaderboard-item-preview {
    grid-template-columns: 35px 1fr 60px;
    gap: 4px;
    padding: 10px;
  }

  .participant-name-preview {
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .points-value-preview {
    font-size: 0.9rem;
  }

  .leaderboard-btn {
    font-size: 0.8rem;
    min-width: 140px;
    width: auto;
    padding: 12px 20px;
    margin: 20px auto;
    letter-spacing: 0.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .view-full-leaderboard {
    margin-top: 20px;
  }
}

@media (max-width: 360px) {
  .leaderboard-header-content,
  .leaderboard-item {
    grid-template-columns: 35px 1fr 60px;
    gap: 4px;
    padding: 8px 6px;
  }

  .participant-name {
    font-size: 0.8rem;
  }

  .points-value {
    font-size: 0.9rem;
  }

  .rank-medal {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .btn-modern {
    padding: 10px 16px;
    font-size: 0.7rem;
    min-width: 120px;
  }

  .leaderboard-btn {
    font-size: 0.7rem;
    min-width: 120px;
    padding: 10px 16px;
  }
}

/* Touch device optimizations */
@media (hover: none) {
  .leaderboard-item:hover,
  .leaderboard-item-preview:hover {
    transform: none;
  }

  .btn-modern:hover {
    transform: none;
    background: linear-gradient(135deg, #ffffff, #a0a0a0);
  }

  .btn-modern:active {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffffff, #d0d0d0);
  }
}

/* Full leaderboard section positioning */
.full-leaderboard {
  padding: 40px 0 80px;
  position: relative;
  background-color: rgb(10, 10, 12);
  overflow: hidden;
}

.full-leaderboard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    rgba(10, 10, 12, 0.7) 0%,
    rgb(10, 10, 12) 100%
  );
  z-index: 1;
}

.full-leaderboard .container {
  position: relative;
  z-index: 2;
}

/* Animation keyframes */
@keyframes float {
  0% {
    transform: rotate(0deg) translate(0, 0) scale(1);
    opacity: 0.3;
  }
  33% {
    transform: rotate(120deg) translate(30px, -30px) scale(1.1);
    opacity: 0.2;
  }
  66% {
    transform: rotate(240deg) translate(-20px, 20px) scale(0.9);
    opacity: 0.4;
  }
  100% {
    transform: rotate(360deg) translate(0, 0) scale(1);
    opacity: 0.3;
  }
}

@keyframes floatSlow {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.05;
  }
}

/* Loading indicator */
.loading-indicator {
  text-align: center;
  padding: 40px;
  color: var(--secondary-color);
}

.loading-indicator i {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-title {
  font-family: "Signord", sans-serif;
  font-size: clamp(1.8rem, 4vw, 4rem);
  text-align: center;
  margin-bottom: 3rem;
  text-transform: uppercase;
  position: relative;
  letter-spacing: 0.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* No data state */
.no-data {
  text-align: center;
  padding: 3rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  margin: 2rem 0;
  font-family: "Poppins", sans-serif;
}

.no-data i {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff, #a0a0a0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pulseGradient 3s ease-in-out infinite;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.no-data p {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.no-data .sub-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  letter-spacing: 0.01em;
}

@keyframes pulseGradient {
  0% {
    transform: scale(1);
    opacity: 0.9;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3));
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .leaderboard-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .leaderboard-preview {
    padding: 3rem 1rem;
  }

  .leaderboard-container {
    max-width: 95%;
    padding: 20px;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .vector-shape {
    display: none;
  }

  /* Mobile adjustments for modern leaderboard */
  .leaderboard-header-content,
  .leaderboard-item {
    grid-template-columns: 60px 1fr 80px;
    gap: 10px;
    padding: 15px 15px;
  }

  .header-rank,
  .header-participant,
  .header-points {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }

  .leaderboard-header-preview .header-content,
  .leaderboard-item-preview {
    grid-template-columns: 50px 1fr 60px;
    gap: 8px;
    padding: 15px 15px;
  }

  .leaderboard-header-preview .header-rank,
  .leaderboard-header-preview .header-participant,
  .leaderboard-header-preview .header-points {
    font-size: 0.6rem;
    letter-spacing: 1px;
  }
  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .leaderboard-stats {
    flex-direction: column;
    align-items: center;
  }

  .leaderboard-container {
    max-width: 100%;
    margin: 0 1rem;
    padding: 15px;
  }

  .leaderboard-table th,
  .leaderboard-table td {
    padding: 10px;
    font-size: 0.85rem;
  }

  .rank-badge {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }

  /* Mobile adjustments for modern leaderboard */
  .leaderboard-header-content,
  .leaderboard-item {
    grid-template-columns: 50px 1fr 70px;
    gap: 8px;
    padding: 12px 10px;
  }

  .header-rank,
  .header-participant,
  .header-points {
    font-size: 0.6rem;
    letter-spacing: 0.5px;
  }

  .leaderboard-header-preview .header-content,
  .leaderboard-item-preview {
    grid-template-columns: 35px 1fr 45px;
    gap: 3px;
    padding: 10px 8px;
  }

  .leaderboard-header-preview .header-rank,
  .leaderboard-header-preview .header-participant,
  .leaderboard-header-preview .header-points {
    font-size: 0.5rem;
    letter-spacing: 0.5px;
  }

  .rank-number {
    font-size: 1rem;
  }
}

/* ===== IMPROVED INDEX.HTML LEADERBOARD PREVIEW STYLES ===== */

.leaderboard-preview .section-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 300;
}

.leaderboard-preview-container {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.leaderboard-preview-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.01),
    rgba(255, 255, 255, 0.005)
  );
  pointer-events: none;
  z-index: 1;
}

.leaderboard-header-preview {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

.leaderboard-header-preview .header-content {
  display: grid;
  grid-template-columns: 100px 1fr 120px;
  align-items: center;
  gap: 20px;
}

.leaderboard-header-preview .header-rank,
.leaderboard-header-preview .header-participant,
.leaderboard-header-preview .header-points {
  font-family: "Signord", sans-serif;
  font-size: 0.9rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.leaderboard-header-preview .header-rank {
  text-align: center;
}

.leaderboard-header-preview .header-points {
  text-align: right;
}

.leaderboard-list-preview {
  position: relative;
  z-index: 2;
}

.leaderboard-item-preview {
  display: grid;
  grid-template-columns: 100px 1fr 120px;
  align-items: center;
  gap: 20px;
  padding: 20px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.leaderboard-item-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.02),
    transparent
  );
  transition: 0.5s;
}

.leaderboard-item-preview:hover::before {
  left: 100%;
}

.leaderboard-item-preview:hover {
  background: rgba(255, 255, 255, 0.02);
  transform: translateX(5px);
}

.leaderboard-item-preview:last-child {
  border-bottom: none;
}

/* Rank styling for preview */
.rank-section-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rank-badge-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  position: relative;
}

.rank-badge-preview.gold {
  background: linear-gradient(135deg, #ffd700, #ffb700);
  color: #000;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.rank-badge-preview.silver {
  background: linear-gradient(135deg, #e0e0e0, #c0c0c0);
  color: #000;
  box-shadow: 0 0 20px rgba(192, 192, 192, 0.4);
}

.rank-badge-preview.bronze {
  background: linear-gradient(135deg, #cd7f32, #a05a2c);
  color: #000;
  box-shadow: 0 0 20px rgba(205, 127, 50, 0.4);
}

.rank-number-preview {
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  text-align: center;
}

/* Participant styling for preview */
.participant-section-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.participant-name-preview {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.leaderboard-item-preview:hover .participant-name-preview {
  color: #fff;
}

/* Points styling for preview */
.points-section-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.points-value-preview {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2px;
  text-align: center;
}

.points-label-preview {
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
  text-align: center;
}

.leaderboard-item-preview:hover .points-value-preview {
  color: #fff;
  transform: scale(1.05);
}

/* Special styling for top 3 in preview */
.leaderboard-item-preview.top-1 {
  background: linear-gradient(
    90deg,
    rgba(255, 215, 0, 0.03),
    rgba(255, 215, 0, 0.01)
  );
  border-left: 4px solid var(--gold);
}

.leaderboard-item-preview.top-2 {
  background: linear-gradient(
    90deg,
    rgba(192, 192, 192, 0.03),
    rgba(192, 192, 192, 0.01)
  );
  border-left: 4px solid var(--silver);
}

.leaderboard-item-preview.top-3 {
  background: linear-gradient(
    90deg,
    rgba(205, 127, 50, 0.03),
    rgba(205, 127, 50, 0.01)
  );
  border-left: 4px solid var(--bronze);
}

/* Modern button styling */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Signord", sans-serif;
  font-size: 0.9rem;
  font-weight: normal;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff, #a0a0a0);
  color: #000;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  margin: 30px 0;
  min-width: 180px;
}

.btn-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.6s;
}

.btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #ffffff, #d0d0d0);
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-modern i {
  transition: transform 0.3s ease;
}

.btn-modern:hover i {
  transform: translateX(5px);
}

.btn-modern span {
  display: inline-block;
  vertical-align: middle;
  line-height: 1.2;
}

/* Loading and error states for preview */
.loading-state-preview {
  text-align: center;
  padding: 40px 20px;
  color: var(--secondary-color);
  font-family: "Poppins", sans-serif;
}

.loading-state-preview i {
  font-size: 2rem;
  margin-bottom: 15px;
  animation: spin 1s linear infinite;
}

.no-data-preview {
  text-align: center;
  padding: 40px 20px;
  color: var(--secondary-color);
  font-family: "Poppins", sans-serif;
}

.no-data-preview i {
  font-size: 2.5rem;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* Responsive adjustments for preview */
@media (max-width: 768px) {
  .leaderboard-preview-container {
    margin: 0 1rem;
    border-radius: 15px;
  }

  .leaderboard-header-preview .header-content,
  .leaderboard-item-preview {
    grid-template-columns: 40px 1fr 50px;
    gap: 5px;
    padding: 12px 15px;
  }

  .leaderboard-header-preview .header-rank,
  .leaderboard-header-preview .header-participant,
  .leaderboard-header-preview .header-points {
    font-size: 0.5rem;
    letter-spacing: 0.5px;
  }

  /* Use shorter text for mobile */
  .leaderboard-header-preview .header-rank::after {
    content: "POS";
  }
  .leaderboard-header-preview .header-participant::after {
    content: "NAME";
  }
  .leaderboard-header-preview .header-points::after {
    content: "PTS";
  }

  .leaderboard-header-preview .header-rank,
  .leaderboard-header-preview .header-participant,
  .leaderboard-header-preview .header-points {
    font-size: 0;
  }

  .participant-name-preview {
    font-size: 0.9rem;
  }

  .points-value-preview {
    font-size: 1rem;
  }

  .rank-badge-preview {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .btn-modern {
    padding: 12px 25px;
    font-size: 0.8rem;
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .leaderboard-header-preview {
    padding: 20px 14px;
  }
  .leaderboard-header-preview .header-content,
  .leaderboard-item-preview {
    grid-template-columns: 35px 1fr 45px;
    gap: 3px;
    padding: 10px 24px;
    /* padding-left: -10px; */
  }
  .header-rank {
    margin-left: -20px;
  }

  .leaderboard-header-preview .header-rank::after {
    content: "RANK";
  }
  .leaderboard-header-preview .header-participant::after {
    content: "NAME";
  }
  .leaderboard-header-preview .header-points::after {
    content: "POINTS";
  }

  .leaderboard-header-preview .header-rank,
  .leaderboard-header-preview .header-participant,
  .leaderboard-header-preview .header-points {
    font-size: 0;
  }

  .leaderboard-header-preview .header-rank::after,
  .leaderboard-header-preview .header-participant::after,
  .leaderboard-header-preview .header-points::after {
    font-size: 0.65rem;
    letter-spacing: 0.3px;
    font-weight: 600;
  }

  .participant-name-preview {
    font-size: 0.8rem;
  }

  .points-value-preview {
    font-size: 0.9rem;
  }

  .rank-badge-preview {
    width: 25px;
    height: 25px;
    font-size: 0.7rem;
  }

  .rank-number-preview {
    font-size: 0.8rem;
  }
  /* .btn-modern{
  font-size: 0.8rem;
  width: 50%;
  }
  .btn-modern span{
    font-size: 0.6rem;
    color: red;
  } */
  .leaderboard-btn {
    font-size: 0.8rem;
    min-width: 140px;
    width: auto;
    padding: 12px 20px;
    margin: 20px auto;
    letter-spacing: 0.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .btn-modern span {
    font-size: 0.8rem;
  }
  /* .footer.redesigned-footer {
    font-family: "Poppins", sans-serif;
  } */
}
.loading-indicator{
  min-height: 100vh;
}