/* Custom animations and enhancements for dark theme with logo colors */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Ubuntu:wght@300;400;500;700&display=swap');

body {
    font-family: 'Inter', 'Ubuntu', sans-serif;
    background-color: #111827;
    color: #ffffff;
}

/* Logo-inspired gradients */
.logo-gradient {
    background: linear-gradient(135deg, #20B4FF 0%, #FFD700 100%);
}

/* Background pattern for hero section with dark theme */
.bg-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(32, 180, 255, 0.1) 1px, transparent 0);
    background-size: 20px 20px;
}

/* Loading skeleton animation for dark theme */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.loading-skeleton {
    animation: shimmer 1.2s ease-in-out infinite;
    background: linear-gradient(to right, #1f2937 8%, #374151 18%, #1f2937 33%);
    background-size: 800px 104px;
}

/* Custom scrollbar with logo colors */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #20B4FF, #FFD700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #1E9FE6, #E6C200);
}

/* Smooth transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Enhanced focus states for accessibility with logo colors */
button:focus,
input:focus,
a:focus {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(32, 180, 255, 0.1);
}

/* Logo-themed button effects */
.btn-logo {
    background: linear-gradient(135deg, #20B4FF 0%, #1E9FE6 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(32, 180, 255, 0.3);
}

.btn-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s;
}

.btn-logo:hover::before {
    left: 100%;
}

/* Logo-inspired pattern for decorative elements */
.logo-pattern {
    background: linear-gradient(to bottom, #20B4FF 50%, #FFD700 50%);
}

/* Responsive text scaling */
@media (max-width: 640px) {
    .text-responsive-xl {
        font-size: 1.5rem;
    }
    .text-responsive-2xl {
        font-size: 1.875rem;
    }
}

/* Enhanced card hover effects for dark theme */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background-color: #1f2937;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(32, 180, 255, 0.1), 0 10px 10px -5px rgba(32, 180, 255, 0.04);
    background-color: #374151;
}

.card-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #20B4FF, #FFD700, #20B4FF);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-hover:hover::after {
    opacity: 1;
}

/* Live status indicator animations with logo colors */
.status-active {
    position: relative;
}

.status-active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -12px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse-live 2s infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
}

@keyframes pulse-live {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Blockchain indicator glow with logo colors */
.blockchain-glow {
    animation: blockchain-pulse 3s ease-in-out infinite;
}

@keyframes blockchain-pulse {
    0%, 100% {
        text-shadow: 0 0 5px rgba(32, 180, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(32, 180, 255, 0.8);
    }
}

/* Number formatting for better readability */
.tabular-nums {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* Custom utility classes for dark theme */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-shadow-strong {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Logo-themed gradients */
.bg-logo-gradient {
    background: linear-gradient(135deg, #20B4FF 0%, #1A8ECC 50%, #FFD700 100%);
}

.bg-logo-subtle {
    background: linear-gradient(135deg, rgba(32, 180, 255, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
}

/* Loading states with logo theme */
.loading-logo {
    background: linear-gradient(
        90deg,
        #20B4FF 25%,
        #FFD700 50%,
        #20B4FF 75%
    );
    background-size: 200% 100%;
    animation: loading-wave 1.5s infinite;
}

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

/* Verification badges for dark theme */
.verified-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 2px 6px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Enhanced dark theme colors */
.bg-gray-750 {
    background-color: #374151;
}

.bg-gray-850 {
    background-color: #1F2937;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column;
    }
    
    .mobile-center {
        text-align: center;
    }
    
    .mobile-full {
        width: 100%;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .logo-blue {
        color: #60A5FA;
    }
    
    .logo-yellow {
        color: #FCD34D;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
}

/* Dark theme input styles */
input[type="number"] {
    background-color: #374151;
    border-color: #4B5563;
    color: #ffffff;
}

input[type="number"]:focus {
    border-color: #20B4FF;
    box-shadow: 0 0 0 3px rgba(32, 180, 255, 0.1);
}

/* Dark theme iframe styles */
iframe {
    background-color: #374151;
    border-color: #4B5563;
}