/* Top votes terminal (mobile only) */
.votes-top-terminal {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 30, 50, 0.9);
    border: 1px solid rgba(200, 230, 255, 0.4);
    border-radius: 10px;
    padding: 15px 40px;
    box-shadow: 0 0 30px rgba(200, 230, 255, 0.5);
    backdrop-filter: blur(5px);
    z-index: 100;
}

.votes-top-terminal .top-votes-count {
    font-family: 'Exo2', monospace;
    font-size: 42px;
    font-weight: bold;
    color: rgba(200, 230, 255, 1);
    text-shadow: 0 0 20px rgba(200, 230, 255, 0.9);
}

/* Wrapper for centering */
.terminal-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Main terminal - independent block */
.terminal {
    width: 900px;
    max-height: 90vh;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(200, 220, 255, 0.6);
    padding: 20px;
    box-sizing: border-box;
    box-shadow: 0 0 20px rgba(200, 220, 255, 0.2);
    backdrop-filter: blur(5px);
    font-family: 'Courier New', monospace;
    color: #ffffff;
    transition: transform 0.1s ease, filter 0.1s ease;
    display: flex;
    flex-direction: column;
    z-index: 5;
}

/* Reactions container - independent below terminal */
.reaction-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    flex-shrink: 0;
    z-index: 5;
}

.reaction-btn {
    width: 70px;
    height: 70px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
}

.reaction-btn img {
    width: 70px;
    height: 70px;
    transition: all 0.3s ease;
}

.reaction-btn.positive:hover img {
    transform: scale(1.1);
}

.reaction-btn.negative:hover img {
    transform: scale(1.1);
}

.reaction-btn .reaction-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Exo2', monospace;
    font-size: 24px;
    font-weight: bold;
    color: rgba(200, 230, 255, 1);
    text-shadow: 0 0 10px rgba(200, 230, 255, 0.9);
    z-index: 10;
}

.votes-counter {
    font-family: 'Exo2', monospace;
    font-size: 18px;
    font-weight: bold;
    color: rgba(200, 230, 255, 1);
    text-shadow: 0 0 20px rgba(200, 230, 255, 0.8);
    min-width: 40px;
    text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
    .votes-top-terminal {
        display: block;
    }

    .terminal {
        position: relative;
        width: 95vw;
        max-width: 95vw;
        padding: 15px;
        margin: 0 auto;
    }

    .terminal-header {
        flex-shrink: 0;
    }

    .terminal h3 {
        font-size: 20px;
    }

    .terminal p {
        font-size: 16px;
    }

    .user-info {
        font-size: 16px;
    }

    /* Reactions below terminal - independent */
    .reaction-container {
        position: relative;
        width: 100%;
        margin-top: 15px;
        justify-content: center;
    }

    .reaction-btn {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    /* Hide counter on mobile */
    .votes-counter {
        display: none;
    }
}
