/* Top Thumbs Vote — theopenpages.blog */

.top-thumbs-wrap {
    display: flex;
    gap: 18px;
    margin: 20px 0 10px;
}

.top-thumbs-align-right  { justify-content: flex-end; }
.top-thumbs-align-left   { justify-content: flex-start; }
.top-thumbs-align-center { justify-content: center; }

/* Pin to bottom of the book page */
.top-thumbs-pinned {
    position: sticky;
    bottom: 20px;
    z-index: 10;
}

.top-thumbs-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 10px;
    transition: background 0.2s ease;
    font-family: inherit;
    outline: none;
}

.top-thumbs-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.top-thumbs-btn:focus-visible {
    outline: 2px solid #888;
    outline-offset: 2px;
}

/* Chosen (active) vote — full opacity */
.top-thumbs-btn.chosen {
    opacity: 1;
}

/* Unchosen when a vote exists — dimmed */
.top-thumbs-wrap.has-voted .top-thumbs-btn:not(.chosen) {
    opacity: 0.45;
}

.top-thumbs-icon {
    font-size: 1.7rem;   /* smaller than original 2.4rem */
    line-height: 1;
    transition: transform 0.15s ease;
    display: block;
}

.top-thumbs-btn:hover .top-thumbs-icon {
    transform: scale(1.15);
}

.top-thumbs-count {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #555;
    margin-top: 5px;
    min-width: 24px;
    text-align: center;
    transition: color 0.2s;
}

/* Bump animation on vote */
@keyframes top-thumbs-bump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.top-thumbs-icon.bump {
    animation: top-thumbs-bump 0.28s ease;
}
