/* Details Component Styles */

.details-container {
  padding: 24px;
  margin: 20px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: none;
}

.details-header {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
}

/* MVRV Status Section */
.mvrv-status-section {
  margin: 24px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
}

.mvrv-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.mvrv-status-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #d0d0e8;
  margin: 0;
}

.mvrv-status-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #9793f5;
}

.mvrv-status-bar {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  position: relative;
  margin-bottom: 12px;
  overflow: hidden;
}

.mvrv-status-fill {
  height: 100%;
  border-radius: 6px;
  position: relative;
  transition: width 0.5s ease;
}

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

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

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

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

.mvrv-status-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #a0a0b8;
  margin-bottom: 8px;
}

.mvrv-status-description {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  margin-top: 8px;
}

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

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

.mvrv-status-description.text-overvalued {
  color: #f44336;
}

.mvrv-status-description.text-extremely-overvalued {
  color: #d32f2f;
}

.coin-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.coin-logo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  flex-shrink: 0;
}

.title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coin-name {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.coin-symbol {
  font-size: 32px;
  color: #667eea;
  font-weight: 500;
}

.coin-rank {
  font-size: 14px;
  color: #a0a0b8;
  font-weight: 400;
  text-transform: uppercase;
}

.current-price {
  font-size: 28px;
  font-weight: 800;
  color: #9793f5;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.current-price .price {
  font-size: 32px;
  color: #9793f5;
}

.price-percentage {
  font-size: 40px;
  font-weight: 600;
  padding: 4px 12px;
  display: inline-block;
  color: #a0a0b8;
}

.price-percentage.positive {
  color: #4caf50;
}

.price-percentage.negative {
  color: #ff6b6b;
}

.price-change {
  font-size: 40px;
  font-weight: 600;
  padding: 4px 8px;
  display: inline-block;
}

.price-change.positive {
  color: #4caf50;
}

.price-change.negative {
  color: #ff6b6b;
}

.last-update {
  font-size: 0.7rem;
  color: #a0a0b8;
  margin-top: 4px;
}

.details-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.details-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.range-section {
  padding: 16px;
}

.range-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #949298;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.range-title i {
  color: #667eea;
  cursor: help;
  position: relative;
}

.tooltip-trigger {
  position: relative;
  cursor: help;
}

.tooltip-trigger:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip-trigger:hover::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  margin-bottom: -5px;
  z-index: 1000;
}

.range-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  position: relative;
  margin-bottom: 8px;
  overflow: hidden;
}

.range-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 4px;
  position: relative;
  transition: width 0.3s ease;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #a0a0b8;
}

/* Bar container styles for range sections */
.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: #949298;
  font-size: 0.9rem;
  min-width: 0%;
  max-width: 100%;
  transform-origin: left center;
}

.bar-description {
  min-width: 120px;
  font-size: 0.9rem;
  color: #949298;
  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);
}

.bar-value {
  min-width: 150px;
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  color: #9793f5;
}

/* Responsive design */
@media (max-width: 768px) {
  .details-container {
    width: 100% !important;
    margin: 10px 0;
    padding: 12px;
  }

  .details-content {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .details-header {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  .coin-info {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .coin-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  .title-wrapper {
    gap: 4px;
    flex: 1;
    min-width: 0;
  }

  .coin-name {
    font-size: 26px;
    line-height: 1.1;
  }

  .coin-symbol {
    font-size: 26px;
  }

  .current-price {
    font-size: 26px;
    line-height: 1.1;
  }

  .coin-rank {
    font-size: 12px;
  }

  /* Extra small screens */
  @media (max-width: 480px) {
    .current-price .price {
      font-size: 24px;
    }

    .price-percentage {
      font-size: 24px;
    }

    .details-container {
      padding: 8px;
    }

    .details-header {
      gap: 8px;
    }

    .coin-info {
      gap: 8px;
    }

    .coin-logo {
      width: 40px;
      height: 40px;
    }

    .title-wrapper {
      gap: 2px;
    }

    .coin-name {
      font-size: 26px;
    }

    .coin-symbol {
      font-size: 26px;
    }

    .current-price {
      font-size: 16px;
    }

    .coin-rank {
      font-size: 12px;
    }
  }

  .bar-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

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

  .bar {
    width: 100%;
    height: 6px;
  }

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

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

  /* MVRV Status Section Responsive */
  .mvrv-status-section {
    margin: 16px 0;
    padding: 16px;
  }

  .mvrv-status-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .mvrv-status-title {
    font-size: 1rem;
  }

  .mvrv-status-value {
    font-size: 1.5rem;
  }

  .mvrv-status-labels {
    font-size: 0.7rem;
    gap: 4px;
  }

  .mvrv-status-labels span {
    flex: 1;
    text-align: center;
  }

  .mvrv-status-description {
    font-size: 0.8rem;
    padding: 6px 8px;
  }
}
