/**
 * Comment Enhancements Styling
 */

/* Comment vote button */
.comment-vote-wrapper {
    float: left;
    margin-right: 15px;
    margin-top: 5px;
}

.comment-upvote {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9em;
}

.comment-upvote:hover {
    background: #e9ecef;
    border-color: #ced4da;
    transform: translateY(-1px);
}

.comment-upvote.voted {
    background: #e7f3ff;
    border-color: #90c9f9;
    color: #0066cc;
}

.comment-upvote.voted:hover {
    background: #d0e9ff;
}

.comment-upvote.processing {
    opacity: 0.6;
    cursor: wait;
}

.comment-upvote i {
    font-size: 1.2em;
    margin-bottom: 4px;
}

.vote-count {
    font-size: 0.9em;
    font-weight: 600;
    min-height: 16px;
}

/* Comment edit actions */
.comment-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.comment-edit-btn {
    background: none;
    border: none;
    color: #0066cc;
    cursor: pointer;
    font-size: 0.85em;
    padding: 0;
    text-decoration: underline;
}

.comment-edit-btn:hover {
    color: #004499;
}

.comment-edited {
    color: #868e96;
    font-size: 0.85em;
    font-style: italic;
}

/* Comment edit form */
.comment-edit-form {
    margin: 10px 0;
}

.comment-edit-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95em;
    resize: vertical;
}

.comment-edit-textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

.comment-edit-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.comment-save-btn,
.comment-cancel-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease;
}

.comment-save-btn {
    background: #0066cc;
    color: #ffffff;
}

.comment-save-btn:hover {
    background: #0052a3;
}

.comment-save-btn:disabled {
    background: #6c757d;
    cursor: wait;
}

.comment-cancel-btn {
    background: #e9ecef;
    color: #495057;
}

.comment-cancel-btn:hover {
    background: #dee2e6;
}

/* Threaded comment styling improvements */
.comment-list .children {
    margin-left: 40px;
    padding-left: 20px;
    border-left: 2px solid #e9ecef;
}

.comment-reply-link {
    display: inline-block;
    padding: 4px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    text-decoration: none;
    font-size: 0.85em;
    transition: all 0.2s ease;
}

.comment-reply-link:hover {
    background: #e9ecef;
    color: #212529;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comment-list .children {
        margin-left: 20px;
        padding-left: 15px;
    }
    
    .comment-vote-wrapper {
        margin-right: 10px;
    }
    
    .comment-upvote {
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .comment-list .children {
        margin-left: 10px;
        padding-left: 10px;
    }
    
    .comment-vote-wrapper {
        float: none;
        margin-bottom: 10px;
    }
}
