/* VeritasChain Explorer Custom Styles */

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Language Switcher */
.lang-switch {
  text-decoration: none;
  transition: all 0.2s ease;
}

.lang-switch:hover {
  transform: translateY(-1px);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
  background: #1e293b;
}

::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Stat card hover effect */
.stat-card {
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
}

/* Count up animation */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.count-up {
  animation: countUp 1s ease-out;
}

/* Live indicator pulse */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.indicator-live {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Table row highlight on hover */
tbody tr {
  transition: all 0.2s ease;
}

tbody tr:hover {
  background-color: rgba(100, 116, 139, 0.1);
}

/* Code block styling */
.code-block-container {
  font-family: 'Fira Code', 'Courier New', monospace;
}

details summary {
  list-style: none;
}

details summary::-webkit-details-marker {
  display: none;
}

/* Merkle tree connection lines (optional enhancement) */
.merkle-tree {
  position: relative;
}

/* Button hover effects */
button, a {
  transition: all 0.2s ease;
}

.btn-copy:hover,
.btn-copy-api:hover {
  transform: scale(1.05);
}

/* Badge animations */
.badge-platinum {
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(168, 85, 247, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.8);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .stat-card {
    padding: 1rem;
  }
  
  table {
    font-size: 0.875rem;
  }
  
  .merkle-tree {
    font-size: 0.75rem;
  }
}

/* Text gradient animation */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.bg-gradient-to-r {
  background-size: 200% 200%;
  animation: gradient 3s ease infinite;
}

/* Search input focus effect */
#search-input:focus {
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.3);
}

/* Status indicator glow */
.text-green-400 .w-2 {
  box-shadow: 0 0 10px currentColor;
}

.text-red-400 .w-2 {
  box-shadow: 0 0 10px currentColor;
}

.text-yellow-400 .w-2 {
  box-shadow: 0 0 10px currentColor;
}