/* Non-critical CSS */

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Tokenomics Section */
.token-card {
  animation: slideUp 0.6s ease forwards;
  opacity: 0;
}

.token-card:nth-child(1) { animation-delay: 0.1s; }
.token-card:nth-child(2) { animation-delay: 0.2s; }
.token-card:nth-child(3) { animation-delay: 0.3s; }
.token-card:nth-child(4) { animation-delay: 0.4s; }
.token-card:nth-child(5) { animation-delay: 0.5s; }
.token-card:nth-child(6) { animation-delay: 0.6s; }

/* Chart container */
.chart-container {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
  animation-delay: 0.7s;
}

/* Legend items */
.legend-item {
  animation: slideUp 0.5s ease forwards;
  opacity: 0;
}

.legend-item:nth-child(1) { animation-delay: 0.8s; }
.legend-item:nth-child(2) { animation-delay: 0.9s; }
.legend-item:nth-child(3) { animation-delay: 1.0s; }
.legend-item:nth-child(4) { animation-delay: 1.1s; }

/* Loading animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-spinner {
  animation: spin 1s linear infinite;
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .token-card {
    animation-delay: 0s !important;
  }
  
  .legend-item {
    animation-delay: 0s !important;
  }
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }
}
