/* Tokenomics Section Styles */
.tokenomics-section {
  font-family: Syne, sans-serif;
  background: linear-gradient(135deg, #000000 0%, #000000 100%);
  color: #ffffff;
  min-height: 100vh;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* Video Background Styles */
.tokenomics-video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
  filter: brightness(0.4) contrast(1.2);
  pointer-events: none;
}

/* Container specific to tokenomics */
.tokenomics-container {
  position: relative;
  z-index: 10;
  background: rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(1px);
  backdrop-filter: blur(1px);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tokenomics-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

.tokenomics-header {
  text-align: center;
  margin-bottom: 5px;
}

.tokenomics-header h1 {
  font-size: clamp(0.5em, 3vw, 2rem);
  margin-bottom: clamp(0.125rem, 0.5vw, 0.375rem);
  background: linear-gradient(45deg, #00d4ff, #ff00ff, #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGlow 2s ease-in-out infinite alternate;
  font-weight: bold;
  /* Prevent text from being too small on very small screens */
  min-height: 0.5rem;
}

.tokenomics-header p {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Flexible grid layout */
.tokenomics-main-content {
  display: grid;
  grid-template-columns: minmax(180px, 200px) minmax(180px, 200px) minmax(
      300px,
      1fr
    ) minmax(300px, 1fr);
  gap: 5px;
  margin-bottom: 5px;
  align-items: start;
  max-height: 358px;
  width: 100%;
  overflow: hidden;
}

.tokenomics-stats-grid {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 5px;
  height: 100%;
}

.tokenomics-stat-card {
  background: linear-gradient(
    135deg,
    #d803984e 0%,
    #ff00c86b 45%,
    #e565d27d 70%
  );
  border-radius: 5px;
  padding: 5px;
  text-align: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease;
}

.tokenomics-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
}

.tokenomics-stat-label {
  font-size: 0.7rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tokenomics-contract-address {
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  word-break: break-all;
  user-select: all;
}

.tokenomics-contract-address:hover {
  color: #ffd700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.tokenomics-buy-button {
  background: linear-gradient(45deg, #ffd700, #ffa500);
  border: 1px solid #ffffff;
  padding: 8px 16px;
  border-radius: 5px;
  color: #000;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
}

.tokenomics-buy-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 15px rgba(255, 208, 0, 0.6);
  background: linear-gradient(45deg, #ffa500, #ffd700);
}

.tokenomics-chart-section {
  background: linear-gradient(
    135deg,
    #d803984e 0%,
    #ff00c86b 45%,
    #e565d27d 70%
  );
  border-radius: 5px;
  padding: 1px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  min-width: 0;
  width: 100%;
}

.tokenomics-chart-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.1px;
  text-align: center;
  color: #ffffff;
}

.tokenomics-chart-container {
  position: relative;
  height: 240px;
  cursor: pointer;
  overflow: hidden;
  width: 100%;
}

.tokenomics-chart-container canvas {
  max-width: 100% !important;
  height: auto !important;
}

.tokenomics-breakdown-table {
  background: linear-gradient(
    135deg,
    #d803984e 0%,
    #ff00c86b 45%,
    #e565d27d 70%
  );
  border-radius: 5px;
  padding: 10px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow-x: auto;
}

.tokenomics-table-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
  text-align: center;
  color: #ffffff;
}

.tokenomics-breakdown-table table {
  font-size: 0.8rem;
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.tokenomics-breakdown-table th,
.tokenomics-breakdown-table td {
  padding: 5px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.tokenomics-breakdown-table th {
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
  color: #ffffff;
}

/* Enhanced table row hover effects */
.tokenomics-breakdown-table tbody tr {
  transition: all 0.3s ease;
  cursor: pointer;
}

.tokenomics-breakdown-table tbody tr:hover {
  background: rgba(255, 215, 0, 0.15);
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.tokenomics-breakdown-table tbody tr:hover td {
  color: #00d9ff;
  border-bottom-color: rgba(0, 102, 255, 0.4);
}

.tokenomics-breakdown-table tbody tr:hover .tokenomics-allocation-color {
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.tokenomics-allocation-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
  transition: all 0.3s ease;
}

/* How to Buy Section Styles */
.how-to-buy-section {
  border-radius: 5px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  margin-top: 20px;
}

.how-to-buy-title {
  font-size: clamp(0.5em, 3vw, 2rem);
  margin-bottom: clamp(0.25rem, 1vw, 0.75rem);
  background: linear-gradient(45deg, #00d4ff, #ff00ff, #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textGlow 2s ease-in-out infinite alternate;
  font-weight: bold;
  /* Prevent text from being too small on very small screens */
  min-height: 0.5rem;
  text-align: center;
}

.how-to-buy-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 5px;
  margin-bottom: 5px;
  align-items: stretch;
}

.how-to-buy-step-card {
  background: rgba(7, 7, 1, 0.792);
  border-radius: 5px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  background-clip: padding-box;
  border: 0.1px solid rgb(228, 10, 225, 0.5);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: local;
}

.how-to-buy-step-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.9) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
  transition: all 0.3s ease;
}

.how-to-buy-step-card > * {
  position: relative;
  z-index: 2;
}

.how-to-buy-step-card:nth-child(1) {
  background-image: url("https://pub-37d61a7eb7ae45898b46702664710cb2.r2.dev/Insights/Picture29.png");
}

.how-to-buy-step-card:nth-child(2) {
  background-image: url("https://pub-37d61a7eb7ae45898b46702664710cb2.r2.dev/Insights/Picture30.png");
}

.how-to-buy-step-card:nth-child(3) {
  background-image: url("https://pub-37d61a7eb7ae45898b46702664710cb2.r2.dev/Insights/Picture31.png");
}

.how-to-buy-step-card:nth-child(4) {
  background-image: url("https://pub-37d61a7eb7ae45898b46702664710cb2.r2.dev/Insights/Picture32.png");
}

.how-to-buy-step-card:nth-child(5) {
  background-image: url("https://pub-37d61a7eb7ae45898b46702664710cb2.r2.dev/Insights/Picture33.png");
}

.how-to-buy-step-card:nth-child(6) {
  background-image: url("https://pub-37d61a7eb7ae45898b46702664710cb2.r2.dev/Insights/Picture34.png");
}

.how-to-buy-step-card:hover {
  box-shadow: 0 8px 25px rgba(236, 14, 177, 0.3);
  border-color: rgba(251, 0, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.how-to-buy-step-card:hover::before {
  background: linear-gradient(
    135deg,
    rgba(255, 0, 242, 0.5) 0%,
    rgba(183, 34, 197, 0.4) 50%,
    rgba(255, 0, 238, 0.4) 100%
  );
}

.how-to-buy-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #00d4ff, #ff00ff);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 700;
  font-size: 1.4rem;
  border-radius: 5px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.how-to-buy-step-title {
  font-size: 1.1rem;
  font-weight: 750;
  margin-bottom: 1px;
  background: linear-gradient(45deg, #fdf90d, #df8d09, #ff0000);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.how-to-buy-step-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
  margin-bottom: 1px;
  text-align: justify;
  flex-grow: 1;
}

.how-to-buy-step-links {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: auto;
  flex-shrink: 0;
}

.how-to-buy-step-link {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.how-to-buy-step-link:hover {
  background: linear-gradient(45deg, #4e0d46, #de09b3);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 1, 156, 0.4);
}

.how-to-buy-copy-contract {
  background: linear-gradient(45deg, #9966ff, #b085ff);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.how-to-buy-copy-contract:hover {
  background: linear-gradient(45deg, #b085ff, #9966ff);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(153, 102, 255, 0.4);
}

.how-to-buy-warning-section {
  background: linear-gradient(
    135deg,
    #d803984e 0%,
    #ff00c86b 45%,
    #e565d27d 70%
  );
  border: 1px solid rgba(255, 69, 0, 0.3);
  border-radius: 5px;
  padding: 10px;
  margin-top: 5px;
}

.how-to-buy-warning-title {
  color: #ff6b35;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.how-to-buy-warning-text {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.3;
  column-count: 2;
  column-gap: 30px;
  column-rule: 1px solid rgba(255, 69, 0, 0.3);
}

@media (max-width: 768px) {
  .how-to-buy-warning-text {
    column-count: 1;
  }
}

.tokenomics-support-section {
  background: linear-gradient(
    135deg,
    #d803984e 0%,
    #ff00c86b 45%,
    #e565d27d 70%
  );
  border: 1px solid rgba(122, 7, 57, 0.9);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

.tokenomics-support-title {
  color: #b8bfc4;
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.tokenomics-support-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.tokenomics-support-link {
  background: linear-gradient(45deg, #ffd700, #ffa500);
  color: #000;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tokenomics-support-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 150, 255, 0.4);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, #ffd700, #ffa500);
  border: none;
  border-radius: 50%;
  color: #000;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: linear-gradient(45deg, #ffa500, #ffd700);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Responsive design */
@media (max-width: 1200px) {
  .tokenomics-main-content {
    grid-template-columns: minmax(160px, 180px) minmax(160px, 180px) minmax(
        250px,
        1fr
      ) minmax(250px, 1fr);
  }
}

@media (max-width: 1024px) {
  .tokenomics-main-content {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-height: none;
  }

  .tokenomics-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    height: auto;
  }

  .tokenomics-container {
    min-height: auto;
  }

  .tokenomics-wrapper {
    min-height: auto;
    justify-content: flex-start;
    padding-top: 20px;
  }

  .tokenomics-section {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .tokenomics-main-content {
    grid-template-columns: 1fr;
  }

  .tokenomics-stats-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
  }

  .tokenomics-header h1 {
    font-size: 2rem;
  }

  .how-to-buy-section {
    padding: 20px;
    margin-top: 15px;
  }

  .how-to-buy-title {
    font-size: 1.5rem;
  }

  .how-to-buy-steps-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .how-to-buy-step-links,
  .tokenomics-support-links {
    flex-direction: column;
    align-items: stretch;
  }

  .tokenomics-container {
    min-height: auto;
  }

  .tokenomics-wrapper {
    min-height: auto;
    justify-content: flex-start;
    padding-top: 20px;
  }

  .tokenomics-section {
    justify-content: flex-start;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .how-to-buy-step-card {
    min-height: 240px;
    padding: 15px;
  }

  .how-to-buy-step-links {
    flex-direction: column;
    align-items: stretch;
  }

  .how-to-buy-step-link,
  .how-to-buy-copy-contract {
    text-align: center;
    width: 100%;
  }

  .how-to-buy-step-card::before {
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.6) 50%,
      rgba(0, 0, 0, 0.8) 100%
    );
  }
}

@media (max-width: 600px) {
  .tokenomics-container {
    padding: 10px;
  }

  .tokenomics-section {
    padding: 10px;
  }

  .tokenomics-chart-container {
    height: 200px;
  }

  .tokenomics-breakdown-table {
    padding: 15px;
  }

  .tokenomics-breakdown-table th,
  .tokenomics-breakdown-table td {
    padding: 8px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .how-to-buy-step-card {
    min-height: 220px;
    padding: 12px;
  }

  .how-to-buy-step-title {
    font-size: 1rem;
  }

  .how-to-buy-step-description {
    font-size: 0.9rem;
    line-height: 1.3;
  }
}
