/* Top 5 Comparison Component Styles */

/* Comparison Table Container */
.comparison-table {
  padding: 16px;
}

.comparison-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #949298;
  margin-bottom: 12px;
}

/* MVRV Comparison Table Styles */
.mvrv-comparison-table {
  margin-top: 20px;
}

.mvrv-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.mvrv-table-header h3 {
  color: #949298;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.mvrv-legend {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.legend-item {
  font-size: 0.8rem;
  padding: 4px 8px;
  font-weight: 500;
}

.legend-item.undervalued {
  color: #4caf50;
}

.legend-item.fair-value {
  color: #ff9800;
}

.legend-item.overvalued {
  color: #f44336;
}

.legend-item.extremely-overvalued {
  color: #d32f2f;
}

/* Simple MVRV Table Styles */
.mvrv-simple-table {
  width: 100%;
}

.mvrv-table-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  transition: background-color 0.2s ease;
  border-top: 1px solid rgba(42, 47, 74, 0.5);
}

.mvrv-table-header-row {
  font-weight: 600;
}

.mvrv-cell {
  flex: 1;
  padding: 0 10px;
  font-size: 0.9rem;
  color: #d0d0e8;
}

.mvrv-cell-header {
  color: #949298;
  font-weight: 600;
}

/* Specific cell styles */
.selected-coin-price {
  font-weight: 600;
  color: #9793f5;
}

.comparison-coin {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comparison-mvrv {
  font-weight: 600;
  color: #9793f5;
}

.result-price {
  font-weight: 600;
  color: #949298;
}

.multiplier {
  color: #4caf50;
  font-weight: 600;
  margin-left: 4px;
}

.multiplier.negative {
  color: #f44336;
}

/* Coin logo styles */
.coin-logo-small {
  width: 20px;
  height: 20px;
}

.coin-symbol-text {
  font-weight: 600;
  color: #949298;
}

/* Loading and error states */
.loading-mvrv,
.error-mvrv {
  text-align: center;
  padding: 20px;
  color: #a0a0b8;
  font-style: italic;
}

.error-mvrv {
  color: #f44336;
}

/* Responsive Design */
@media (max-width: 768px) {
  .mvrv-table-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .mvrv-legend {
    justify-content: flex-start;
  }

  .legend-item {
    font-size: 0.7rem;
    padding: 3px 6px;
  }

  .mvrv-table-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
  }

  .mvrv-cell {
    padding: 4px 8px;
    font-size: 0.8rem;
    flex: 1;
  }

  /* Hide MVRV of B column on mobile */
  .mvrv-cell-header:nth-child(3),
  .mvrv-cell:nth-child(3) {
    display: none;
  }

  .selected-coin-price,
  .comparison-coin,
  .result-price {
    flex: 1;
  }

  .comparison-coin {
    justify-content: flex-start;
  }

  .multiplier {
    display: inline;
    margin-left: 4px;
  }

  .comparison-table {
    padding: 12px;
  }

  .mvrv-comparison-table {
    margin-top: 16px;
  }
}
