/**
 * OnionPress Hit Counter - Retro Odometer Styles
 */

.onionpress-hit-counter {
    display: inline-block;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
}

/* Odometer Display */
.hit-counter-display {
    display: inline-flex;
    gap: 2px;
    background: #000;
    padding: 15px 20px;
    border: 3px solid #333;
    border-radius: 8px;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

/* Individual Digit Container */
.counter-digit {
    display: inline-block;
    width: 40px;
    height: 60px;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid #444;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.5);
}

/* Digit Inner (the number itself) */
.digit-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 36px;
    font-weight: bold;
    color: #00ff00;
    text-shadow:
        0 0 10px #00ff00,
        0 0 20px #00ff00,
        0 0 30px #00ff00;
    transition: transform 0.3s ease-out;
    font-family: 'Courier New', Courier, monospace;
}

/* Spinning Animation */
.counter-digit.spinning .digit-inner {
    animation: digitSpin 0.6s ease-in-out;
}

@keyframes digitSpin {
    0% {
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-30px) rotateX(90deg);
        opacity: 0.5;
    }
    51% {
        transform: translateY(30px) rotateX(-90deg);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0) rotateX(0deg);
        opacity: 1;
    }
}

/* Counter Label */
.hit-counter-label {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.counter-eye {
    font-size: 18px;
    margin-right: 5px;
}

.counter-text {
    font-family: 'Courier New', Courier, monospace;
}

/* Alternative Style: Digital */
.hit-counter-digital .counter-digit {
    background: #000;
    border-color: #ff0000;
}

.hit-counter-digital .digit-inner {
    color: #ff0000;
    text-shadow:
        0 0 10px #ff0000,
        0 0 20px #ff0000;
}

/* Alternative Style: Classic (simpler, no glow) */
.hit-counter-classic .hit-counter-display {
    background: #f0f0f0;
    border-color: #999;
    padding: 10px 15px;
}

.hit-counter-classic .counter-digit {
    background: #fff;
    border-color: #ccc;
}

.hit-counter-classic .digit-inner {
    color: #000;
    text-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .counter-digit {
        width: 30px;
        height: 45px;
    }

    .digit-inner {
        font-size: 28px;
    }

    .hit-counter-display {
        padding: 10px 15px;
    }
}

