/* Custom styles for NEAR Governance Tracker */

/* Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Dark mode styles */
.dark {
  color-scheme: dark;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dark ::-webkit-scrollbar-track {
  background: #2d3748;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #4a5568;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #718096;
}

/* Animations */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

/* Progress bar animation */
.progress-bar-animation {
  transition: width 1s ease-in-out;
}

/* Card hover effects */
.hover-lift {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* NEAR brand gradient */
.near-gradient {
  background: linear-gradient(90deg, #00C1DE 0%, #7B61FF 100%);
}

/* Line clamp for text truncation */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Button pulse effect */
.pulse-button {
  position: relative;
}

.pulse-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 9999px;
  box-shadow: 0 0 0 0 rgba(0, 193, 222, 0.7);
  animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 193, 222, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(0, 193, 222, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 193, 222, 0);
  }
}

/* Custom prose for markdown content */
.prose h1, .prose h2, .prose h3, .prose h4 {
  color: #1a202c;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.dark .prose h1, .dark .prose h2, .dark .prose h3, .dark .prose h4 {
  color: #f7fafc;
}

.prose p, .prose ul, .prose ol {
  color: #4a5568;
  margin-top: 0.75em;
  margin-bottom: 0.75em;
}

.dark .prose p, .dark .prose ul, .dark .prose ol {
  color: #cbd5e0;
}

.prose a {
  color: #00C1DE;
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge.proposed {
  background-color: #ebf8ff;
  color: #2b6cb0;
}

.status-badge.voting {
  background-color: #fffbeb;
  color: #d97706;
}

.status-badge.approved {
  background-color: #f0fff4;
  color: #22c55e;
}

.status-badge.rejected {
  background-color: #fff5f5;
  color: #e53e3e;
}

.status-badge.implemented {
  background-color: #faf5ff;
  color: #805ad5;
}