/* Crypto Market Styles - Modern Design */
/* Market selector styles are now in dashboard.css for consistency */

/* Ripple effect for market tab clicks */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

/* Smooth transitions for dashboard switching */
.market-dashboard {
  transition: opacity 0.3s ease-in-out;
}

/* Loading state with gradient animation */
.crypto-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--text-color);
  gap: 1rem;
}

.crypto-loading i {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: spin 1s linear infinite;
}

.crypto-loading span {
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.8;
}

/* Empty state styling */
.crypto-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-color);
}

.crypto-empty-state i {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.crypto-empty-state p {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.crypto-empty-state small {
  font-size: 0.9rem;
  opacity: 0.7;
  display: block;
  margin-bottom: 1.5rem;
}

.crypto-empty-state button {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.crypto-empty-state button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Crypto news container */
#crypto-news-container {
  min-height: 400px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .crypto-loading {
    padding: 3rem 1.5rem;
  }
  
  .crypto-loading i {
    font-size: 2rem;
  }
  
  .crypto-loading span {
    font-size: 1rem;
  }
  
  .crypto-empty-state {
    padding: 3rem 1.5rem;
  }
  
  .crypto-empty-state i {
    font-size: 3rem;
  }
  
  .crypto-empty-state p {
    font-size: 1.1rem;
  }
}

/* 24/7 Indicator */
.crypto-24-7-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.crypto-24-7-indicator i {
    animation: spin 3s linear infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Crypto News Cards - Use existing news card styles from news-card.css */
#crypto-news-container .news-card {
    /* Crypto cards use the same styles as stock cards for consistency */
    margin-bottom: 1rem;
}

/* Loading States */
.crypto-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-color);
}

.crypto-loading i {
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

/* Empty State */
.crypto-empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-color);
}

.crypto-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Market selector styles moved to dashboard.css for consistency */
    /* Keeping horizontal layout on mobile */
    
    .crypto-24-7-indicator {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
}
