/* Comments Section Styles */

.comments-section {
    border-top: 1px solid #e9ecef;
    padding-top: 1.5rem;
}

.comments-section h6 {
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

/* Comment Form */
.comment-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
}

.comment-form textarea {
    border: 1px solid #ced4da;
    border-radius: 6px;
    resize: vertical;
    min-height: 80px;
}

.comment-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.comment-form .form-text {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Comment Sort */
.comment-sort .btn-group {
    width: 100%;
}

.comment-sort .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

/* Comments List */
.comments-list {
    max-height: 600px;
    overflow-y: auto;
}

.comment-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.comment-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.comment-author {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #333;
}

.author-name {
    font-size: 0.9rem;
}

.comment-meta {
    font-size: 0.8rem;
}

.comment-content {
    margin-bottom: 0.75rem;
}

.comment-content p {
    margin: 0;
    line-height: 1.5;
    color: #333;
    word-wrap: break-word;
}



/* No Comments */
.no-comments {
    color: #6c757d;
}

.no-comments i {
    opacity: 0.5;
}

/* Load More Button */
#loadMoreComments {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}



/* Mobile Responsiveness */
@media (max-width: 768px) {
    .comment-form {
        padding: 0.75rem;
    }
    
    .comment-item {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .comment-sort .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    

    

}

@media (max-width: 480px) {
    .comments-section {
        padding-top: 1rem;
    }
    
    .comment-form {
        padding: 0.5rem;
    }
    
    .comment-item {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .comment-content p {
        font-size: 0.9rem;
    }
    
    .author-name {
        font-size: 0.8rem;
    }
    
    .comment-meta {
        font-size: 0.75rem;
    }
}
