/* Live Mining Visualization Styles */

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 4px #10b981;
    }
    50% {
        opacity: 0.5;
        box-shadow: 0 0 8px #10b981;
    }
}

.status-dot {
    animation: statusPulse 2s ease-in-out infinite;
}

/* Hash line animations */
.hash-line {
    opacity: 0;
    animation: hashFadeIn 0.5s ease-out forwards;
}

.hash-line:nth-child(1) { animation-delay: 0s; }
.hash-line:nth-child(2) { animation-delay: 0.1s; }
.hash-line:nth-child(3) { animation-delay: 0.2s; }
.hash-line:nth-child(4) { animation-delay: 0.3s; }
.hash-line:nth-child(5) { animation-delay: 0.4s; }
.hash-line:nth-child(6) { animation-delay: 0.5s; }
.hash-line:nth-child(7) { animation-delay: 0.6s; }
.hash-line:nth-child(8) { animation-delay: 0.7s; }
.hash-line:nth-child(9) { animation-delay: 0.8s; }
.hash-line:nth-child(10) { animation-delay: 0.9s; }
.hash-line:nth-child(11) { animation-delay: 1.0s; }
.hash-line:nth-child(12) { animation-delay: 1.1s; }

@keyframes hashFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hash value blinking effect */
.hash-value {
    color: rgba(212, 175, 55, 0.9);
    font-weight: 500;
}

/* Animate specific lines */
.hash-line:nth-child(6),
.hash-line:nth-child(9) {
    animation: sharePulse 2s ease-in-out infinite;
}

@keyframes sharePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
        text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    }
}

/* Make hash values scroll/change periodically */
.hash-value {
    display: inline-block;
    transition: opacity 0.3s ease;
}

/* Mining viz container enhancements */
.mining-viz {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mining-viz::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(212, 175, 55, 0.03) 2px,
            rgba(212, 175, 55, 0.03) 4px
        );
    pointer-events: none;
    opacity: 0.5;
}

/* Terminal-like cursor blink */
@keyframes cursorBlink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hash-line:last-child::after {
    content: '█';
    color: var(--accent-gold);
    animation: cursorBlink 1s step-start infinite;
    margin-left: 4px;
}
