/* Base styles */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@300,400,500,600,700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=switzer@300&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    'Clash Display',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Open Sans',
    'Helvetica Neue',
    sans-serif;
  background-color: #000;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings:
    'ss01' on,
    'ss02' on,
    'ss03' on,
    'ss04' on,
    'ss05' on,
    'ss06' on,
    'ss07' on;
  -webkit-font-feature-settings:
    'ss01' on,
    'ss02' on,
    'ss03' on,
    'ss04' on,
    'ss05' on,
    'ss06' on,
    'ss07' on;
  backdrop-filter: blur(10px);
  background-image: url('media/gradient.jpeg');
  background-size: 60%;
  background-position: top right;
  background-repeat: no-repeat;
}

/* Main container */
.main-container {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Container */
.container {
  max-width: 1235px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  position: relative;
  z-index: 10;
  margin-top: 10vh;
}

/* Header */
.header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  max-width: 1235px;
  margin-left: auto;
  margin-right: auto;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 100%;
  height: 100%;
  position: relative;
}

.zigzag-container {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 20;
}

.zigzag {
  width: 762px;
  height: 37px;
  transition: all 0.3s ease;
}

/* Leaderboard */
.leaderboard {
  background: rgba(58, 58, 58, 0.22);
  border-radius: 0.5rem;
  border: 1px solid rgba(107, 107, 107, 0.5);
  overflow: hidden;
  backdrop-filter: blur(4px);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 4rem;
}

/* Table header */
.table-header {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr 2fr;
  padding: 1.5rem 2.5rem;
  border-bottom: 0.5px solid white;
}

.table-header > div {
  color: white;
  font-size: 15px;
}

.score-col {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  font-weight: 400;
  color: white;
}

/* Table rows */
.table-rows {
  display: flex;
  flex-direction: column;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr 2fr;
  padding: 1.5rem 2.5rem;
  align-items: center;
  border-bottom: 0.5px solid rgba(174, 174, 174, 0.3);
}

.table-row:last-child {
  border-bottom: none;
}

.ranking-col {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 400;
  color: white;
}

.rank {
  font-size: 18px;
  font-weight: 400;
  color: white;
}

.network-col {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 15px;
  font-weight: 400;
  color: white;
}

.network-logo {
  width: 43px;
  height: 43px;
  position: relative;
}

.network-logo img {
  width: 100%;
  height: 100%;
}

.network-info {
  display: flex;
  flex-direction: column;
}

.network-name {
  font-size: 18px;
  color: white;
  font-weight: 400;
  text-transform: capitalize;
}

.network-symbol {
  font-size: 12px;
  color: white;
  font-weight: 300;
}

/* Circular progress */
.progress-container {
  position: relative;
  width: 64px;
  height: 64px;
  background-color: #07070752;
  border-radius: 50%;
  padding: 3px;
  box-sizing: content-box;
  border: 1px solid #403d3d;
}

.progress-circle {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-background {
  fill: none;
}

.progress-indicator {
  fill: none;
  stroke: rgba(7, 7, 7, 0.3);
  stroke-width: 6px;
  stroke-linecap: round;
  stroke-dasharray: 175.9;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.progress-value {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.value {
  font-size: 20px;
  font-weight: 400;
}

.max {
  font-size: 7px;
  font-weight: 400;
  color: #b0b0b0;
  text-align: center;
}

/* Bottom zigzag */
.bottom-zigzag {
  /* position: absolute; */
  bottom: 2rem;
  left: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
}

/* Loading state styles */
.loading-container {
  /* background-color: white; */
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid #2563eb;
  width: 40px;
  height: 40px;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: #b0b0b0;
  font-size: 16px;
}

/* Error state styles */
.error-container {
  /* background-color: white; */
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.error-icon {
  color: #e53e3e;
  font-size: 40px;
  margin-bottom: 16px;
}

.error-title {
  color: white;
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: bold;
}

.error-message {
  color: #b0b0b0;
  margin-bottom: 20px;
}

/* Use these classes to show/hide different states */
.hidden {
  display: none;
}

/* Q&A container */
.qa-container {
  border-radius: 0.5rem;
  padding: 2rem 4rem;
}

/* Individual Q&A item */
.qa-item {
  margin-bottom: 0.5rem;
  overflow: hidden;
}

/* Question styling */
.question {
  font-size: 22px;
  font-weight: 400;
  padding: 0.7rem;
  font-size: 1.5rem;
  line-height: 117%;
}

/* Answer styling */
.answer {
  font-family: 'Switzer', sans-serif;
  color: #ccc;
  font-size: 18px;
  font-weight: 300;
  padding: 0.7rem;
  line-height: 167%;
  letter-spacing: 1%;
}

.link {
  color: #4ff8ca;
  text-decoration: none;
}

.link:visited {
  color: #caf659;
}

.disclaimer {
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  font-family: 'Switzer', sans-serif;
}

.disclaimer-title {
  font-size: 14px;
  font-weight: 400;
  color: #b0b0b0;
  line-height: 167%;
  letter-spacing: 1%;
}

.disclaimer-text {
  font-size: 12px;
  color: #b0b0b0;
  line-height: 167%;
  letter-spacing: 1%;
  margin-top: 0.2rem;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .zigzag {
    width: 600px;
    height: 29px;
  }

  .zigzag-container {
    right: -80px;
  }
}

@media (max-width: 992px) {
  .zigzag {
    width: 500px;
    height: 24px;
  }

  .zigzag-container {
    right: -60px;
  }
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .table-header,
  .table-row {
    grid-template-columns: 1fr 0fr 1fr 1fr;
    padding: 1rem;
  }

  .zigzag {
    width: 400px;
    height: 19px;
  }

  .zigzag-container {
    right: -40px;
    top: 0;
    transform: none;
  }
}

@media (max-width: 480px) {
  body {
    background-size: contain;
  }

  .logo img {
    width: 90%;
  }

  .network-col {
    gap: 0.5rem;
  }

  .network-logo {
    width: 30px;
    height: 30px;
  }

  .ranking-col {
    display: none;
  }

  .circular-progress {
    width: 50px;
    height: 50px;
  }

  .value {
    font-size: 0.875rem;
  }

  .max {
    font-size: 0.5rem;
  }

  .zigzag-container {
    display: none;
  }

  .bottom-zigzag {
    display: none;
  }

  .progress-container {
    width: 50px;
    height: 50px;
  }

  .leaderboard,
  .qa-container {
    padding: 0.5rem 1rem;
  }

  .table-header,
  .table-row {
    grid-template-columns: 0fr 2fr 2fr;
    padding: 0.5rem;
  }
}

/* Warning tooltip styling */
.network-name-with-warning {
  cursor: pointer;
  position: relative;
  display: inline-block;
}

.tooltip {
  visibility: hidden;
  width: 250px;
  background-color: #555;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-weight: normal;
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.network-name-with-warning:hover .tooltip {
  visibility: visible;
  opacity: 1;
}
