:root {
  --primary-color: #000;
  --accent-color: #fdd835;
  --bg-color: #fff;
  --text-color: #111;
  --gray: #e0e0e0;
}

[data-theme="dark"] {
  --primary-color: #fff;
  --accent-color: #fdd835;
  --bg-color: #1a1a1a;
  --text-color: #e0e0e0;
  --gray: #2d2d2d;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 20px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}



.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  margin: 0 10px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  position: relative;
  transition: all 0.3s ease;
  vertical-align: middle;
}

.theme-toggle:hover .sun-icon {
  filter: brightness(0) saturate(100%) invert(85%) sepia(100%) saturate(1000%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.theme-toggle:hover .moon-icon {
  filter: brightness(0) saturate(100%) invert(85%) sepia(100%) saturate(1000%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
  filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

[data-theme="dark"] .theme-toggle svg {
  filter: brightness(0) saturate(100%) invert(80%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.theme-toggle .sun-icon {
  opacity: 1;
}

.theme-toggle .moon-icon {
  opacity: 0;
}

/* Dark mode styles */
.theme-toggle.dark .sun-icon {
  opacity: 0;
}

.theme-toggle.dark .moon-icon {
  opacity: 1;
}

header img {
  height: 32px;
}

h1 {
  font-size: 24px;
  font-weight: 600;
}

.section {
  margin-top: 40px;
}

.progress-container {
  background: var(--gray);
  border-radius: 8px;
  overflow: hidden;
  height: 24px;
  margin: 12px 0;
}

.progress-bar {
  height: 100%;
  background: var(--accent-color);
  color: #000;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  transition: width 0.3s ease;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid var(--gray);
  text-align: left;
  font-size: 14px;
}

th {
  background-color: var(--gray);
  font-weight: 600;
}

/* Leaderboard cards for mobile */
.leaderboard-cards {
  display: none;
  margin-top: 20px;
}

.leaderboard-card {
  background: var(--bg-color);
  border: 1px solid var(--gray);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.leaderboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .leaderboard-card:hover {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.card-rank {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-color);
  min-width: 40px;
  text-align: center;
}

.card-rank.top-3 {
  font-size: 28px;
}

.card-content {
  flex: 1;
  margin-left: 16px;
}

.card-wallet {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--text-color);
}

.card-volume {
  font-size: 14px;
  color: var(--text-color);
  opacity: 0.8;
}

.card-prize {
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-color);
  text-align: right;
  min-width: 80px;
}

.join-btn {
  display: inline-block;
  margin-top: 20px;
  background-color: var(--accent-color);
  color: black;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.join-btn:hover {
  background-color: #ffe94d;
}

.trading-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.trade-btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: black;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.trade-btn:hover {
  background-color: #ffe94d;
}



footer {
  margin-top: 60px;
  text-align: center;
}

/* Mobile socials - hidden by default, shown on mobile */
.mobile-socials {
  display: none;
}

.socials {
  margin-top: 10px;
}

.socials a {
  margin: 0 10px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 18px;
}

.socials a img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
  transition: filter 0.3s ease;
}

[data-theme="dark"] .socials a img {
  filter: brightness(0) saturate(100%) invert(80%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.socials a:hover img {
  filter: brightness(0) saturate(100%) invert(85%) sepia(100%) saturate(1000%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

@media (max-width: 600px) {
  body {
    padding: 16px;
  }
  
  header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .header-left {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  h1 {
    font-size: 20px;
  }
  
  .socials {
    align-self: flex-end;
    display: flex;
    gap: 16px;
  }
  
  /* Hide header socials on mobile, show footer socials */
  header .socials {
    display: none;
  }
  
  .mobile-socials {
    display: block;
  }
  
  .socials a {
    margin: 0;
    padding: 8px;
    border-radius: 8px;
    background: var(--gray);
    transition: all 0.2s ease;
  }
  
  .socials a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
  }
  
  .socials a img {
    width: 20px;
    height: 20px;
  }
  
  /* Mobile socials in footer */
  .mobile-socials {
    display: block !important;
    margin-top: 40px;
    text-align: center;
  }
  
  .mobile-socials h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--text-color);
    opacity: 0.8;
  }
  
  .mobile-socials .socials {
    justify-content: center;
    align-self: center;
    margin-top: 0;
  }
  
  .mobile-socials .socials a {
    padding: 12px;
    background: var(--gray);
    border-radius: 12px;
    margin: 0 8px;
  }
  
  .mobile-socials .socials a img {
    width: 24px;
    height: 24px;
  }
  
  .mobile-socials .socials .theme-toggle {
    padding: 12px;
    background: var(--gray);
    border-radius: 12px;
    margin: 0 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
  }
  
  .mobile-socials .socials .theme-toggle:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
  }
  
  .mobile-socials .socials .theme-toggle svg {
    width: 24px;
    height: 24px;
  }
  
  /* Mobile leaderboard - hide table, show cards */
  .leaderboard-table {
    display: none;
  }
  
  .leaderboard-cards {
    display: block;
  }
  
  .leaderboard-card {
    background: var(--bg-color);
    border: 1px solid var(--gray);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
  }
  
  .leaderboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  [data-theme="dark"] .leaderboard-card:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
  }
  
  .card-rank {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-color);
    min-width: 40px;
    text-align: center;
  }
  
  .card-rank.top-3 {
    font-size: 28px;
  }
  
  .card-content {
    flex: 1;
    margin-left: 16px;
  }
  
  .card-wallet {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-color);
  }
  
  .card-volume {
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
  }
  
  .card-prize {
    font-weight: 700;
    font-size: 16px;
    color: var(--accent-color);
    text-align: right;
    min-width: 80px;
  }
  
  .trading-buttons {
    flex-direction: row;
    gap: 12px;
    margin-top: 32px;
    justify-content: center;
  }
  
  .trade-btn {
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    background-color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
  }
  
  .trade-btn:hover {
    background-color: #ffe94d;
  }
  

} 