/* --- Voting Component Styles --- */
.voting-component {
    display: flex;
    align-items: center;
    gap: 0px;
}
.score-display button {
    text-decoration: none;
    color: #498dbb;
    font-weight: bold;
    padding: 5px 10px;
    background: #1a2e4d;
    border: 0;
    cursor: pointer;
}
.score-display button:hover {
    background-color: #f6f7f7;
}


/* --- Voter Modal Styles --- */
.voters-modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.voters-modal-backdrop {
    position: fixed; /* Use fixed to ensure it covers viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}
.voters-modal-content {
    background: #07191e;
    border-radius: 5px;
    width: 100%;
    max-width: 575px; /* Increased max-width for two columns */
    z-index: 10001;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
    height: 100%;
    max-height: 500px;
    overflow-y: scroll;
}
.voters-modal-close {
    position: absolute;
    top: 5px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}
.voters-modal-header {
    padding: 15px;
    border-bottom: 1px solid #373a19;
}
.voters-modal-header h3 {
    margin: 0;
    font-size: 18px;
}
.voters-modal-body {
    padding: 15px;
}

.voters-grid .post-details-author {
    margin-top: 10px;
}

/* --- [NEW] Two-Column Grid Styles --- */
.voters-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.voter-column h4 {
    margin-top: 0;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px 5px 0 0;
}
.voter-column .likes {
    background-color: #004f05;
}
.voter-column .dislikes {
    background-color: #580000;
}
.voter-column p {
    font-style: italic;
    color: #666;
}

/* Voter List Item */
.voter-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}
.voter-item .avatar {
    width: 30px; /* Slightly smaller for a tighter list */
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.vote-button {
    border: 0px;
    display: flex;
    padding: 5px 0px;
    height: 35px;
    cursor: pointer;
    color: #ffffff;
    background: #1a2e4d;
}
.vote-button i {
    width: 27px;
    height: 27px;
    font-size: 24px;
    text-shadow: 1px 1px 5px black
}
.vote-button-like {
    background: #004f05;
}
.vote-button-dislike {
    background: #580000;
}