@charset "UTF-8";
/* Price Page Styles */

.price-container {
  max-width: 960px;
  margin: 80px auto;
  padding: 30px;
  background: var(--white);
  color: var(--black);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  text-align: center;
  overflow: hidden;
}

.price-header {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--gold);
}

#last-updated {
  font-size: 14px;
  color: gray;
  margin-bottom: 10px;
}

.dex-link {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 14px;
}

.dex-link a {
  color: var(--gold);
  text-decoration: underline;
}

.dex-link a:hover {
  color: var(--black);
}

.price-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  margin: 20px 0 0;
}

.stat-box {
  background: #f9f9f9;
  border-left: 6px solid var(--gold);
  border-radius: 10px;
  padding: 20px;
  flex: 1 1 200px;
  min-width: 180px;
}

.stat-box h3 {
  font-size: 18px;
  color: var(--black);
}

.stat-box p {
  font-size: 20px;
  font-weight: bold;
  margin: 8px 0;
}

.stat-box .inr {
  font-size: 16px;
  color: #555;
}

#priceChange.positive,
.positive {
  color: green;
}

#priceChange.negative,
.negative {
  color: red;
}

.chart-section {
  margin-top: 20px;
  width: 100%;
}

/* Responsive DexScreener embed */
.embed-wrapper {
  position: relative;
  width: 100%;
  margin: 20px 0;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
  .price-container {
    padding: 15px;
    margin: 40px auto;
  }
  .price-header {
    font-size: 28px;
  }
  #last-updated {
    font-size: 12px;
  }
  .dex-link {
    font-size: 12px;
    margin-bottom: 8px;
  }
  .price-stats {
    flex-direction: column;
    gap: 15px;
  }
  .stat-box {
    flex: 1 1 100%;
    min-width: auto;
    padding: 15px;
  }
  .chart-section {
    margin-top: 15px;
  }
  .embed-wrapper {
    margin: 15px 0;
  }
}

@media screen and (max-width: 480px) {
  .price-header {
    font-size: 24px;
  }
  #last-updated {
    font-size: 11px;
  }
  .stat-box h3 {
    font-size: 16px;
  }
  .stat-box p {
    font-size: 18px;
  }
  .stat-box .inr {
    font-size: 14px;
  }
  .dex-link {
    font-size: 11px;
  }
}
@media (max-width: 768px) {
  /* switch from 56.25% (16:9) to a squarer, taller box */
  #dexscreener-embed {
    padding-bottom: 100% !important;  
  }
}
/* Mobile: ensure header fits in one line by sizing explicitly */
@media (max-width: 768px) {
  .price-header {
    font-size: 18px;      /* small enough to stay on one line */
    line-height: 1.2;     /* keep comfortable spacing */
  }
}


