/* Top 10 Comparisons Component Styles */

.top-10-comparisons-container {
  margin: 40px 0;
  padding: 24px;
  backdrop-filter: blur(10px);
}

.top-10-comparisons-header {
  text-align: center;
  margin-bottom: 32px;
}

.top-10-comparisons-header p {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.top-10-comparisons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

/* Comparison Card Styles */
.comparison-card {
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.comparison-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.comparison-card.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Removed - no longer used */

.coin-pair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 16px;
}

.coin-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-start;
}

.coin-info .coin-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.major-coin-info {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: flex-start;
}

.major-coin-info .coin-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

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

.coin-name {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  margin: 0;
}

.major-symbol {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: right;
  margin: 0;
}

.current-price {
  color: #8b5cf6;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
}

.major-price {
  color: #8b5cf6;
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
}

.vs-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  margin: 0 20px;
  position: relative;
}

.vs-text::after {
  content: "→";
  margin-left: 8px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.4);
}

.gain-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Removed - no longer used */

/* Moved above - no longer used here */

/* Loading States */
.comparison-card-loading {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.loading-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1) 25%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.1) 75%
  );
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
  border-radius: 6px;
}

.header-skeleton {
  height: 24px;
  margin-bottom: 12px;
}

.body-skeleton {
  height: 40px;
}

@keyframes loading-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Error State */
.error-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.7);
}

.error-message p {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.retry-button {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.retry-button:hover {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .top-10-comparisons-container {
    margin: 20px 0;
    padding: 16px;
  }

  .top-10-comparisons-header h2 {
    font-size: 1.5rem;
  }

  .top-10-comparisons-header p {
    font-size: 1rem;
  }

  .top-10-comparisons-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .coin-pair {
    padding: 16px 12px;
  }

  .coin-name,
  .major-symbol {
    font-size: 1rem;
  }

  .vs-text {
    font-size: 0.9rem;
    margin: 0 16px;
  }

  .current-price,
  .major-price {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .top-10-comparisons-header h2 {
    font-size: 1.3rem;
  }

  .coin-pair {
    padding: 12px 8px;
  }

  .coin-logo-small {
    width: 32px;
    height: 32px;
  }

  .coin-name,
  .major-symbol {
    font-size: 0.95rem;
  }

  .current-price,
  .major-price {
    font-size: 0.85rem;
  }

  .vs-text {
    margin: 0 12px;
    font-size: 0.85rem;
  }
}

/* Animation for component show/hide */
.top-10-comparisons-container {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}

.top-10-comparisons-container.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* Status colors for MVRV comparison */
.comparison-ratio.above {
  color: #ef4444;
}

.comparison-ratio.below {
  color: #10b981;
}
