/* Old-style hit counter - 90s nostalgia */
.hit-counter-container {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(180deg, #e8e8e8 0%, #d0d0d0 100%);
    border-top: 3px solid #999;
    border-bottom: 3px solid #999;
}

.hit-counter-wrapper {
    display: inline-block;
    background: #000;
    padding: 1rem 1.5rem;
    border: 3px outset #666;
    box-shadow:
        inset -2px -2px 4px rgba(255, 255, 255, 0.3),
        inset 2px 2px 4px rgba(0, 0, 0, 0.5),
        4px 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.hit-counter-label {
    display: block;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px #00ff00;
    letter-spacing: 2px;
}

.hit-counter-digits {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.hit-counter-digit {
    display: inline-block;
    background: linear-gradient(180deg, #ff0000 0%, #cc0000 50%, #990000 100%);
    color: #000;
    font-family: 'Courier New', Courier, monospace;
    font-size: 2rem;
    font-weight: bold;
    padding: 0.5rem 0.75rem;
    border: 2px outset #ff6666;
    border-radius: 3px;
    box-shadow:
        inset 1px 1px 2px rgba(255, 255, 255, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.5);
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.3);
    min-width: 35px;
    text-align: center;
}

/* Animated spinning effect on load (optional 90s flair) */
@keyframes spin-in {
    0% {
        transform: rotateY(90deg);
        opacity: 0;
    }
    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

.hit-counter-digit {
    animation: spin-in 0.5s ease-out backwards;
}

.hit-counter-digit:nth-child(1) { animation-delay: 0.1s; }
.hit-counter-digit:nth-child(2) { animation-delay: 0.2s; }
.hit-counter-digit:nth-child(3) { animation-delay: 0.3s; }
.hit-counter-digit:nth-child(4) { animation-delay: 0.4s; }
.hit-counter-digit:nth-child(5) { animation-delay: 0.5s; }
.hit-counter-digit:nth-child(6) { animation-delay: 0.6s; }
.hit-counter-digit:nth-child(7) { animation-delay: 0.7s; }
.hit-counter-digit:nth-child(8) { animation-delay: 0.8s; }

/* Retro glow effect */
.hit-counter-wrapper::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: radial-gradient(circle, rgba(0, 255, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 6px;
}

.hit-counter-wrapper {
    position: relative;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hit-counter-digit {
        font-size: 1.5rem;
        padding: 0.4rem 0.6rem;
        min-width: 28px;
    }

    .hit-counter-label {
        font-size: 0.8rem;
    }

    .hit-counter-wrapper {
        padding: 0.75rem 1rem;
    }
}