/* Neat Comment Voting Styles *//* Base styles for comments and answers */
.neat-comment-voting-container {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--secondary-color);
    margin: 0 auto;
    padding: 0;
    list-style: none;
    max-width: 800px;
    width: 100%;
}/* Answer (top-level comment) */
.answer {
    display: flex;
    flex-direction: row;
    padding: 16px;
    background-color: var(--secondary-background);
    margin-bottom: 16px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color); /* Thicker bottom border for clear separation */
    transition: background-color 0.3s ease;
}/* Remove bottom border if followed by a reply */
.answer:has(.answer-comment) {
    border-bottom: none; /* No bottom border when replies are present */
}/* Comment (reply to answer) */
.answer-comment {
    padding: 12px 16px 12px 48px;
    background-color: var(--secondary-background);
    margin-bottom: 8px;
    border-left: 2px solid var(--primary-color);
    border-top: none;
}/* Comment body */
.comment-body {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 12px;
}/* Voting controls */
.comment-voting {
    display: flex;
    flex-direction: column; /* Changed to vertical layout */
    align-items: center;
    margin-right: 16px;
    min-width: 38px; /* Adjusted for vertical layout */
}.vote-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-color);
    font-size: 28px;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}.vote-button:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}.vote-button.voted,
.vote-button.voted:hover {
    color: var(--primary-hover);
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}.vote-icon {
    display: inline-block;
}.vote-score {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0; /* Vertical spacing between buttons */
}/* Comment content wrapper */
.comment-content-wrapper {
    flex: 1;
}/* Comment content */
.comment-content {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
}.comment-content p {
    margin: 0 0 12px;
}.comment-content code {
    font-family: var(--font-code);
    background-color: var(--border-color);
    padding: 3px 6px;
    border-radius: 4px;
}/* Comment awaiting moderation */
.comment-awaiting-moderation {
    font-style: italic;
    color: var(--primary-color);
    font-size: 14px;
}/* Comment meta */
.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: left;
    font-size: 14px;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 12px;
}/* Comment author */
.comment-author {
    display: flex;
    align-items: center;
    margin-right: 16px;
}.avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    margin-right: 10px;
}.comment-author-name {
    font-weight: 500;
    font-size: 13px;
    font-style: normal;
}.comment-author-name a {
    color: var(--primary-color);
    text-decoration: none;
    font-style: normal;
    font-size: 13px;
}.comment-author-name a:hover {
    color: var(--primary-hover);
    font-style: normal;
    font-size: 13px;
}/* Comment metadata */
.comment-metadata {
    margin-right: 16px;
}.timestamp {
    color: var(--text-color);
    font-size: 13px;
}/* Comment actions */
.comment-actions {
    font-size: 14px;
}.comment-actions a {
    color: var(--primary-color);
    text-decoration: none;
    margin-right: 16px;
    transition: color 0.2s ease;
    font-size: 12px;
}.comment-actions a:hover {
    color: var(--primary-hover);
    font-size: 12px;
}/* Comment form adjustments */
#commentform {
    background-color: var(--secondary-background);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 24px;
}#commentform .form-submit input[type="submit"] {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 15px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}#commentform .form-submit input[type="submit"]:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}#commentform .form-submit input[type="submit"]:active {
    transform: translateY(0);
}/* Reply form for comments */
.comment-respond {
    margin: 12px 8px;
    padding: 12px;
    background-color: var(--secondary-color);
    border-radius: 4px;
}/* Mobile styles */
@media (max-width: 600px) {
    .neat-comment-voting-container {
        padding: 0 8px;
    }.answer {
    flex-direction: column;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color); /* Ensure bottom border on mobile */
}

.answer:has(.answer-comment) {
    border-bottom: none; /* Remove bottom border when replies are present */
}

.comment-voting {
    flex-direction: column; /* Maintain vertical layout on mobile */
    margin-bottom: 12px;
    margin-right: 0;
    align-items: center; /* Center voting buttons */
}

.vote-button {
    padding: 0;
    font-size: 28px;
}

.vote-score {
    margin: 0;
    font-size: 18px;
}

.answer-comment {
    padding: 10px 12px 10px 24px;
    border-left: 2px solid var(--primary-color);
    border-top: none;
}

.comment-body {
    gap: 8px;
}

.comment-content {
    font-size: 15px;
}

.avatar {
    width: 28px;
    height: 28px;
}

.comment-author {
    justify-content: flex-start; /* Align author name to the left */
}

.comment-author-name {
    font-size: 13px;
    text-align: left; /* Explicitly left-align */
}

.comment-meta {
    font-size: 13px;
}

.comment-actions {
    font-size: 13px;
}

#commentform {
    padding: 16px;
    margin: 0 8px 16px;
}

#commentform .form-submit input[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.comment-respond {
    margin: 8px;
    padding: 10px;
}}/* Footer fix */
footer {
    width: 100%;
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
    padding: 20px 0;
    box-sizing: border-box;
}
