/* HumanCommentor Frontend Styles */

.humancommentor-comment {
    position: relative;
}

.humancommentor-comment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, #2271b1, #0073aa);
    border-radius: 2px;
}

.humancommentor-comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.humancommentor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.humancommentor-author {
    font-weight: 600;
    color: #333;
}

.humancommentor-badge {
    background: #2271b1;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.humancommentor-comment-content {
    margin-left: 15px;
    line-height: 1.6;
    color: #555;
}

.humancommentor-comment-actions {
    margin-top: 10px;
    margin-left: 15px;
}

.humancommentor-reply-link {
    color: #2271b1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.humancommentor-reply-link:hover {
    text-decoration: underline;
}

/* Threaded Comments */
.humancommentor-thread {
    margin-left: 30px;
    border-left: 2px solid #eee;
    padding-left: 15px;
}

.humancommentor-thread-comment {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.humancommentor-thread-comment:last-child {
    border-bottom: none;
}

/* Animation for new comments */
.humancommentor-comment-new {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .humancommentor-comment-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .humancommentor-thread {
        margin-left: 15px;
        padding-left: 10px;
    }
    
    .humancommentor-comment-content {
        margin-left: 0;
    }
    
    .humancommentor-comment-actions {
        margin-left: 0;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .humancommentor-author {
        color: #f0f0f0;
    }
    
    .humancommentor-comment-content {
        color: #ccc;
    }
    
    .humancommentor-thread {
        border-left-color: #444;
    }
    
    .humancommentor-thread-comment {
        border-bottom-color: #444;
    }
}