/* Comparison results styling */

.inline-comparison {
  padding-top: 30px;
}

/* Market cap comparison styles */
.hypothetical-price {
  text-align: center;
  margin: 30px 0;
  padding: 20px;
}

.price-title {
  font-size: 32px;
  font-weight: 600;
  color: #d0d0e8;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-title .coin-symbol {
  color: #9793f5;
}

.price-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
}

.coin-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.price-amount {
  color: #ffffff;
}

.price-multiplier {
  color: #ff6b6b;
  font-size: 1.5rem;
  font-weight: 600;
}

.market-cap-comparison {
  margin-top: 30px;
}

.comparison-text {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: #ffffff;
}

.comparison-text .colored {
  color: #9793f5;
}

.comparison-text .green {
  color: #4caf50;
}

.market-cap-bars {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.bar-container {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
}

.bar-label {
  min-width: 120px;
  font-size: 0.9rem;
  color: #a0a0b8;
  font-weight: 600;
  flex-shrink: 0;
}

.bar {
  flex: 1;
  height: 8px;
  border-radius: 6px;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.5s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #ffffff;
  font-size: 0.9rem;
  min-width: 0%;
  max-width: 100%;
  transform-origin: left center;
}

.bar-description {
  min-width: 120px;
  font-size: 0.9rem;
  color: #d0d0e8;
  font-weight: 600;
  text-align: left;
  flex-shrink: 0;
}

.bar.bg-green {
  background: linear-gradient(90deg, #4caf50, #45a049);
}

.bar.bg-pink {
  background: linear-gradient(90deg, #ff6b6b, #ee5a52);
}

/* MVRV status bar colors */
.bar.bg-undervalued {
  background: linear-gradient(90deg, #4caf50, #45a049);
}

.bar.bg-fair-value {
  background: linear-gradient(90deg, #ff9800, #f57c00);
}

.bar.bg-overvalued {
  background: linear-gradient(90deg, #f44336, #d32f2f);
}

.bar.bg-extremely-overvalued {
  background: linear-gradient(90deg, #d32f2f, #b71c1c);
}

/* Text color classes to match bar colors */
.text-undervalued {
  color: #4caf50 !important;
}

.text-fair-value {
  color: #ff9800 !important;
}

.text-overvalued {
  color: #f44336 !important;
}

.text-extremely-overvalued {
  color: #d32f2f !important;
}

.bar-value {
  min-width: 150px;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  color: #d0d0e8;
  flex-shrink: 0;
}

.mvrv-table {
  width: 100%;
  border-collapse: collapse;
}

.mvrv-value {
  flex: 1;
  font-weight: 600;
  text-align: center;
}

.mvrv-status {
  flex: 1.5;
  text-align: center;
  font-weight: 500;
}

.mvrv-price {
  flex: 1;
  text-align: right;
  font-weight: 500;
}

/* MVRV status colors */
.mvrv-value.undervalued,
.mvrv-status.undervalued {
  color: #4caf50;
}

.mvrv-value.fair-value,
.mvrv-status.fair-value {
  color: #ff9800;
}

.mvrv-value.overvalued,
.mvrv-status.overvalued {
  color: #f44336;
}

.mvrv-value.extremely-overvalued,
.mvrv-status.extremely-overvalued {
  color: #d32f2f;
}

/* Responsive design for comparison */
@media (max-width: 768px) {
  /* Fix bar layout on mobile */
  .bar-container {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .bar-label {
    min-width: auto;
    font-size: 0.8rem;
  }

  .bar {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .bar-description {
    min-width: auto;
    font-size: 0.8rem;
  }

  .bar-value {
    min-width: auto;
    text-align: left;
    font-size: 0.8rem;
  }

  /* Adjust price display for mobile */
  .price-display {
    flex-direction: column;
    gap: 10px;
    font-size: 2rem;
  }

  .price-title {
    font-size: 1rem;
  }
}
